Bunch of changes, adding functionality requested.

- Added bunch of achievements for democracy
- Added currency exchanges
- Made voting algorithm more efficient
- Added standard meeting hall functionality to the datapack
This commit is contained in:
2021-08-06 01:05:38 +02:00
parent 02ca44bb99
commit aff958e612
22 changed files with 273 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Small:1b,Marker
scoreboard players set @e[tag=mt_votestand] mt_countdown 20
# Announce the vote
tellraw @a ["",{"text":"Vote >>","bold":true,"color":"dark_green"},{"text":" Vote using the voting book now!","bold":true,"color":"white"}]
tellraw @a[scores={mt_vote_eligible=1}] ["",{"text":"Vote >>","bold":true,"color":"dark_green"},{"text":" Vote using the voting book now!","bold":true,"color":"white"}]
# Enable the trigger
scoreboard players enable @a[scores={mt_vote_eligible=1}] mt_vote_trigger
@@ -38,4 +38,7 @@ schedule function tctvote:notes/up_0 1t
function tctvote:countdownstart
# And start the countdown
schedule function tctvote:halt 20s
schedule function tctvote:halt 20s
# Give everyone advancements
advancement grant @a[scores={mt_vote_eligible=1},advancements={craftytable:joinmeeting=true}] only craftytable:vote