Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on villager:
- cancel event
- execute console command "/sshop %player%"
- on right click on crafting table:
- cancel event
- execute console command "/sshop %player%"
- command /shop:
- trigger:
- if sender has permission "villager.instant":
- make console execute "/sshop %player%"
- else:
- send "&8(&b&l!&8) &3Opening in &b3 &3seconds!"
- wait 17 ticks
- send "&8(&b&l!&8) &3Opening in &b2 &3seconds!"
- wait 17 ticks
- send "&8(&b&l!&8) &3Opening in &b1 &3second!"
- wait 17 ticks
- make console execute "/sshop %player%"
- command /sshop <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 rows named "&3Shop" to argument 1
- wait 1 tick
- format slot 11 of argument 1 with sunflower named "&7* &6Token &7*" with lore "||&bClick to trade for tokens!||" to run "tokens %arg-1%"
- format slot 13 of argument 1 with wooden pickaxe named "&6Pickaxe" with lore "&bGet your pickaxe here!" to run "pickaxe %arg-1%"
- format slot 15 of argument 1 with barrier named "&cNot Here" with lore "||&cNOT HERE||" to close
- command /tokens <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 row named "&6Armor" to argument 1
- wait 1 tick
- format slot 10 of argument 1 with sunflower named "&7* &61/2 Token &7*"||&715x Stone||" with lore "to run "tokenb %arg-1% stone"
- format slot 12 of argument 1 with 2 sunflowers named "&7* &6Token &7*" with lore "||&720x Coal||" to run "tokenb %arg-1% coal"
- format slot 14 of argument 1 with 3 sunflowers named "&7* &6Token &7*" with lore "||&73 1/2 Tokens||" to run "tokenb %arg-1% trade"
- format slot 16 of argument 1 with book named "&bTransaction Payments" with lore "&7||Right Click||" to run "tokenm %arg-1%"
- format slot 18 of argument 1 with arrow named "&6Back" with lore "&7Go back" to run "sshop %arg-1%"
- command /pickaxe <player>:
- permission: *
- trigger:
- wait 1 tick
- make console execute "/menu grab @p lvl1"
- command /tokenb <player> <text>:
- permission: *
- trigger:
- if arg-2 is "stone":
- if arg 1's inventory contains 15 stone:
- remove 15 stone from arg 1's inventory
- make console execute "/essentials:give %arg-1% sunflower 1 name:&7*_&61/2_Token_&7*"
- else:
- send "&8(&b&l!&b) &3You do not have &b15 &3stone!" to arg 1
- if arg-2 is "coal":
- if arg 1's inventory contains 20 coal:
- remove 20 coal from arg 1's inventory
- make console execute "/essentials:give %arg-1% sunflower 2 name:&7*_&6Token_&7*"
- else:
- send "&8(&b&l!&b) &3You do not have &b20 &3coal!" to arg 1
- if arg-2 is "trade":
- if arg 1's inventory contains 3 sunflower named "&7* &61/2 Token &7*":
- remove 3 sunflower from arg 1's inventory named "&7* &61/2 Token &7*":
- make console execute "/essentials:give %arg-1% sunflower 1 name:&7*_&6Token_&7*"
- else:
- send "&8(&b&l!&b) &3You do not have &b3 &31/2 Tokens!" to arg 1
- command /tokenm <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 rows named "&bTransaction Payments" to argument 1
- wait 1 tick
- format slot 13 of argument 1 with book named "&bPayment of $25" with lore "||&72 Tokens||" to run "tokenmb %arg-1% 25"
- format slot 15 of argument 1 with book named "&bPayment of $100" with lore "||&77 Tokens||" to run "tokenmb %arg-1% 100"
Add Comment
Please, Sign In to add comment