Files
TCT-Datapack/data/tctvote/functions/calc.mcfunction
Abel Hoogeveen 02ca44bb99 - Added bossbar to vote
- Changed vote to require eligibility score instead of tag
- Performance optimizations
- Sounds now play from an armor stand summoned at the vote button
- Anonymous function works properly now
2021-03-04 21:47:52 +01:00

4 lines
326 B
MCFunction

execute as @a[scores={mt_vote_trigger=1}] run function tctvote:ayevote
execute as @a[scores={mt_vote_trigger=2}] run function tctvote:novote
execute as @a[scores={mt_vote_trigger=1..2}] run clear @s written_book{certified:votebook} 1
execute as @a[scores={mt_vote_trigger=1..2}] run scoreboard players reset @s mt_vote_trigger