Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Multiples Harvester Hoe | BreakfastDeliqht
- #
- #
- # Works for: Sugarcane, Wheat, Carrots, and Potatoes.
- #
- on right click with diamond hoe:
- if clicked block is sugar canes:
- if name of player's held item contains "&aHarvester Hoe":
- if block below is sugar canes:
- if block above is air:
- give player 1 sugar canes
- set event-block to air
- if block above is sugar canes:
- give player 2 sugar canes
- set block above to air
- set event-block to air
- else:
- cancel event
- else:
- cancel event
- if clicked block is crops:7:
- if name of player's held item contains "&aHarvester Hoe":
- if block below is farmland:
- chance of 50%:
- give player 1 wheat
- set event-block to crops:1
- stop
- chance of 30%:
- give player 2 wheat
- set event-block to crops:1
- stop
- chance of 20%:
- give player 3 wheat
- set event-block to crops:1
- stop
- else:
- cancel event
- else:
- cancel event
- if clicked block is carrot_plant:7:
- if name of player's held item contains "&aHarvester Hoe":
- if block below is farmland:
- chance of 50%:
- give player 4 carrots
- set event-block to carrot_plant:1
- stop
- chance of 30%:
- give player 5 carrots
- set event-block to carrot_plant:1
- stop
- chance of 20%:
- give player 6 carrots
- set event-block to carrot_plant:1
- stop
- else:
- cancel event
- else:
- cancel event
- if clicked block is potato_plant:7:
- if name of player's held item contains "&aHarvester Hoe":
- if block below is farmland:
- chance of 50%:
- give player 1 potato
- set event-block to potato_plant:1
- stop
- chance of 30%:
- give player 2 potato
- set event-block to potato_plant:1
- stop
- chance of 20%:
- give player 3 potato
- set event-block to potato_plant:1
- stop
- else:
- cancel event
- else:
- cancel event
- #
- #
- #
- command /harvester [<player>]:
- permission: rank.mod
- trigger:
- if arg-1 is not set:
- give 1 diamond hoe named "&aHarvester Hoe" to player
- send "&aYou have been given a Harvester Hoe!"
- else:
- if arg-1 is player:
- give 1 diamond hoe named "&aHarvester Hoe" to arg-1
- send "&aYou have given %arg-1% a Harvester Hoe!" to player
- send "&aYou have been given a Harvester Hoe by %player%!" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement