I set up a command chain that would run commands to give the player a block (the same type they placed) if they placed that block at a certain coordinate. After they received the block, the next command in the chain would fill the block that they had just placed with air, essentially returning the block that the player had placed into their inventory without them having break it first. However, when the player received the block it didn't show up in the inventory. The item was still technically there, but there was zero visual indication that they did indeed have the same type of block in their inventory that they had placed at those specific coordinates (other than the command block output in chat verifying that the play had been given the block).
The commands I used are as follows:
- /execute if block -13 219 -9 dirt run give @a dirt - This is typed into a Repeating Command Block that is set to Unconditional, and Always Active. This is being pointed into a Chain Command Block
- /execute if block -13 219 -9 dirt run fill -13 219 -9 -13 219 -9 air - This is typed into the Chain Command Block that is interfacing with the Repeating Command Block and it is set to Conditional, and Always Active.
I provided a short clip of this bug in the attachments section.
- duplicates
-
MC-239935 Client-side desyncs can still occur when using the "/item" or "/give" commands repeatedly
- Open