I am trying to create a custom watering can item that functions the same as a water bucket, but instead has 10 uses before it is empty. The issues I'm having are:
- If I pick up water it also gives me a regular water bucket, I manually have it also give me the filled version of the watering can but I still get a water bucket
- If I place water I also get an empty bucket along with the manually given empty watering can.
- I don't understand how to give it multiple uses, I try with durability but it doesn't seem to do anything
Here is what I have written:
info:
namespace: herbalist
items:
herbalist_watering_can_full:
display_name: Herbalist Watering Can
permission: herbalist
durability:
max_durability: 10
resource:
material: WATER_BUCKET
generate: true
textures:
- items/herbalist_watering_can_full.png
events:
interact.right:
decrement_durability: 1
bucket_empty:
give_item:
item: herbalist:herbalist_watering_can_empty
play_sound:
name: minecraft:item.bucket.empty
volume: 1
pitch: 1
herbalist_watering_can_empty:
display_name: Herbalist Watering Can
permission: herbalist
resource:
material: BUCKET
generate: true
textures:
- items/herbalist_watering_can_empty.png
events:
bucket_fill:
give_item:
item: herbalist:herbalist_watering_can_full
play_sound:
name: minecraft:item.bucket.fill
volume: 1
pitch: 1