Advertisement
NoobeYCraft

Système de Crates avec une Keys

Oct 22nd, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.00 KB | None | 0 0
  1. Command /ikeys [<player>] [<number>]:
  2. permission: ikeys.give
  3. trigger:
  4. if arg 1 is not set:
  5. send "&cMauvaise commande ! Essaye plutot /ikeys <joueur> !"
  6. else:
  7. give 1 Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates" to arg 1
  8.  
  9. on rightclick on chest:
  10. if name of tool of player is "&8&lIron Keys":
  11. loop all items in the player's inventory:
  12. if loop-item is Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates":
  13. wait 1 tick
  14. remove 1 Iron Ingot of looting 5 named "&8&lIron Keys" with lore "&7A utiliser au /warp crates" from player's inventory
  15. open chest with 3 rows named "&8&lIron Crates" to player
  16. format slot 0 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  17. format slot 1 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  18. format slot 2 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  19. format slot 3 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  20. format slot 4 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  21. format slot 5 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  22. format slot 6 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  23. format slot 7 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  24. format slot 8 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  25. format slot 9 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  26. format slot 17 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  27. format slot 18 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  28. format slot 19 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  29. format slot 20 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  30. format slot 21 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  31. format slot 22 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  32. format slot 23 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  33. format slot 24 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  34. format slot 25 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  35. format slot 26 of player with 1 Gray Stained Glass Pane of looting 1 named "" to be unstealable
  36. format slot 13 of player with 1 Iron Sword of sharpness 2 named "&8Iron Crates" to be unstealable
  37. play raw sound "random.pop" at player with pitch 10 volume 10
  38. play raw sound "random.orb" at player with pitch 10 volume 10
  39. wait 0.5 second
  40. format slot 13 of player with 1 Iron Shovel of efficiency 2 named "&8Iron Crates" to be unstealable
  41. play raw sound "random.pop" at player with pitch 10 volume 10
  42. play raw sound "random.orb" at player with pitch 10 volume 10
  43. wait 0.5 second
  44. format slot 13 of player with 1 Iron Pickaxe of efficiency 2 named "&8IronCrates" to be unstealable
  45. play raw sound "random.pop" at player with pitch 10 volume 10
  46. play raw sound "random.orb" at player with pitch 10 volume 10
  47. wait 0.5 second
  48. format slot 13 of player with 1 Iron Axe of efficiency 2 named "&8Iron Crates" to be unstealable
  49. play raw sound "random.pop" at player with pitch 10 volume 10
  50. play raw sound "random.orb" at player with pitch 10 volume 10
  51. wait 0.5 second
  52. format slot 13 of player with 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to be unstealable
  53. play raw sound "random.pop" at player with pitch 10 volume 10
  54. play raw sound "random.orb" at player with pitch 10 volume 10
  55. wait 0.5 second
  56. format slot 13 of player with 1 Iron Helmet of protection 2 named "&8Iron Crates" to be unstealable
  57. play raw sound "random.pop" at player with pitch 10 volume 10
  58. play raw sound "random.orb" at player with pitch 10 volume 10
  59. wait 0.5 second
  60. format slot 13 of player with 1 Iron Chestplate of protection 2 named "&8Iron Crates" to be unstealable
  61. play raw sound "random.pop" at player with pitch 10 volume 10
  62. play raw sound "random.orb" at player with pitch 10 volume 10
  63. wait 0.5 second
  64. format slot 13 of player with 1 Iron Leggings of protection 2 named "&8Iron Crates" to be unstealable
  65. play raw sound "random.pop" at player with pitch 10 volume 10
  66. play raw sound "random.orb" at player with pitch 10 volume 10
  67. wait 0.5 second
  68. format slot 13 of player with 1 Iron Boots of protection 2 named "&8Iron Crates" to be unstealable
  69. play raw sound "random.pop" at player with pitch 10 volume 10
  70. play raw sound "random.orb" at player with pitch 10 volume 10
  71. wait 0.5 second
  72. set {_random_coffre} to a random integer between 1 and 9
  73. wait 0.5 tick
  74. if {_random_coffre} is 1:
  75. format slot 13 of player with 1 Iron Sword of sharpness 2 named "&8Iron Crates" to be unstealable
  76. play raw sound "random.levelup" at player with pitch 200 volume 50
  77. wait 3 seconds
  78. close inventory to player
  79. give Iron Sword of sharpness 2 named "&8Iron Crates" to player
  80. stop
  81. if {_random_coffre} is 2:
  82. format slot 13 of player with 1 Iron Shovel of efficiency 2 named "&8Iron Crates" to be unstealable
  83. play raw sound "random.levelup" at player with pitch 200 volume 50
  84. wait 3 seconds
  85. close inventory to player
  86. give Iron Shovel of efficiency 2 named "&8Iron Crates" to player
  87. stop
  88. if {_random_coffre} is 3:
  89. format slot 13 of player with 1 Iron Pickaxe of efficiency 2 named "&8Iron Crates" to be unstealable
  90. play raw sound "random.levelup" at player with pitch 200 volume 50
  91. wait 3 seconds
  92. close inventory to player
  93. give 1 Iron Pickaxe of efficiency 2 named "&8Iron Crates" to player
  94. stop
  95. if {_random_coffre} is 4:
  96. format slot 13 of player with 1 Iron Axe of efficiency 2 named "&8Iron Crates" to be unstealable
  97. play raw sound "random.levelup" at player with pitch 200 volume 50
  98. wait 3 seconds
  99. close inventory to player
  100. give 1 Iron Axe of efficiency 2 named "&8Iron Crates" to player
  101. stop
  102. if {_random_coffre} is 5:
  103. format slot 13 of player with 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to be unstealable
  104. play raw sound "random.levelup" at player with pitch 200 volume 50
  105. wait 3 seconds
  106. close inventory to player
  107. give 1 Iron Hoe of efficiency 2 named "&8Iron Crates" to player
  108. stop
  109. if {_random_coffre} is 6:
  110. format slot 13 of player with 1 Iron Helmet of protection 2 named "&8Iron Crates" to be unstealable
  111. play raw sound "random.levelup" at player with pitch 200 volume 50
  112. wait 3 seconds
  113. close inventory to player
  114. give 1 Iron Helmet of protection 2 named "&8Iron Crates" to player
  115. stop
  116. if {_random_coffre} is 7:
  117. format slot 13 of player with 1 Iron Chestplate of protection 2 named "&8Iron Crates" to be unstealable
  118. play raw sound "random.levelup" at player with pitch 200 volume 50
  119. wait 3 seconds
  120. close inventory to player
  121. give 1 Iron Chestplate of protection 2 named "&8Iron Crates" to player
  122. stop
  123. if {_random_coffre} is 8:
  124. format slot 13 of player with 1 Iron Leggings of protection 2 named "&8Iron Crates" to be unstealable
  125. play raw sound "random.levelup" at player with pitch 200 volume 50
  126. wait 3 seconds
  127. close inventory to player
  128. give 1 Iron Leggings of protection 2 named "&8Iron Crates" to player
  129. stop
  130. if {_random_coffre} is 9:
  131. format slot 13 of player with 1 Iron Boots of protection 2 named "&8Iron Crates" to be unstealable
  132. play raw sound "random.levelup" at player with pitch 200 volume 50
  133. wait 3 seconds
  134. close inventory to player
  135. give 1 Iron Boots of protection 2 named "&8Iron Crates" to player
  136. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement