Advertisement
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 "&6Shop&8: &7Opening in 3 seconds!"
- wait 17 ticks
- send "&6Shop&8: &7Opening in 2 seconds!"
- wait 17 ticks
- send "&6Shop&8: &7Opening in 1 second!"
- wait 17 ticks
- make console execute "/sshop %player%"
- command /villager <text>:
- permission: villager.help
- permission message: &6Villager&8: &7You dont have access to this command!
- trigger:
- if arg-1 is not set:
- send "&6Villager&8: &7/villager (Create/Help)"
- stop
- if arg-1 is "help":
- send "&7&m-----------------------------------------------"
- send " &6Villager Help "
- send "&7&m-----------------------------------------------"
- send "&6Permissions:"
- send " &7* &6villager.instant &7(Makes '/shop' instant)"
- send " &7* &6vilager.create &7(Allows '/villager create')"
- send " "
- stop
- if arg-1 is "create":
- make player execute "/execute @p ~ ~ ~ /summon villager ~ ~ ~ {NoAI:1,Invulnerable:1}"
- send "&6Shop&8: &7Create villager!"
- send "&7* &7Use a name tag to name him"
- stop
- command /sshop <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 rows named "&6Shop" to argument 1
- wait 1 tick
- format slot 11 of argument 1 with iron chestplate named "&6Armor" with lore "&7The first tier of Armors" to run "armor %arg-1%"
- format slot 13 of argument 1 with stone sword named "&6Weapons" with lore "&7Get all the Weapons here!" to run "weapons %arg-1%"
- format slot 15 of argument 1 with diamond chestplate named "&6Armor 2" with lore "&7Upgraded Armor! Cost more!" to run "armor2 %arg-1%"
- command /armor <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 barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 11 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 12 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 13 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 14 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 15 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 16 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 18 of argument 1 with arrow named "&6Back" with lore "&7Go back" to run "sshop %arg-1%"
- command /weapons <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 row named "&6Weapons" to argument 1
- wait 1 tick
- format slot 10 of argument 1 with iron sword named "&6Iron Sword" with lore "&71 Gold Ingot" to run "weaponsb %arg-1% 1"
- format slot 12 of argument 1 with iron sword named "&6Iron Sword" with lore "&764 Gold Ingots|| ||&aSharp 5" to run "weaponsb %arg-1% 2"
- format slot 14 of argument 1 with diamond sword named "&6Diamond Sword" with lore "&72 Stacks Of Gold Ingots" to run "weaponsb %arg-1% 3"
- format slot 16 of argument 1 with diamond sword named "&6Diamond Sword" with lore "&732 Gold Blocks|| ||&aSharp 5" to run "weaponsb %arg-1% 4"
- format slot 18 of argument 1 with arrow named "&6Back" with lore "&7Go back" to run "sshop %arg-1%"
- command /armor2 <player>:
- permission: *
- trigger:
- wait 1 tick
- open chest with 3 row named "&6Armor 2" to argument 1
- wait 1 tick
- format slot 10 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 11 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 12 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 13 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 14 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 15 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 16 of argument 1 with barrier named "&cPlace holder" with lore "&7Place holder" to run "sshop %arg-1%"
- format slot 18 of argument 1 with arrow named "&6Back" with lore "&7Go back" to run "sshop %arg-1%"
- command /weaponsb <player> <text>:
- permission: *
- trigger:
- if arg-2 is "1":
- if arg 1's inventory contains 1 gold ingot:
- remove 1 gold ingot from arg 1's inventory
- make console execute "/minecraft:give %arg-1% iron_sword 1 0 {Unbreakable:1}"
- else:
- send "&6You need 1 gold ingot to buy this!"
- if arg-2 is "2":
- if arg 1's inventory contains 64 gold ingot:
- remove 64 gold ingots from arg 1's inventory
- make console execute "/minecraft:give %arg-1% iron_sword 1 0 {ench:[{id:16,lvl:5}],Unbreakable:1}"
- else:
- send "&6You need 64 gold ingots to buy this!"
- if arg-2 is "3":
- if arg 1's inventory contains 128 gold ingot:
- remove 128 gold ingots from arg 1's inventory
- make console execute "/Minecraft:give %player% diamond_sword 1 0 {Unbreakable:1}"
- else:
- send "&6You need 128&7&o(2 Stacks) &6of gold ingots to buy this!"
- if arg-2 is "4":
- if arg 1's inventory contains 32 gold block:
- remove 32 gold blocks from arg 1's inventory
- make console execute "/minecraft:give %arg-1% diamond_sword 1 0 {ench:[{id:16,lvl:5}],Unbreakable:1}"
- else:
- send "&6You need 32 gold blocks to buy this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement