Files
town_money_datapack
Code
24 111
town_money_datapack/data/town_money/function/payday.mcfunction
scoreboard players set @s tm_clock 0
execute if score @s tm_role matches 0 run scoreboard players add @s money 120
execute if score @s tm_role matches 1 run scoreboard players add @s money 140
execute if score @s tm_role matches 2 run scoreboard players add @s money 180
execute if score @s tm_role matches 3 run scoreboard players add @s money 200
execute if score @s tm_role matches 10 run scoreboard players add @s money 390625
execute if score @s tm_role matches 11 run scoreboard players add @s money 97657
execute if score @s tm_role matches 12 run scoreboard players add @s money 1562500
execute if score @s tm_role matches 13 run scoreboard players add @s money 3125000
execute if score @s tm_role matches 14 run scoreboard players add @s money 6250000
execute if score @s tm_role matches 15 run scoreboard players add @s money 12500000
execute if score @s tm_role matches 16 run scoreboard players add @s money 25000000
execute if score @s tm_role matches 17 run scoreboard players add @s money 50000000
execute if score @s tm_role matches 18 run scoreboard players add @s money 100000000
execute if score @s tm_role matches 0 run tellraw @s [{"text":"Payday: +$120","color":"green"}]
execute if score @s tm_role matches 1 run tellraw @s [{"text":"Payday: +$140 (Probationary Firefighter)","color":"green"}]
execute if score @s tm_role matches 2 run tellraw @s [{"text":"Payday: +$180 (Firefighter)","color":"green"}]
execute if score @s tm_role matches 3 run tellraw @s [{"text":"Payday: +$200 (Senior Firefighter)","color":"green"}]
execute if score @s tm_role matches 10 run tellraw @s [{"text":"Royalty payday: +$390,625 (Knight / Dame)","color":"gold"}]
execute if score @s tm_role matches 11 run tellraw @s [{"text":"Royalty payday: +$97,657 (Lord / Lady)","color":"gold"}]
execute if score @s tm_role matches 12 run tellraw @s [{"text":"Royalty payday: +$1,562,500 (Baronet / Baronetess)","color":"gold"}]
execute if score @s tm_role matches 13 run tellraw @s [{"text":"Royalty payday: +$3,125,000 (Baron / Baroness)","color":"gold"}]
execute if score @s tm_role matches 14 run tellraw @s [{"text":"Royalty payday: +$6,250,000 (Viscount / Viscountess)","color":"gold"}]
execute if score @s tm_role matches 15 run tellraw @s [{"text":"Royalty payday: +$12,500,000 (Earl / Countess)","color":"gold"}]
execute if score @s tm_role matches 16 run tellraw @s [{"text":"Royalty payday: +$25,000,000 (Marquess / Marchioness)","color":"gold"}]
execute if score @s tm_role matches 17 run tellraw @s [{"text":"Royalty payday: +$50,000,000 (Duke / Duchess)","color":"gold"}]
execute if score @s tm_role matches 18 run tellraw @s [{"text":"Royalty payday: +$100,000,000 (Crowned Royal Member)","color":"gold"}]