Advertisement
twogz

Untitled

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