-
Bug
-
Resolution: Unresolved
-
None
-
20w20a, 1.16.2, 1.21
-
None
-
Confirmed
-
Data Packs
-
Low
-
Platform
Some actions do not trigger the minecraft:item_used_on_block advancement trigger.
Affected actions:
- Placing or picking up water/lava
- Waterlogging blocks with a bucket
- Interacting with redstone ore
- Placing boats, lily pads, summoning mobs on water
How to reproduce:
1. Create the following advancement, and save it as mojira:use_item
{ "criteria": { "used": { "trigger": "minecraft:item_used_on_block" } }, "rewards": { "function": "mojira:item_used" } }
2. Create the following function, and save it as mojira:item_used
advancement revoke @s only mojira:use_item say An item was used
Alternatively, install the data pack from MC-183804.
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.