Advertisement
twogz

Untitled

Jul 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 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 /fisherman:
  32. trigger:
  33. message "&a[NPC] Fisherman: &fWant to see what I have to offer?"
  34. open chest with 4 rows named "Fisherman" to player
  35.  
  36. wait 0.6 ticks
  37.  
  38. format slot 0 of player with paper named "&a&lYour Balance" with lore "&fMoney &a%player's balance%" to be unstealable
  39.  
  40. format slot 10 of player with fishing rod named "&e&lFishing Rod" with lore "&7&oTier 1 Item||||&fPrice &a$30 each||||&6&lClick &fto buy a fishing rod." to run [player command "/purchase fishingrod"]
  41.  
  42. format slot 11 of player with fishing rod of lure 2 named "&e&lFishing Rod - Lure 2" with lore "&7&oTier 2 Item||||&fPrice &a$200 each||||&6&lClick &fto buy a fishing rod." to run [player command "/purchase fishingrod2"]
  43.  
  44. format slot 12 of player with fishing rod of lure 3 named "&e&lFishing Rod - Lure 3" with lore "&7&oTier 3 Item||||&fPrice &a$500 each||||&6&lClick &fto buy a fishing rod." to run [player command "/purchase fishingrod3"]
  45.  
  46. command /purchase [<text>]:
  47. trigger:
  48. if arg 1 is "woodaxe":
  49. if player's balance >= 10:
  50. remove 10 from player's balance
  51. give wood axe with lore "&7Tier 1 Item" to player
  52. message "&a[NPC] Lumberjack: &fThanks for buying a &eWood Axe &ffor &2$10&f!"
  53. else:
  54. message "&c&lHey! &7You don't have enough cash to buy this!"
  55. if arg 1 is "stoneaxe":
  56. if player's balance >= 50:
  57. remove 50 from player's balance
  58. give stone axe with lore "&7Tier 2 Item" to player
  59. message "&a[NPC] Lumberjack: &fThanks for buying a &eStone Axe &ffor &2$50&f!"
  60. else:
  61. message "&c&lHey! &7You don't have enough cash to buy this!"
  62. if arg 1 is "ironaxe":
  63. if player's balance >= 100:
  64. remove 100 from player's balance
  65. give iron axe with lore "&7Tier 3 Item" to player
  66. message "&a[NPC] Lumberjack: &fThanks for buying an &eIron Axe &ffor &2$100&f!"
  67. else:
  68. message "&c&lHey! &7You don't have enough cash to buy this!"
  69.  
  70. if arg 1 is "woodpickaxe":
  71. if player's balance >= 20:
  72. remove 20 from player's balance
  73. give wood pickaxe with lore "&7Tier 1 Item" to player
  74. message "&a[NPC] Miner: &fThanks for buying a &eWood Pickaxe &ffor &2$20&f!"
  75. else:
  76. message "&c&lHey! &7You don't have enough cash to buy this!"
  77. if arg 1 is "stonepickaxe":
  78. if player's balance >= 100:
  79. remove 100 from player's balance
  80. give stone pickaxe with lore "&7Tier 2 Item" to player
  81. message "&a[NPC] Miner: &fThanks for buying a &eStone Pickaxe &ffor &2$100&f!"
  82. else:
  83. message "&c&lHey! &7You don't have enough cash to buy this!"
  84. if arg 1 is "ironpickaxe":
  85. if player's balance >= 350:
  86. remove 350 from player's balance
  87. give iron pickaxe with lore "&7Tier 3 Item" to player
  88. message "&a[NPC] Miner: &fThanks for buying an &eIron Pickaxe &ffor &2$350&f!"
  89. else:
  90. message "&c&lHey! &7You don't have enough cash to buy this!"
  91. if arg 1 is "fishingrod":
  92. if player's balance >= 30:
  93. remove 30 from player's balance
  94. give fishing rod with lore "&7Tier 1 Item" to player
  95. message "&a[NPC] Miner: &fThanks for buying a &eFishing Rod &ffor &2$30&f!"
  96. else:
  97. message "&c&lHey! &7You don't have enough cash to buy this!"
  98. if arg 1 is "fishingrod2":
  99. if player's balance >= 200:
  100. remove 200 from player's balance
  101. give fishing rod of lure 2 with lore "&7Tier 2 Item" to player
  102. message "&a[NPC] Miner: &fThanks for buying a &eFishing Rod &ffor &2$200&f!"
  103. else:
  104. message "&c&lHey! &7You don't have enough cash to buy this!"
  105. if arg 1 is "fishingrod3":
  106. if player's balance >= 500:
  107. remove 500 from player's balance
  108. give fishing rod of lure 3 with lore "&7Tier 3 Item" to player
  109. message "&a[NPC] Miner: &fThanks for buying a &eFishing Rod &ffor &2$500&f!"
  110. else:
  111. message "&c&lHey! &7You don't have enough cash to buy this!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement