The advancement checks the resulting block, not the block the item was used on: "item_used_on".
In vanilla this trigger is used for the jukebox, and the action does not change the block, so the fact that it fails to properly check for block on which the item was used doesn't matter.
But it matters when the action changes the block. Then the intended check will fail since the block on which the item was used no longer exists/matches.
Example... try to test for a player using a bucket on a minecraft:water_cauldron.
The bucket takes the water, CHANGING the block to a minecraft:cauldron (in the past it was a minecraft:cauldron before and after with only block data changing to a level of 0). Thus the check now fails and the advancement is not properly granted.
Example:
"criteria": {
"cauldronwater": {
"trigger": "minecraft:item_used_on_block",
"conditions": {
"item": {
"items": [
"minecraft:bucket"
]
},
"location": {
"block": {
"blocks": [
"minecraft:water_cauldron"
]
}
}
}
}
}
Thus it is not possible to detect a player picking up water from a water cauldron, or to differentiate between picking up water vs lava vs powered_snow. They all result in a minecraft:cauldron... the RESULTING block... not the block the item was used on.
Linked issues
Comments 5
There is a distinction between this report and the one you linked it to. The linked report is requesting a feature because they didn't properly understand/elucidate the issue, and so it was resolved as a feature request.
The advancement should be testing the block the item is being used on, and it doesn't. That is the bug.
Thank you for your report!
We're tracking this issue in MC-184263, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-184263) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.