Advertisement
CARAB4O

Untitled

Nov 25th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. Variables:
  2. {UpgradeTokens.%player%} = 0
  3.  
  4. on rightclick on a black shulker box:
  5. if {crate.%location of block%} is set:
  6. if player is holding a prismarine shard named "&3Crate Key":
  7. cancel event
  8. remove 1 prismarine shard named "&3Crate Key" from player
  9. chance of 20%:
  10. give player 1 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
  11. send "&7[&6CCrate&7] &7You have received 1 &6Pickaxe Token&7!"
  12. chance of 20%:
  13. make console execute "/eco give %player% 2000"
  14. send "&7[&6CCrate&7] &7You have received &6$2000&7!"
  15. chance of 15%:
  16. give player 3 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
  17. send "&7[&6CCrate&7] &7You have received 3 &6Pickaxe Token&7!"
  18. chance of 15%:
  19. make console execute "/eco give %player% 5000"
  20. send "&7[&6CCrate&7] &7You have received &6$5000&7!"
  21. chance of 8%:
  22. give player 7 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
  23. send "&7[&6CCrate&7] &7You have received 7 &6Pickaxe Token&7!"
  24. chance of 7%:
  25. make console execute "/eco give %player% 10000"
  26. send "&7[&6CCrate&7] &7You have received &6$10000&7!"
  27. chance of 6%:
  28. give player 13 magma cream named "&3Pickaxe Token" with lore "&bRight click to redeem"
  29. send "&7[&6CCrate&7] &7You have received 13 &6Pickaxe Token&7!"
  30. chance of 6%:
  31. make console execute "/eco give %player% 20000"
  32. send "&7[&6CCrate&7] &7You have received &6$20000&7!"
  33. chance of 3%:
  34. apply swiftness 2 to the player
  35. send "&7[&6CCrate&7] &7You have received permanent &6Haste II&7!"
  36. else:
  37. send "&7[&6CCrate&7] You need a &3Crate &7key to use this!"
  38.  
  39. on rightclick on black shulker box:
  40. cancel event
  41. if {crate.%location of block%} is set:
  42. open chest with 3 rows named "&3Crate" to argument 1
  43. wait 1 tick
  44. format slot 3 of player with magma cream named "&3Pickaxe Token" with lore "&720 Percent Chance" to be unstealable
  45. format slot 4 of player with paper named "&3$2000" with lore "&720 Percent Chance" to be unstealable
  46. format slot 5 of player with 3 magma cream named "&3Pickaxe Token" with lore "&715 Percent Chance" to be unstealable
  47. format slot 12 of player with paper named "&3$5000" with lore "&715 Percent Chance" to be unstealable
  48. format slot 13 of player with 7 magma cream named "&3Pickaxe Token" with lore "&7 8 Percent Chance" to be unstealable
  49. format slot 14 of player with paper named "&3$10000" with lore "&78 Percent Chance" to be unstealable
  50. format slot 21 of player with 13 magma cream named "&3Pickaxe Token" with lore "&76 Percent Chance" to be unstealable
  51. format slot 22 of player with paper named "&320000" with lore "&76 Percent Chance" to be unstealable
  52. format slot 23 with glowing wooden pickaxe named "&3Permanent Haste II" with lore "&73 Percent Chance" to be unstealable
  53.  
  54. on break of black shulker box:
  55. if player has permission "server.crates":
  56. if {crate.%location of block%} is set:
  57. if player's gamemode is creative:
  58. if player is sneaking:
  59. delete {crate.%location of block%}
  60. send "&7[&6CCrates&7] &7You have delete a Crate!"
  61. else:
  62. cancel event
  63.  
  64. on place:
  65. if player has permission "server.crates":
  66. if lore of player's tool is "&7( | &3Crate Chest &7| )":
  67. set {crate.%location of block%} to true
  68. send "&7[&6CCrates&7] You have placed a Crate!"
  69.  
  70. command /ccrate [<text>]:
  71. permission message: &cYou cannot do that!
  72. trigger:
  73. if player has permission "server.crates":
  74. if arg-1 is not set:
  75. send "&7[&6CCrate&7] &7/crate (Get/Key/Help)"
  76. if arg-1 is set:
  77. if arg-1 is "get":
  78. give player 1 black shulker box named "&3Crate" with lore "&7( | &3Crate Chest &7| )"
  79. send "&7[&6CCrates&7] &7You have gotten a &6Crate&7!"
  80. if arg-1 is "key":
  81. give 1 prismarine shard named "&3Crate Key" to player
  82. send "&7[&6CCrates&7] &7You have been given a &bCrate Key&7!"
  83. if arg-1 is "help":
  84. send "&7[&6CCrate&7] &7/crate (Get/Key/Help)"
  85. send " "
  86. send "&7[&6CCrate&7] &7Skripted Crates"
  87. send "&7[&6CCrate&7] &7Created by: 70sOn7"
  88. else:
  89. if arg-1 is not set:
  90. send "&7[&6CCrate&7] &7Skripted Crates"
  91. send "&7[&6CCrate&7] &7Created by: 70sOn7"
  92. if arg-1 is "help":
  93. send "&7[&6CCrate&7] &7Skripted Crates"
  94. send "&7[&6CCrate&7] &7Created by: 70sOn7"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement