NoHacksJustACow

Prison | Contrabands

Mar 10th, 2019
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. command /cool:
  2. trigger:
  3. add 3 to {common::%player%}
  4. add 3 to {rare::%player%}
  5. add 3 to {epic::%player%}
  6. add 3 to {legendary::%player%}
  7. send "&7You gave &c%player% &43 &7of each Crate!"
  8.  
  9. variables:
  10. {common::%player%} = 0
  11. {rare::%player%} = 0
  12. {epic::%player%} = 0
  13. {legendary::%player%} = 0
  14.  
  15. command /Contrabands:
  16. trigger:
  17. open virtual chest inventory with size 3 named "&d&lContrabands " to player
  18. make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25, and 26 of player with gray glass named " " to do nothing
  19. make gui slot 10 of player with chest named "&2*&a*&2* &2&lCommon &a&lContraband &2*&a*&2*" with lore "||&7Chances of getting...||||&2* &aItem 1||&2* &aItem 2||&2* &aItem 3||&2* &aItem 4||||&fYou have &2x%{common::%player%}% &fContraband(s)" to run:
  20. if {cooldown::%player%} is not set:
  21. if {common::%player%} >= 1:
  22. set {cooldown::%player%} to true
  23. remove 1 from {common::%player%}
  24. open virtual chest inventory with 3 rows named "&2&lCommon &a&lContraband" to player
  25. loop 28 times:
  26. make gui slot {_n} of player with shiny green glass named "&f" to do nothing
  27. make gui slot 0 of player with shiny green glass named "&f" to do nothing
  28. add 1 to {_n}
  29. loop 100 times:
  30. play "entity_player_levelup" to player
  31. set {_number} to a random integer between 1 and 4
  32. if {_number} is 1:
  33. make gui slot 13 of player with 1 of shiny coal named "&71 Coal" to do nothing
  34. if {_number} is 2:
  35. make gui slot 13 of player with 2 of shiny coal named "&72 Coal" to do nothing
  36. if {_number} is between 3 and 4:
  37. make gui slot 13 of player with 3 of shiny coal named "&73 Coal" to do nothing
  38. wait 1 tick
  39. delete {cooldown::%player%}
  40. if {_number} is 1:
  41. give player 1 coal
  42. send "&2*&a*&2* &fYou won 1 Coal &2*&a*&2*"
  43. if {_number} is 2:
  44. give player 2 coal
  45. send "&2*&a*&2* &fYou won 2 Coal &2*&a*&2*"
  46. if {_number} is between 3 and 4:
  47. give player 3 coal
  48. send "&2*&a*&2* &fYou won 3 Coal &2*&a*&2*"
  49. else:
  50. send "&7You need more &2&lCommon &a&lContrabands &7before you can do this again!"
  51. make gui slot 12 of player with chest named "&3*&b*&3* &3&lRare &b&lContraband &3*&b*&3*" with lore "||&7Chances of getting...||||&3* &bItem 1||&3* &bItem 2||&3* &bItem 3||&3* &bItem 4||||&fYou have &3x%{rare::%player%}% &fContraband(s)" to run:
  52. if {cooldown::%player%} is not set:
  53. if {rare::%player%} >= 1:
  54. set {cooldown::%player%} to true
  55. remove 1 from {rare::%player%}
  56. open virtual chest inventory with 3 rows named "&3&lRare &b&lContraband" to player
  57. loop 28 times:
  58. make gui slot {_n} of player with shiny blue glass named "&f" to do nothing
  59. make gui slot 0 of player with shiny blue glass named "&f" to do nothing
  60. add 1 to {_n}
  61. loop 100 times:
  62. play "entity_player_levelup" to player
  63. set {_number} to a random integer between 1 and 4
  64. if {_number} is 1:
  65. make gui slot 13 of player with 1 of shiny coal named "&71 Coal" to do nothing
  66. if {_number} is 2:
  67. make gui slot 13 of player with 2 of shiny coal named "&72 Coal" to do nothing
  68. if {_number} is between 3 and 4:
  69. make gui slot 13 of player with 3 of shiny coal named "&73 Coal" to do nothing
  70. wait 1 tick
  71. delete {cooldown::%player%}
  72. if {_number} is 1:
  73. give player 1 coal
  74. send "&3*&b*&3* &fYou won 1 Coal &3*&b*&3*"
  75. if {_number} is 2:
  76. give player 2 coal
  77. send "&3*&b*&3* &fYou won 2 Coal &3*&b*&3*"
  78. if {_number} is between 3 and 4:
  79. give player 3 coal
  80. send "&3*&b*&3* &fYou won 3 Coal &3*&b*&3*"
  81. else:
  82. send "&7You need more &3&lRare &b&lContrabands &7before you can do this again!"
  83. make gui slot 14 of player with chest named "&5*&d*&5* &5&lEpic &d&lContraband &5*&d*&5*" with lore "||&7Chances of getting...||||&5* &dItem 1||&5* &dItem 2||&5* &dItem 3||&5* &dItem 4||||&fYou have &5x%{epic::%player%}% &fContraband(s)" to run:
  84. if {cooldown::%player%} is not set:
  85. if {epic::%player%} >= 1:
  86. set {cooldown::%player%} to true
  87. remove 1 from {epic::%player%}
  88. open virtual chest inventory with 3 rows named "&5&lEpic &d&lContraband" to player
  89. loop 28 times:
  90. make gui slot {_n} of player with shiny purple glass named "&f" to do nothing
  91. make gui slot 0 of player with shiny purple glass named "&f" to do nothing
  92. add 1 to {_n}
  93. loop 100 times:
  94. play "entity_player_levelup" to player
  95. set {_number} to a random integer between 1 and 4
  96. if {_number} is 1:
  97. make gui slot 13 of player with 1 of shiny coal named "&71 Coal" to do nothing
  98. if {_number} is 2:
  99. make gui slot 13 of player with 2 of shiny coal named "&72 Coal" to do nothing
  100. if {_number} is between 3 and 4:
  101. make gui slot 13 of player with 3 of shiny coal named "&73 Coal" to do nothing
  102. wait 1 tick
  103. delete {cooldown::%player%}
  104. if {_number} is 1:
  105. give player 1 coal
  106. send "&5*&d*&5* &fYou won 1 Coal &5*&d*&5*"
  107. if {_number} is 2:
  108. give player 2 coal
  109. send "&5*&d*&5* &fYou won 2 Coal &5*&d*&5*"
  110. if {_number} is between 3 and 4:
  111. give player 3 coal
  112. send "&5*&d*&5* &fYou won 3 Coal &5*&d*&5*"
  113. else:
  114. send "&7You need more &5&lEpic &d&lContrabands &7before you can do this again!"
  115. make gui slot 16 of player with ender chest named "&6*&e*&6* &6&lLegendary &e&lContraband &6*&e*&6*" with lore "||&7Chances of getting...||||&6* &eItem 1||&6* &eItem 2||&6* &eItem 3||&6* &eItem 4||||&fYou have &6x%{legendary::%player%}% &fContraband(s)" to run:
  116. if {cooldown::%player%} is not set:
  117. if {legendary::%player%} >= 1:
  118. set {cooldown::%player%} to true
  119. remove 1 from {legendary::%player%}
  120. open virtual chest inventory with 3 rows named "&6&lLegendary &e&lContraband" to player
  121. loop 28 times:
  122. make gui slot {_n} of player with shiny purple glass named "&f" to do nothing
  123. make gui slot 0 of player with shiny purple glass named "&f" to do nothing
  124. add 1 to {_n}
  125. loop 100 times:
  126. play "entity_player_levelup" to player
  127. set {_number} to a random integer between 1 and 4
  128. if {_number} is 1:
  129. make gui slot 13 of player with 1 of shiny coal named "&71 Coal" to do nothing
  130. if {_number} is 2:
  131. make gui slot 13 of player with 2 of shiny coal named "&72 Coal" to do nothing
  132. if {_number} is between 3 and 4:
  133. make gui slot 13 of player with 3 of shiny coal named "&73 Coal" to do nothing
  134. wait 1 tick
  135. delete {cooldown::%player%}
  136. if {_number} is 1:
  137. give player 1 coal
  138. send "&6*&e*&6* &fYou won 1 Coal &6*&e*&6*"
  139. if {_number} is 2:
  140. give player 2 coal
  141. send "&6*&e*&6* &fYou won 2 Coal &6*&e*&6*"
  142. if {_number} is between 3 and 4:
  143. give player 3 coal
  144. send "&6*&e*&6* &fYou won 3 Coal &6*&e*&6*"
  145. else:
  146. send "&7You need more &6&lLegendary &e&lContrabands &7before you can do this again!"
Advertisement
Add Comment
Please, Sign In to add comment