Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Speed code 1: Un shop perso en cliquant sur les NPC !
- options:
- pre : &4NPC &7>
- on rightclick on a villager:
- cancel event
- wait 1 tick
- send "{@pre} &9Tout est à vendre !"
- wait 1 tick
- open chest with 2 rows named " &4NPC &cShop :" to player
- wait 1 tick
- set {_Count} to 0
- loop 18 times:
- format slot {_Count} of player with a white glass pane named "&0 .." to run " "
- add 1 to {_Count}
- wait 1 tick
- format slot 0 of player with a diamond helmet named "&aDiamond Helmet &6= &c1 Emeralds" to run [make console execute command "/buy helmet %player%"]
- format slot 1 of player with a diamond chestplate named "&aDiamond ChestPlate &6= &c3 Emerald" to run [make console execute command "/buy chest %player%"]
- format slot 2 of player with a diamond leggings named "&aDiamond Legging &6= &c3 Emerald" to run [make console execute command "/buy legg %player%"]
- format slot 3 of player with a diamond boots named "&aDiamond Boots &6= &c1 Emerald" to run [make console execute command "/buy boots %player%"]
- format slot 4 of player with a diamond sword named "&aDiamond Sword &6= &c1 Emerald" to run [make console execute command "/buy sword %player%"]
- format slot 6 of player with a diamond shovel named "&aDiamond Shovel &6= &c1 Emerald" to run [make console execute command "/buy shovel %player%"]
- format slot 7 of player with a diamond pickaxe named "&aDiamond PickAxe &6= &c1 Emerald" to run [make console execute command "/buy pick %player%"]
- format slot 8 of player with a diamond axe named "&aDiamond Axe &6= &c1 Emerald" to run [make console execute command "/buy axe %player%"]
- format slot 17 of player with a redstone named "&4EXIT !" to close
- command /buy [<text>] <player>:
- executable by: console
- trigger:
- if arg 1 is "helmet":
- if player-arg has 1 emeralds:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond helmet to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "chest":
- if player-arg has 3 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 3 emeralds from player-arg's inventory
- give a diamond chestplate to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "legg":
- if player-arg has 3 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 3 emeralds from player-arg's inventory
- give a diamond leggings to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "boots":
- if player-arg has 1 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond boots to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "sword":
- if player-arg has 1 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond sword to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "shovel":
- if player-arg has 1 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond shovel to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "pick":
- if player-arg has 1 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond pickaxe to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
- else if arg 1 is "axe":
- if player-arg has 1 emerald:
- send "{@pre} &aTres bon choix !" to player-arg
- remove 1 emeralds from player-arg's inventory
- give a diamond axe to player-arg
- else:
- send "{@pre} &cPas asser d'argent !" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment