The Bug:
The end obsidian platform resets every time entities go through the end portal, which can cause blocks to be deleted.
This notably results in containers like chests or shulker boxes which might contain valuable items within them being deleted.
Steps to Reproduce:
Enter the end by using an end portal.
Place some blocks on top of and around the obsidian platform that you spawn on.
Take note of the blocks that you've just placed.
Run the "/kill" command.
Enter the end once again and attempt to locate the blocks you just previously placed.
Take note as to whether or not the end obsidian platform resets every time entities go through the end portal, which can cause blocks to be deleted.
Observed Behavior:
The end obsidian platform resets every time entities go through the end portal, which can cause blocks to be deleted.
Expected Behavior:
Blocks on the end obsidian platform would not be deleted every time an entity goes through the end portal.
Code Analysis:
Code analysis by @unknown can be found below.
The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.
net.minecraft.world.entity.Entity.java
public abstract class Entity implements Nameable, EntityAccess, CommandSource {
...
public Entity changeDimension(ServerLevel $sl) {
if (this.level instanceof ServerLevel && !this.isRemoved()) {
...
if (portalinfo == null) {
return null;
} else {
...
if (entity != null) {
...
if ($sl.dimension() == Level.END) {
ServerLevel.makeObsidianPlatform($sl);
}
}
...
If we look at the above class, we can see that when an entity enters the end portal, the makeObsidianPlatform()
method is called. This method completely regenerates the end obsidian platform (including the space above), causing blocks previously placed at its position to be deleted.
Linked issues
is duplicated by 19
relates to 10
Attachments
Comments 37
If it didn't reset, then someone could fill it with blocks and when you went through, you'd suffocate.
Nether portals have a bit of space in them already so that can't happen with them.
Can reproduce in 1.21 Pre-1
EDIT: According to Kingbodgz' tweet (https://x.com/kingbdogz/status/1795823127362154962) this cannot be reproduced in 1.21 Pre-1
Intended. The spawn platform and the air above it are reset each time someone enters the end.
Tip: Don't place your chests on it.