Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /lumberjack:
- trigger:
- message "&a[NPC] Lumberjack: &fWant to see what I have to offer?"
- open chest with 4 rows named "Lumberjack" to player
- wait 0.6 ticks
- format slot 0 of player with paper named "&a&lYour Balance" with lore "&fMoney &a%player's balance%" to be unstealable
- format slot 10 of player with wood axe named "&e&lWood Axe" with lore "&7&oTier 1 Item||||&fPrice &a$10 each||||&6&lClick &fto buy a wood axe." to run [player command "/purchase woodaxe"]
- format slot 11 of player with stone axe named "&e&lStone Axe" with lore "&7&oTier 2 Item||||&fPrice &a$50 each||||&6&lClick &fto buy a stone axe." to run [player command "/purchase stoneaxe"]
- format slot 12 of player with iron axe named "&e&lIron Axe" with lore "&7&oTier 3 Item||||&fPrice &a$100 each||||&6&lClick &fto buy an iron axe." to run [player command "/purchase ironaxe"]
- command /purchase [<text>]:
- trigger:
- if arg 1 is "woodaxe":
- if player's balance >= 10:
- remove 10 from player's balance
- give wood axe with lore "&7Tier 1 Item" to player
- message "&a[NPC] Lumberjack: &fThanks for buying a &eWood Axe &ffor &2$10&f!"
- else:
- message "&c&lHey! &7You don't have enough cash to buy this!"
- if arg 1 is "stoneaxe":
- if player's balance >= 50:
- remove 50 from player's balance
- give stone axe with lore "&7Tier 2 Item" to player
- message "&a[NPC] Lumberjack: &fThanks for buying a &eStone Axe &ffor &2$50&f!"
- else:
- message "&c&lHey! &7You don't have enough cash to buy this!"
- if arg 1 is "ironaxe":
- if player's balance >= 100:
- remove 100 from player's balance
- give iron axe with lore "&7Tier 3 Item" to player
- message "&a[NPC] Lumberjack: &fThanks for buying an &eIron Axe &ffor &2$100&f!"
- else:
- message "&c&lHey! &7You don't have enough cash to buy this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement