Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- version: v1
- on rightclick:
- event-block is ender chest named "&eCrate":
- cancel event
- wait 3 ticks
- open chest with 1 row named "&c&LCrates&8!" to player
- format slot 0 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- format slot 1 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- format slot 2 of player with barrier named "&r" with lore "&c&lCOMING SOON " to be unstealable
- format slot 3 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- 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"]
- format slot 5 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- format slot 6 of player with barrier named "&r" with lore "&c&lCOMING SOON " to be unstealable
- format slot 7 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- format slot 8 of player with black stained glass named "&r" with lore "&8&m-------------- " to be unstealable
- command /copen [<text>]:
- trigger:
- if arg-1 is "spartan":
- if player's balance is less than 1000:
- set {_cbal} to 1000 - player's balance
- send "&8(&c&lHEROTIC&8) &7You need %{_cbal}% more dollars to buy a key!"
- stop
- if player's balance is greater than or equal to 1000:
- remove 1000 from player's balance
- send "&c• &7Opening..."
- make console execute "/cspec %player%"
- wait 1 second
- set {_cp} to a random integer from 1 and 107
- if {_cp} is between 1 and 30:
- give 5 enchanted_golden apples to player
- send player title "&c&lYou received" with subtitle "&e5x Golden Apples!" for 3 seconds
- send "&c• &7You received &e5x Golden Apples!"
- stop
- if {_cp} is between 39 and 55:
- give 15 enchanted_golden apples to player
- send player title "&c&lYou received" with subtitle "&e15x Golden Apples!" for 3 seconds
- send "&c• &7You received &e15x Golden Apples!"
- stop
- if {_cp} is between 56 and 60:
- give 1 diamond sword of fire aspect 2, sharpness 6 named "&8(&d&lSPARTAN&8) &5SWORD" to player
- send player title "&c&lYou received" with subtitle "&7Spartan Sword" for 3 seconds
- send "&c• &7You received &7Spartan Sword!"
- stop
- if {_cp} is between 66 and 72:
- give 1 diamond helmet of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5HELMET" to player
- send player title "&c&lYou received" with subtitle "&7Spartan Helmet" for 3 seconds
- send "&c• &7You received &7Spartan Helmet!"
- stop
- if {_cp} is between 76 and 79:
- give 1 diamond leggings of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5LEGGINGS" to player
- send player title "&c&lYou received" with subtitle "&7Spartan Leggings" for 3 seconds
- send "&c• &7You received &dSpartan Leggings!"
- stop
- if {_cp} is between 86 and 88:
- give 1 diamond chestplate of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5CHESPLATE" to player
- send player title "&c&lYou received" with subtitle "&7Spartan Chestplate" for 3 seconds
- send "&c• &7You received &7Spartan Chestplate!"
- stop
- if {_cp} is between 91 and 96:
- give 1 diamond boots of protection 5, projectile protection 5, fire protection 5, unbreaking 3 named "&8(&d&lSPARTAN&8) &5BOOTS" to player
- send player title "&c&lYou received" with subtitle "&7Spartan Boots" for 3 seconds
- send "&c• &7You received &7Spartan Boots"
- stop
- if {_cp} is between 106 and 107:
- give paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!" to player
- send player title "&c&lYou received" with subtitle "&d&lSPARTAN RANK" for 3 seconds
- broadcast "&8(&c&lHEROTIC&8) &c%player% &7has just won &d&lSPARTAN &7RANK!!"
- send "&c• &7You received &dSpartan Rank!"
- stop
- command /cspec [<player>]:
- permission: server.cspec
- permission message: Unknown command. Type "/help" for help.
- trigger:
- teleport arg 1 to {spec}
- set {spec.%arg-1%} to true
- set arg 1's gamemode to spectator
- set arg 1's flight mode to true
- wait 5 seconds
- set arg 1's gamemode to survival
- set arg 1's flight mode to false
- delete {spec.%arg-1%}
- teleport arg 1 to {spece}
- on click:
- if player is holding paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!":
- if player's gamemode is survival:
- send "&8(&c&lHEROTIC&8) &7You have redeem &d&lSPARTAN &7Rank!"
- make console execute "pex user %player% group set Spartan"
- remove 1 paper named "&8(&d&lSPARTAN&8) &5Rank" with lore "&7R-Click to redeem!" from the player
- else:
- 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