TCT-Datapack/data/tctvote/functions/decrease.mcfunction

4 lines
361 B
Mcfunction

scoreboard players remove @e[tag=mt_votestand] mt_countdown 1
execute store result bossbar minecraft:votetimer value run scoreboard players get @e[tag=mt_votestand,limit=1] mt_countdown
execute at @e[type=minecraft:armor_stand,tag=mt_votestand,limit=1] run playsound minecraft:block.note_block.hat master @a ~ ~ ~ 100 1
schedule function tctvote:tock 10t append