Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. #
  2. # Multiples Harvester Hoe | BreakfastDeliqht
  3. #
  4.  
  5. #
  6. # Works for: Sugarcane, Wheat, Carrots, and Potatoes.
  7. #
  8.  
  9. on right click with diamond hoe:
  10. if clicked block is sugar canes:
  11. if name of player's held item contains "&aHarvester Hoe":
  12. if block below is sugar canes:
  13. if block above is air:
  14. give player 1 sugar canes
  15. set event-block to air
  16. if block above is sugar canes:
  17. give player 2 sugar canes
  18. set block above to air
  19. set event-block to air
  20. else:
  21. cancel event
  22. else:
  23. cancel event
  24. if clicked block is crops:7:
  25. if name of player's held item contains "&aHarvester Hoe":
  26. if block below is farmland:
  27. chance of 50%:
  28. give player 1 wheat
  29. set event-block to crops:1
  30. stop
  31. chance of 30%:
  32. give player 2 wheat
  33. set event-block to crops:1
  34. stop
  35. chance of 20%:
  36. give player 3 wheat
  37. set event-block to crops:1
  38. stop
  39. else:
  40. cancel event
  41. else:
  42. cancel event
  43. if clicked block is carrot_plant:7:
  44. if name of player's held item contains "&aHarvester Hoe":
  45. if block below is farmland:
  46. chance of 50%:
  47. give player 4 carrots
  48. set event-block to carrot_plant:1
  49. stop
  50. chance of 30%:
  51. give player 5 carrots
  52. set event-block to carrot_plant:1
  53. stop
  54. chance of 20%:
  55. give player 6 carrots
  56. set event-block to carrot_plant:1
  57. stop
  58. else:
  59. cancel event
  60. else:
  61. cancel event
  62. if clicked block is potato_plant:7:
  63. if name of player's held item contains "&aHarvester Hoe":
  64. if block below is farmland:
  65. chance of 50%:
  66. give player 1 potato
  67. set event-block to potato_plant:1
  68. stop
  69. chance of 30%:
  70. give player 2 potato
  71. set event-block to potato_plant:1
  72. stop
  73. chance of 20%:
  74. give player 3 potato
  75. set event-block to potato_plant:1
  76. stop
  77. else:
  78. cancel event
  79. else:
  80. cancel event
  81.  
  82. #
  83. #
  84. #
  85.  
  86. command /harvester [<player>]:
  87. permission: rank.mod
  88. trigger:
  89. if arg-1 is not set:
  90. give 1 diamond hoe named "&aHarvester Hoe" to player
  91. send "&aYou have been given a Harvester Hoe!"
  92. else:
  93. if arg-1 is player:
  94. give 1 diamond hoe named "&aHarvester Hoe" to arg-1
  95. send "&aYou have given %arg-1% a Harvester Hoe!" to player
  96. send "&aYou have been given a Harvester Hoe by %player%!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement