Created
August 5, 2015 01:31
-
-
Save MrPowerGamerBR/160e5e9c091a4c1ae961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command /bau: | |
trigger: | |
if {PowerBauDaFelicidade.Players::%player%} is set: | |
send "Você já marcou o baú da felicidade!" | |
stop | |
set {PowerBauDaFelicidade.Players::%player%} to location of block at player's location | |
set block at player's location to chest | |
send "Você marcou o seu baú da felicidade!" | |
every 5 minutes: | |
loop {PowerBauDaFelicidade.Players::*}: | |
if block at loop-value is not chest: | |
clear {PowerBauDaFelicidade.Players::%loop-index%} | |
add 1 diamond to block at loop-value | |
add 1 emerald to block at loop-value | |
add 5 apples to block at loop-value | |
on break of chest: | |
loop {PowerBauDaFelicidade.Players::*}: | |
if loop-value is location of event-block: | |
clear {PowerBauDaFelicidade.Players::%loop-index%} | |
send "Você quebrou o seu baú da felicidade ;-;" | |
stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment