Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /vote:
- trigger:
- create new gui with id "vote" with virtual chest named " &7>=&aVOTING&7=<" with 3 rows:
- open gui with id "vote" to player
- loop integers between 0 and 26:
- format gui slot loop-integer of player with gray glass pane named "&aVote Menu"
- format gui slot 4 of player with end crystal named "&3Time before next event: &a%{event::timer}%"
- format gui slot 9 of player with coal named "&2Loot chest" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::loot}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 11 of player with redstone named "&6Everyone gets 5 coin+" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::coin+}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 13 of player with iron ingot named "&bEveryone gets $1200" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::1200}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 15 of player with emerald named "&230m 3x speed xp booster" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::speed}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 17 of player with diamond named "&960m 5x strength xp booster" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::strength}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 22 of player with barrier named "Close" to close
- every 3 hours in world "world":
- set {_1} to -1
- set {_2} to -1
- set {_3} to -1
- set {_4} to -1
- set {_5} to -1
- set {_1} to {vote::strength}
- set {_1th} to "60m Strength Booster"
- if {vote::speed} is more than {_1}:
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::speed}
- set {_1th} to "30m Speed Booster"
- else if {vote::speed} is more than {_2}:
- set {_2} to {vote::speed}
- set {_2th} to "30m Speed Booster"
- if {vote::1200} is more than {_1}:
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::1200}
- set {_1th} to "$1200"
- else if {vote::1200} is more than {_2}:
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::1200}
- set {_2th} to "$1200"
- else if {vote::1200} is more than {_3}:
- set {_3} to {vote::1200}
- set {_3th} to "$1200"
- if {vote::coin+} is more than {_1}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::coin+}
- set {_1th} to "5 coin+"
- else if {vote::coin+} is more than {_2}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::coin+}
- set {_2th} to "5 coin+"
- else if {vote::coin+} is more than {_3}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {vote::coin+}
- set {_3th} to "5 coin+"
- else if {vote::coin+} is more than {_4}:
- set {_4} to {vote::coin+}
- set {_4th} to "5 coin+"
- if {vote::loot} is more than {_1}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::loot}
- set {_1th} to "Loot Chest"
- else if {vote::loot} is more than {_2}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::loot}
- set {_2th} to "Loot Chest"
- else if {vote::loot} is more than {_3}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {vote::loot}
- set {_3th} to "Loot Chest"
- else if {vote::loot} is more than {_4}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {vote::loot}
- set {_4th} to "Loot Chest"
- else if {vote::loot} is more than {_5}:
- set {_5} to {vote::loot}
- set {_5th} to "Loot Chest"
- broadcast ""
- broadcast "&2The votes for the past 3 hours are:"
- broadcast "&51st: &a%{_1th}% &bwith %{_1}% votes"
- broadcast "&52nd: &6%{_2th}% &bwith %{_2}% votes"
- broadcast "&53rd: &6%{_3th}% &bwith %{_3}% votes"
- broadcast "&54th: &3%{_4th}% &bwith %{_4}% votes"
- broadcast "&55th: &3%{_5th}% &bwith %{_5}% votes"
- broadcast ""
- set {vote::loot} to 0
- set {vote::coin+} to 0
- set {vote::1200} to 0
- set {vote::speed} to 0
- set {vote::strength} to 0
- if {_1th} is "Loot Chest":
- set {_thing} to a random integer between 1 and 5
- if {_thing} is 1:
- set block at location at -608, 63, 1380 in world "world" to chest
- broadcast "-608, 63, 1380"
- if {_thing} is 2:
- set block at location at -711, 63, 1395 in world "world" to chest
- broadcast "-711, 63, 1395"
- if {_thing} is 3:
- set block at location at -695, 63, 1333 in world "world" to chest
- broadcast "-695, 63, 1333"
- if {_thing} is 4:
- set block at location at -766, 59, 1380 in world "world" to chest
- broadcast "-766, 59, 1380"
- if {_thing} is 5:
- set block at location at -766, 59, 1380 in world "world" to chest
- broadcast "-766, 59, 1380"
- if {_1th} is "5 coin+":
- loop all players:
- give loop-player 5 sunflower named "&6&lCoin +"
- if {_1th} is "$1200":
- loop all players:
- add 1200 to loop-player's balance
- if {_1th} is "30m Speed Booster":
- if {_1th} is "60m Strength Booster":
- wait 1 seconds
- set {strengthbooster} to 5
- broadcast "&25x Strength Booster enabled for 60 minutes"
- wait 60 minutes
- delete {strengthbooster}
- loop {players::*}:
- delete {%loop-value%::hasvoted}
- on join:
- loop {players::*}:
- if loop-value is player's uuid:
- set {hasjoined::%player's uuid%} to true
- if {hasjoined::%player's uuid%} is not set:
- add player's uuid to {players::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement