Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------#
- # shop #
- #---------------------------------------#
- on npc right click:
- if citizen named "fermier":
- execute player command "fermier"
- command /fermier:
- trigger:
- open chest with 3 rows named "&d&lshop" to player
- wait 3 ticks
- format slot 0 of player with cactus named "&2Cactus" with lore "&aachete et Vend tes cactus! ||&a400 Paprika le stack" to run [Execute player command "/cac"]
- format slot 1 of player with seeds named "&2Seeds" with lore "&aAchettre et vend 64 graine" to run [execute player command "/sed"]
- format slot 2 of player with Steak named "&6Viende cuite" with lore "&aAcheter et vend de la viende" to run [execute player command "/viand"]
- format slot 3 of player with carrot named "&6Carrote" with lore "&aAchete et vend des carrote" to run [execute player command "/car" ]
- format slot 4 of player with 393 named "&6Patate cuite" with lore "&aAchete et vend des patate cuite" to run [execute player command "patat"]
- format slot 5 of player with 383:50 named "&aOeuf de Creep" with lore "&aAchete Des oeuf de crepper" to run [execute player command "/crep"]
- #-----------------------------------#
- # commande #
- #-----------------------------------#
- command /cac:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 400 Paprika" to run [Execute player command "/cactuss"]
- format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 200 paprika" to run [execute player command "/cactus"]
- command /cactus:
- trigger:
- if player has 64 cactus:
- add 200 to {paprika.%player's UUID%}
- send "&aTu as recu 200 paprika contre 64 cactus"
- remove 64 of cactus from player's inventory
- else:
- send "&cIl te faut 64 cactus pour vendre cette objet"
- command /cactuss:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 400:
- execute console command "give %player% cactus"
- remove 400 from {paprika.%player's UUID%}
- send "&c400 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 400 paprika pour acheter des cactus"
- command /sed:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 100 Paprika" to run [Execute player command "/seeds"]
- format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 50 paprika" to run [execute player command "/seed"]
- command /seeds:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 200:
- execute console command "give %player% seeds"
- remove 100 from {paprika.%player's UUID%}
- send "&c100 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 100 paprika pour acheter des graines"
- command /seed:
- trigger:
- if player has 64 seeds:
- add 50 to {paprika.%player's UUID%}
- send "&aTu as recu 50 paprika contre 64 seeds"
- remove 64 of seeds from player's inventory
- else:
- send "&cIl te faut 64 seeds pour vendre cette objet"
- command /viand:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 500 Paprika" to run [Execute player command "/viende"]
- format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 250 paprika" to run [execute player command "/viandes"]
- command /viande:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 500:
- execute console command "give %player% steak"
- remove 500 from {paprika.%player's UUID%}
- send "&c500 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 500 paprika pour acheter des steaks"
- command /viandes:
- trigger:
- if player has 64 steak:
- add 250 to {paprika.%player's UUID%}
- send "&aTu as recu 250 paprika contre 64 viande"
- remove 64 of steak from player's inventory
- else:
- send "&cIl te faut 64 steaks pour vendre cette objet"
- command /car:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 300 Paprika" to run [Execute player command "/carrote"]
- format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 250 paprika" to run [execute player command "/carrotte"]
- command /carrote:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 300:
- execute console command "give %player% carrot"
- remove 300 from {paprika.%player's UUID%}
- send "&c300 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 300 paprika pour acheter des steaks"
- command /carrotte:
- trigger:
- if player has 64 carrot:
- add 250 to {paprika.%player's UUID%}
- send "&aTu as recu 250 paprika contre 64 viande"
- remove 64 of carrot from player's inventory
- else:
- send "&cIl te faut 64 carrot pour vendre cette objet"
- command /patat:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 400 Paprika" to run [Execute player command "/patate"]
- format slot 15 of player with red wool named "&4Vendre" with lore "&4Vend pour 200 paprika" to run [execute player command "/patates"]
- command /patate:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 400:
- execute console command "give %player% 393"
- remove 400 from {paprika.%player's UUID%}
- send "&c400 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 400 paprika pour acheter des steaks"
- command /patates:
- trigger:
- if player has 64 393:
- add 200 to {paprika.%player's UUID%}
- send "&aTu as recu 200 paprika contre 64 patate"
- remove 64 of 393 from player's inventory
- else:
- send "&cIl te faut 64 patate pour vendre cette objet"
- command /crep:
- trigger:
- open chest with 3 rows named "&d&lConfirmation" to player
- wait 3 ticks
- format slot 11 of player with lime wool named "&aAchat" with lore "&aAcheter pour 1000 Paprika" to run [Execute player command "/creepe"]
- command /creepe:
- trigger:
- {paprika.%player's UUID%} is bigger than or equal to 1000:
- execute console command "give %player% 383:50"
- remove 400 from {paprika.%player's UUID%}
- send "&c1000 paprika on etaient retiré de ton compte"
- else:
- send "&cIl te faut 1000 paprika pour acheter des steaks"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement