mojira.dev
MC-136970

Cannot place blocks or throw items in specific world

I have been developing a world since one of 1.13 snapshots: it has been played in most of them and 1.13, before being played in 1.13.1 and it never had any issue.

Everything was fine until a seemingly random point while playing: suddenly, I started being unable to place any block. Whenever I try to place a block, it quickly disappears, like the action was registered, but never confirmed. In fact, I'm also unable to throw any item: if I have an item in my hotbar and I throw it, the item disappears from my inventory without appearing on the ground.

Even more strange is that I'm instead able to break blocks, so my player's impact isn't totally nullified. I'm also able to use commands or edit command blocks.

Finally, this happens only in this specific world: any other savefile, even previous versions of this one, work as intended.

I tried many ways to fix it myself:

  • Being a world with a lot of command blocks, I tried to stop them from working using /gamerule maxCommandChainLength 0

  • I tried to restart the game

  • I tried to restart my computer

  • I tried to erase player data

  • I tried to replace level.dat

None of them worked.

I also tried to open the world to LAN: the issue persist even with another player and the blocks appear for few frames, before disappearing, only to the player that tried placing it.

To go in more details about the exact moment when this happened, the last blocks I was able to place were two chain command blocks that were part of a chain and that I wanted to switch in the order: after copying them, destroying them and replacing them, the bug started.

 

EDIT: The bug seems to have fixed itself. I have renamed the world (both the in game name and the name of the save folder) and now the issues seems to be resolved.

I don't know if renaming the world was what fixed it or if it simply fixed itself. Maybe it's a problem with my computer, but it was really a strange bug. If it happens again, I will make sure to document the bug with a video showing it, but, for now, the bug it's not active anymore.

 

EDIT 2: After a closer inspection, I may have understood the bug. One of the command blocks that I replaced had inside the command /clear @a : what may have happen is that, somehow, this command was active and cleared my inventory without actually showing removing the items from my hotbar.

The command was part of a chain that used conditional command blocks, so this bug is probably related to those blocks and probably has been documented before in a different way. It's still a mystery how it happened and how it was fixed.

Comments 5

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Have you checked that you are in survival or creative mode and not adventure?

This bug affects every gamemode.

The bug seems to have fixed itself. I have renamed the world (both the in game name and the name of the save folder) and now the issues seems to be resolved.

I don't know if renaming the world was what fixed it or if it simply fixed itself. Maybe it's a problem with my computer, but it was really a strange bug. If it happens again, I will make sure to document the bug with a video showing it, but, for now, the bug it's not active anymore.

After a closer inspection, I may have understood the bug. One of the command blocks that I replaced had inside the command /clear @a : what may have happen is that, somehow, this command was active and cleared my inventory without actually showing removing the items from my hotbar.

The command was part of a chain that used conditional command blocks, so this bug is probably related to those blocks and probably has been documented before in a different way. It's still a mystery how it happened and how it was fixed.

Pmk

(Unassigned)

Unconfirmed

Minecraft 1.13.1

Retrieved