on join:
giveCustomHoe(player)
command /hoe:
trigger:
giveCustomHoe(player)
function giveCustomHoe(p: player):
give wooden hoe named "ᴡᴏᴏᴅᴇɴ ʜᴏᴇ" with lore "ꜰᴏʀᴛᴜɴᴇ: 0", "ѕʜᴀʀᴅ: 0" to p
set {fortune::%p's uuid%} to 0
set {shard::%p's uuid%} to 0
on drop of item:
if event-item is a hoe:
cancel event
send "&cYou cannot drop your hoe!" to player
on break of wheat, carrot, potato:
if player's tool is a hoe:
set {_fortune} to {fortune::%player's uuid%}
if {_fortune} is 1:
cancel event
# Drop normal amount plus 1 extra (fortune 1 effect)
drop 1 of the block's dropped item at event-location
drop 1 of the block's dropped item at event-location
else:
# fortune 0 - normal drops
pass