Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /ikeys [<player>] [<number>]:
- permission: ikeys.give
- trigger:
- if arg 1 is not set:
- send "&cMauvaise commande ! Essaye plutot /ikeys <joueur> !"
- else:
- give 1 Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates" to arg 1
- on rightclick on chest:
- if name of tool of player is "&8&lIron Keys":
- loop all items in the player's inventory:
- if loop-item is Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates":
- wait 1 tick
- remove 1 Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates" from player's inventory
- open chest with 3 rows named "&8&lIron Crates" to player
- format slot 0 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 1 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 2 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 3 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 4 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 5 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 6 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 7 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 8 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 9 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 17 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 18 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 19 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 20 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 21 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 22 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 23 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 24 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 25 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 26 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
- format slot 13 of player with 1 Iron Sword of sharpness 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Shovel of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Pickaxe of efficiency 2 named "&8IronCrates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Axe of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Helmet of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Chestplate of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Leggings of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- format slot 13 of player with 1 Iron Boots of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.pop" at player with pitch 10 volume 10
- play raw sound "random.orb" at player with pitch 10 volume 10
- wait 0.5 second
- set {_random_coffre} to a random integer between 1 and 9
- wait 0.5 tick
- if {_random_coffre} is 1:
- format slot 13 of player with 1 Iron Sword of sharpness 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give Iron Sword of sharpness 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 2:
- format slot 13 of player with 1 Iron Shovel of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give Iron Shovel of efficiency 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 3:
- format slot 13 of player with 1 Iron Pickaxe of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Pickaxe of efficiency 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 4:
- format slot 13 of player with 1 Iron Axe of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Axe of efficiency 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 5:
- format slot 13 of player with 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 6:
- format slot 13 of player with 1 Iron Helmet of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Helmet of protection 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 7:
- format slot 13 of player with 1 Iron Chestplate of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Chestplate of protection 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 8:
- format slot 13 of player with 1 Iron Leggings of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Leggings of protection 2 named "&8Iron Crates" to player
- stop
- if {_random_coffre} is 9:
- format slot 13 of player with 1 Iron Boots of protection 2 named "&8Iron Crates" to be unstealable
- play raw sound "random.levelup" at player with pitch 200 volume 50
- wait 3 seconds
- close inventory to player
- give 1 Iron Boots of protection 2 named "&8Iron Crates" to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement