Wait am I really that stupid
This occurs in a vanilla server as you can see in the videos below.
However, all the videos I have attached were recorded on a vanilla client.
As you can see in the first video, the bug did not occur during the first few piston pushes after the game was unfrozen, so it may be contextual.
As of 1.21.5, empty keys in raw NBT generated from heterogenous lists in JSON are no longer exposed in SNBT, and empty keys in NBT paths and JSON compounds (representing arbitrary NBT data) are now illegal/invisible making it impossible to create them naturally. This means that all issues described in this bug report are handled without issue now.
The only place that empty keys could still be written is when the game writes compounds which are outside of that abstracted raw NBT structure - i.e. compounds that are artificially given an empty key or were given one in a previous version of the game. From what I can gather from comments by certain devs, and the nature of the recent changes, this case seems to be somewhat “unsupported“ and cannot naturally be achieved anymore so is not really relevant to the bug report.
I believe this report should now be marked either as Resolved or WAI.
Yes this could be considered MC-274632 but it pertains specifically to the latest changes which spread the issue to far more places as text components in NBT appear everywhere, including item stacks, entity data, etc.
Nevermind, this is entirely innacurate in a vanilla environment. My bad
@Jingy I've written the steps and attached the data pack which I've personally confirmed to reproduce the bug as explained.
Does look fixed in 1.20.3-pre2. No interaction at all from deopped player when right-clicking on a decorated pot in spawn protection (no arm swing either).
Note: This only happens when you break the upper half of the small dripleaf
Close the report quickly! Don’t look too closely!