Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {UpgradeTokens.%player%} = 0
- on rightclick on a black shulker box:
- if {crate.%location of block%} is set:
- if player is holding a prismarine shard named "&3Crate Key":
- cancel event
- remove 1 prismarine shard named "&3Crate Key" from player
- chance of 20%:
- give player 1 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
- send "&7[&6CCrate&7] &7You have received 1 &6Pickaxe Token&7!"
- chance of 20%:
- make console execute "/eco give %player% 2000"
- send "&7[&6CCrate&7] &7You have received &6$2000&7!"
- chance of 15%:
- give player 3 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
- send "&7[&6CCrate&7] &7You have received 3 &6Pickaxe Token&7!"
- chance of 15%:
- make console execute "/eco give %player% 5000"
- send "&7[&6CCrate&7] &7You have received &6$5000&7!"
- chance of 8%:
- give player 7 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
- send "&7[&6CCrate&7] &7You have received 7 &6Pickaxe Token&7!"
- chance of 7%:
- make console execute "/eco give %player% 10000"
- send "&7[&6CCrate&7] &7You have received &6$10000&7!"
- chance of 6%:
- give player 13 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
- send "&7[&6CCrate&7] &7You have received 13 &6Pickaxe Token&7!"
- chance of 6%:
- make console execute "/eco give %player% 20000"
- send "&7[&6CCrate&7] &7You have received &6$20000&7!"
- chance of 3%:
- apply swiftness 2 to the player
- send "&7[&6CCrate&7] &7You have received permanent &6Haste II&7!"
- else:
- send "&7[&6CCrate&7] You need a &3Crate &7key to use this!"
- on rightclick on black shulker box:
- cancel event
- if {crate.%location of block%} is set:
- open chest with 3 rows named "&3Crate" to argument 1
- wait 1 tick
- format slot 3 of player with magma cream named "&3Pickaxe Token" with lore "&720 Percent Chance" to be unstealable
- format slot 4 of player with paper named "&3$2000" with lore "&720 Percent Chance" to be unstealable
- format slot 5 of player with 3 magma cream named "&3Pickaxe Token" with lore "&715 Percent Chance" to be unstealable
- format slot 12 of player with paper named "&3$5000" with lore "&715 Percent Chance" to be unstealable
- format slot 13 of player with 7 magma cream named "&3Pickaxe Token" with lore "&7 8 Percent Chance" to be unstealable
- format slot 14 of player with paper named "&3$10000" with lore "&78 Percent Chance" to be unstealable
- format slot 21 of player with 13 magma cream named "&3Pickaxe Token" with lore "&76 Percent Chance" to be unstealable
- format slot 22 of player with paper named "&320000" with lore "&76 Percent Chance" to be unstealable
- format slot 23 with glowing wooden pickaxe named "&3Permanent Haste II" with lore "&73 Percent Chance" to be unstealable
- on break of black shulker box:
- if player has permission "server.crates":
- if {crate.%location of block%} is set:
- if player's gamemode is creative:
- if player is sneaking:
- delete {crate.%location of block%}
- send "&7[&6CCrates&7] &7You have delete a Crate!"
- else:
- cancel event
- on place:
- if player has permission "server.crates":
- if lore of player's tool is "&7( | &3Crate Chest &7| )":
- set {crate.%location of block%} to true
- send "&7[&6CCrates&7] You have placed a Crate!"
- command /ccrate [<text>]:
- permission message: &cYou cannot do that!
- trigger:
- if player has permission "server.crates":
- if arg-1 is not set:
- send "&7[&6CCrate&7] &7/crate (Get/Key/Help)"
- if arg-1 is set:
- if arg-1 is "get":
- give player 1 black shulker box named "&3Crate" with lore "&7( | &3Crate Chest &7| )"
- send "&7[&6CCrates&7] &7You have gotten a &6Crate&7!"
- if arg-1 is "key":
- give 1 prismarine shard named "&3Crate Key" to player
- send "&7[&6CCrates&7] &7You have been given a &bCrate Key&7!"
- if arg-1 is "help":
- send "&7[&6CCrate&7] &7/crate (Get/Key/Help)"
- send " "
- send "&7[&6CCrate&7] &7Skripted Crates"
- send "&7[&6CCrate&7] &7Created by: 70sOn7"
- else:
- if arg-1 is not set:
- send "&7[&6CCrate&7] &7Skripted Crates"
- send "&7[&6CCrate&7] &7Created by: 70sOn7"
- if arg-1 is "help":
- send "&7[&6CCrate&7] &7Skripted Crates"
- send "&7[&6CCrate&7] &7Created by: 70sOn7"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement