Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- # Price of each grass block:
- {@GrassPrice} : 25
- # Price of each cobblestone block:
- {@CobblePrice} : 20
- command /shop:
- trigger:
- open chest with 3 rows named "&8&lSHOP" to player
- format slot 12 of player with grass_block named "&r&a&lGRASS BLOCK" with lore "&r&aCost: &r&7$%{@GrassPrice}%" to run [make console execute command /1buygrass %player%]
- format slot 14 of player with cobble_stone named "&r&a&lCOBBLESTONE" with lore "&r&aCost: &r&7$%{@CobblePrice}%" to run [make console execute command /1buycobble %player%]
- format slot 26 of player with barrier named "&r&c&lCLOSE" with lore "&r&cClick to close menu." to close
- command /1buygrass [<player>]:
- permission: shop.admin
- permission message: &r&cPlease use /shop instead.
- trigger:
- if player's balance is less than "%{@GrassPrice}%":
- send "&r&8» &r&7You do not have enough money."
- stop
- if player's balance is more than "%{@GrassPrice - 0.01%":
- take {@GrassPrice} from the player's balance
- make console execute command "/give %player% grass 1"
- send "&r&8» &r&7You have successfully bought &a1x grass block &r&7for &a$%{@GrassPrice}%&r&7!"
- stop
- command /1buycobble [<player>]:
- permission: shop.admin
- permission message: &r&cPlease use /shop instead.
- trigger:
- if player's balance is less than "%{@CobblePrice}%":
- send "&r&8» &r&7You do not have enough money."
- stop
- if player's balance is more than "%{@GrassPrice - 0.01%":
- take {@CobblePrice} from the player's balance
- make console execute command "/give %player% cobblestone 1"
- send "&r&8» &r&7You have successfully bought &a1x cobblestone &r&7for &a$%{@CobblePrice}%&r&7!"
- stop
- #
- # SKRIPT ORIGINALLY MADE BY GAOLEON, REDONE TO WORK BY MUSHROOM300!
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement