Advertisement
twogz

Untitled

Jul 21st, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. command /lumberjack:
  2. trigger:
  3. message "&a[NPC] Lumberjack: &fWant to see what I have to offer?"
  4. open chest with 4 rows named "Lumberjack" to player
  5.  
  6. wait 0.6 ticks
  7.  
  8. format slot 0 of player with paper named "&a&lYour Balance" with lore "&fMoney &a%player's balance%" to be unstealable
  9.  
  10. 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"]
  11.  
  12. 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"]
  13.  
  14. 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"]
  15.  
  16.  
  17. command /purchase [<text>]:
  18. trigger:
  19. if arg 1 is "woodaxe":
  20. if player's balance >= 10:
  21. remove 10 from player's balance
  22. give wood axe with lore "&7Tier 1 Item" to player
  23. message "&a[NPC] Lumberjack: &fThanks for buying a &eWood Axe &ffor &2$10&f!"
  24. else:
  25. message "&c&lHey! &7You don't have enough cash to buy this!"
  26. if arg 1 is "stoneaxe":
  27. if player's balance >= 50:
  28. remove 50 from player's balance
  29. give stone axe with lore "&7Tier 2 Item" to player
  30. message "&a[NPC] Lumberjack: &fThanks for buying a &eStone Axe &ffor &2$50&f!"
  31. else:
  32. message "&c&lHey! &7You don't have enough cash to buy this!"
  33. if arg 1 is "ironaxe":
  34. if player's balance >= 100:
  35. remove 100 from player's balance
  36. give iron axe with lore "&7Tier 3 Item" to player
  37. message "&a[NPC] Lumberjack: &fThanks for buying an &eIron Axe &ffor &2$100&f!"
  38. else:
  39. message "&c&lHey! &7You don't have enough cash to buy this!"
  40.  
  41. if arg 1 is "woodpickaxe":
  42. if player's balance >= 20:
  43. remove 20 from player's balance
  44. give wood pickaxe with lore "&7Tier 1 Item" to player
  45. message "&a[NPC] Miner: &fThanks for buying a &eWood Pickaxe &ffor &2$20&f!"
  46. else:
  47. message "&c&lHey! &7You don't have enough cash to buy this!"
  48. if arg 1 is "stonepickaxe":
  49. if player's balance >= 100:
  50. remove 100 from player's balance
  51. give stone pickaxe with lore "&7Tier 2 Item" to player
  52. message "&a[NPC] Miner: &fThanks for buying a &eStone Pickaxe &ffor &2$100&f!"
  53. else:
  54. message "&c&lHey! &7You don't have enough cash to buy this!"
  55. if arg 1 is "ironpickaxe":
  56. if player's balance >= 350:
  57. remove 350 from player's balance
  58. give iron pickaxe with lore "&7Tier 3 Item" to player
  59. message "&a[NPC] Miner: &fThanks for buying an &eIron Pickaxe &ffor &2$350&f!"
  60. else:
  61. message "&c&lHey! &7You don't have enough cash to buy this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement