- 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
This commit is contained in:
20
data/tctvote/functions/halt.mcfunction
Normal file
20
data/tctvote/functions/halt.mcfunction
Normal file
@@ -0,0 +1,20 @@
|
||||
# Remove the scoreboard from the sidebar
|
||||
scoreboard objectives setdisplay sidebar
|
||||
|
||||
# Remove all VoteBooks
|
||||
execute as @a run clear @s written_book{certified:votebook}
|
||||
|
||||
# Report the results
|
||||
tellraw @a ["",{"text":"Vote >>","bold":true,"color":"dark_green"},{"text":" AYES: ","bold":true,"color":"dark_green"},{"score":{"name":"AYE","objective":"mt_vote_balance"},"bold":true,"color":"white"},{"text":" "},{"text":" NOES: ","bold":true,"color":"red"},{"score":{"name":"NO","objective":"mt_vote_balance"},"bold":true,"color":"white"}]
|
||||
|
||||
# play the stop sound
|
||||
schedule function tctvote:notes/down_0 1t
|
||||
|
||||
# Remove the scores and teams
|
||||
scoreboard objectives remove mt_vote_balance
|
||||
scoreboard objectives remove mt_vote_trigger
|
||||
scoreboard objectives remove mt_vote_anon
|
||||
scoreboard objectives remove mt_countdown
|
||||
bossbar remove votetimer
|
||||
team remove green
|
||||
team remove red
|
||||
Reference in New Issue
Block a user