Hello! This issue is still affecting 1.20.51
Steps to reproduce:
1. Get a deny block by typing "/give @s deny."
2. Place your deny block in any position.
3. Place an oak log on the deny block.
4. Gey yourself any axe, then change your gamemode to adventure and try stripping the oak log using an axe.
Observed Results:
You can make any changes to the oak log, even if it is placed on the deny block and you are in adventure mode.
Expected Results:
If you are in adventure mode, you shouldn't be able to make any block changes on the top of the deny block, such as stripping the log or wood using an axe, igniting the TNT, placing end crystals on bedrock or obsidian and then exploding it, using shovels and hoes on grass, placing the bone meal on grass and moss, stepping on farmland and destroying it, causing creepers to explode using flint, and so much more.
Still affecting 1.20.1
Hello, I am experiencing the same issue.
Steps to Reproduce:
1. Hold any item like DIRT on your main hand and do the "/replaceitem entity @p slot.weapon.mainhand 1 air" command; It should replace your dirt slot with air or make it an empty slot.
2. But when you do the "/testfor @p [hasitem={item=air,location=slot.weapon.mainhand}]" command; It won't detect you even if your main hand slot is empty or air.
Observed Results:
"No targets matched selector", even if your main hand or any other slot in your inventory you want to test is empty or air.
Expected Results:
When the main hand slot is empty or air, the command should detect you as having an empty slot or air slot on the main hand.
Edit: Ignore the "\" next to the "[hasitem=" It's just a bug that keeps coming back whenever I remove it.
Still affecting 1.20.61