Some actions do not trigger the minecraft:item_used_on_block advancement trigger.
- Placing or picking up water/lava
- Waterlogging blocks with a bucket
- Interacting with redstone ore
- Placing boats, lily pads, summoning mobs on water
1. Create the following advancement, and save it as mojira:use_item
2. Create the following function, and save it as mojira:item_used
Alternatively, install the data pack from
A message is now sent in chat every time the item_used_on_block trigger triggers.
3. Pick up water with an empty bucket.
No message appears.