Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1.  
  2. options:
  3. version: v1
  4.  
  5.  
  6. on rightclick:
  7. event-block is ender chest named "&eCrate":
  8. cancel event
  9. wait 3 ticks
  10. open chest with 1 row named "&c&LCrates&8!" to player
  11. format slot 0 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  12. format slot 1 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  13. format slot 2 of player with barrier named "&r" with lore "&c&lCOMING SOON " to be unstealable
  14. format slot 3 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  15. format slot 4 of player with ender chest named "&d&lSPARTAN CRATE" with lore "||&c&lCOST&8 - &71,000!||||&7R-Click|| &7to purchase!" to run [make player execute "copen spartan"]
  16. format slot 5 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  17. format slot 6 of player with barrier named "&r" with lore "&c&lCOMING SOON " to be unstealable
  18. format slot 7 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  19. format slot 8 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
  20.  
  21.  
  22. command /copen [<text>]:
  23. trigger:
  24. if arg-1 is "spartan":
  25. if player's balance is less than 1000:
  26. set {_cbal} to 1000 - player's balance
  27. send "&8(&c&lHEROTIC&8) &7You need %{_cbal}% more dollars to buy a key!"
  28. stop
  29. if player's balance is greater than or equal to 1000:
  30. remove 1000 from player's balance
  31. send "&c• &7Opening..."
  32. make console execute "/cspec %player%"
  33. wait 1 second
  34. set {_cp} to a random integer from 1 and 107
  35. if {_cp} is between 1 and 30:
  36. give 5 enchanted_golden apples to player
  37. send player title "&c&lYou received" with subtitle "&e5x Golden Apples!" for 3 seconds
  38. send "&c• &7You received &e5x Golden Apples!"
  39. stop
  40. if {_cp} is between 39 and 55:
  41. give 15 enchanted_golden apples to player
  42. send player title "&c&lYou received" with subtitle "&e15x Golden Apples!" for 3 seconds
  43. send "&c• &7You received &e15x Golden Apples!"
  44. stop
  45. if {_cp} is between 56 and 60:
  46. give 1 diamond sword of fire aspect 2, sharpness 6 named "&8(&d&lSPARTAN&8) &5SWORD" to player
  47. send player title "&c&lYou received" with subtitle "&7Spartan Sword" for 3 seconds
  48. send "&c• &7You received &7Spartan Sword!"
  49. stop
  50. if {_cp} is between 66 and 72:
  51. give 1 diamond helmet of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5HELMET" to player
  52. send player title "&c&lYou received" with subtitle "&7Spartan Helmet" for 3 seconds
  53. send "&c• &7You received &7Spartan Helmet!"
  54. stop
  55. if {_cp} is between 76 and 79:
  56. give 1 diamond leggings of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5LEGGINGS" to player
  57. send player title "&c&lYou received" with subtitle "&7Spartan Leggings" for 3 seconds
  58. send "&c• &7You received &dSpartan Leggings!"
  59. stop
  60. if {_cp} is between 86 and 88:
  61. give 1 diamond chestplate of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5CHESPLATE" to player
  62. send player title "&c&lYou received" with subtitle "&7Spartan Chestplate" for 3 seconds
  63. send "&c• &7You received &7Spartan Chestplate!"
  64. stop
  65. if {_cp} is between 91 and 96:
  66. give 1 diamond boots of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5BOOTS" to player
  67. send player title "&c&lYou received" with subtitle "&7Spartan Boots" for 3 seconds
  68. send "&c• &7You received &7Spartan Boots"
  69. stop
  70. if {_cp} is between 106 and 107:
  71. give paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!" to player
  72. send player title "&c&lYou received" with subtitle "&d&lSPARTAN RANK" for 3 seconds
  73. broadcast "&8(&c&lHEROTIC&8) &c%player% &7has just won &d&lSPARTAN &7RANK!!"
  74. send "&c• &7You received &dSpartan Rank!"
  75. stop
  76.  
  77. command /cspec [<player>]:
  78. permission: server.cspec
  79. permission message: Unknown command. Type "/help" for help.
  80. trigger:
  81. teleport arg 1 to {spec}
  82. set {spec.%arg-1%} to true
  83. set arg 1's gamemode to spectator
  84. set arg 1's flight mode to true
  85. wait 5 seconds
  86. set arg 1's gamemode to survival
  87. set arg 1's flight mode to false
  88. delete {spec.%arg-1%}
  89. teleport arg 1 to {spece}
  90.  
  91. on click:
  92. if player is holding paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!":
  93. if player's gamemode is survival:
  94. send "&8(&c&lHEROTIC&8) &7You have redeem &d&lSPARTAN &7Rank!"
  95. make console execute "pex user %player% group set Spartan"
  96. remove 1 paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!" from the player
  97. else:
  98. send "&8(&c&l!&8) &7You need to be in &c&lSURVIVAL &7to redeem this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement