What I expected to happen was....
Getting the advancement I made after I use shears on the pumpkin block
What actually happened was....
Getting no advancement, even if it does exist
Steps to reproduce:
Create an advancement that has the
"item_used_on_block"triggerDo
/reloadand waitCheck that the created advancement exists
Right click with shears in your hand on a pumpkin
Note: I changed the checked block ("minecraft:pumpkin") to "minecraft:chest" and it worked
Duplicate of MC-184263.
As a workaround for the bug,
minecraft:pumpkinshould be replaced withminecraft:carved_pumpkinsince the advancement trigger checks after the item is used on the block rather than before it is done.