Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. /shop:
  2. trigger:
  3. open chest with 3 rows named "&cMultiples &7Enchantment Shop" to player
  4. format slot 10 with emerald named "&c›› &7Fortune I" with lore "&7Gives you 1 extra item when you mine!" to close then run "make player execute [fortunebuy 1]"
  5. format slot 11 with emerald named "&c›› &7Fortune II" with lore "&7Gives you 2 extra item when you mine!" to close then run "make player execute [fortunebuy 2]"
  6. format slot 12 with emerald named "&c›› &7Fortune III" with lore "&7Gives you 3 extra item when you mine!" to close then run "make player execute [fortunebuy 3]"
  7. format slot 13 with emerald named "&c›› &7Fortune IV" with lore "&7Gives you 4 extra item when you mine!" to close then run "make player execute [fortunebuy 4]"
  8. format slot 14 with emerald named "&c›› &7Fortune V" with lore "&7Gives you 5 extra item when you mine!" to close then run "make player execute [fortunebuy 5]"
  9.  
  10. command /fortunebuy [<text>]:
  11. trigger:
  12. if arg 1 is "1":
  13. if player is holding a pickaxe:
  14. if %player's balance% is greater than or equal to 5000:
  15. enchant player's tool with fortune 1
  16. set {fortune.%player%} to 1
  17. else:
  18. message "&c›› &7You do not have the required &c$5,000 &7for this purchase!"
  19. else:
  20. message "&c›› &7You must be holding a &cPickaxe &7to buy an enchantment!"
  21. if arg 1 is "2":
  22. if player is holding a pickaxe:
  23. if %player's balance% is greater than or equal to 7500:
  24. enchant player's tool with fortune 2
  25. set {fortune.%player%} to 2
  26. else:
  27. message "&c›› &7You do not have the required &c$7,500 &7for this purchase!"
  28. else:
  29. message "&c›› &7You must be holding a &cPickaxe &7to buy an enchantment!"
  30. if arg 1 is "3":
  31. if player is holding a pickaxe:
  32. if %player's balance% is greater than or equal to 10000:
  33. enchant player's tool with fortune 3
  34. set {fortune.%player%} to 3
  35. else:
  36. message "&c›› &7You do not have the required &c$10,000 &7for this purchase!"
  37. else:
  38. message "&c›› &7You must be holding a &cPickaxe &7to buy an enchantment!"
  39. if arg 1 is "4":
  40. if player is holding a pickaxe:
  41. if %player's balance% is greater than or equal to 12500:
  42. enchant player's tool with fortune 4
  43. set {fortune.%player%} to 4
  44. else:
  45. message "&c›› &7You do not have the required &c$12,500 &7for this purchase!"
  46. else:
  47. message "&c›› &7You must be holding a &cPickaxe &7to buy an enchantment!"
  48. if arg 1 is "5":
  49. if player is holding a pickaxe:
  50. if %player's balance% is greater than or equal to 15000:
  51. enchant player's tool with fortune 5
  52. set {fortune.%player%} to 5
  53. else:
  54. message "&c›› &7You do not have the required &c$15,000 &7for this purchase!"
  55. else:
  56. message "&c›› &7You must be holding a &cPickaxe &7to buy an enchantment!"
  57.  
  58. on break of coal ore:
  59. cancel event
  60. set event-block to air
  61. add 1 to {coal.%player%}
  62.  
  63. every tick:
  64. loop all players:
  65. if {coal.%player%} is set:
  66. if {fortune.%player%} is 1:
  67. give loop-player 2 coal
  68. else:
  69. give loop-player 1 coal
  70. if {fortune.%player%} is 2:
  71. give loop-player 3 coal
  72. else:
  73. give loop-player 1 coal
  74. if {fortune.%player%} is 3:
  75. give loop-player 4 coal
  76. else:
  77. give loop-player 1 coal
  78. if {fortune.%player%} is 4:
  79. give loop-player 5 coal
  80. else:
  81. give loop-player 1 coal
  82. if {fortune.%player%} is 5:
  83. give loop-player 6 coal
  84. else:
  85. give loop-player 1 coal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement