command /key [] [] []: trigger: if arg 1 is not set: if arg 2 is not set: if arg 3 is not set: send "" send "&e(!) /key [] []" send "" if arg 1 is "list": send "" send "&e(!) List of keys:" send "" send "&7(!) &bDiamond" send "&7(!) &6Gold" send "&7(!) &fIron" send "" if arg 1 is "give": if arg 2 is set: if arg 3 is "iron": give 1 light gray dye named "&f&lIron Key &7(Click on crate to redeem)" to arg 2 if arg 1 is "give": if arg 2 is set: if arg 3 is "gold": give 1 orange dye named "&6&lGold Key &7(Click on crate to redeem)" to arg 2 if arg 1 is "give": if arg 2 is set: if arg 3 is "diamond": give 1 light blue dye named "&b&lDiamond Key &7(Click on crate to redeem)" to arg 2 command /crate: permission: crate.admin trigger: give 1 magma_block named "&6Crate &7(Place to set a crate)" to player command /cratereset: permission: crate.admin trigger: set {crate} to "False" on place of magma_block: if player's tool is magma_block named "&6Crate &7(Place to set a crate)": set {crate} to location of event-block on rightclick on magma_block: if {crate} is set: if player's tool is light gray dye named "&f&lIron Key &7(Click on crate to redeem)": set {ironcrate} to random integer between 1 and 5 remove 1 light gray dye from player if {ironcrate} is 1: send "&e(!) You have just opened an iron crate and got $1000" add 1000 to player's balance stop if {ironcrate} is 2: send "&e(!) You have just opened an iron crate and got $2000" add 2000 to player's balance stop if {ironcrate} is 3: send "&e(!) You have just opened an iron crate and got $3000" add 3000 to player's balance stop if {ironcrate} is 4: send "&e(!) You have just opened an iron crate and got $5000" add 5000 to player's balance stop if {ironcrate} is 5: send "&e(!) You have just opened an iron crate and got 50 harvest levels" add 50 to {shards.%player%} stop