-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.11.2, Minecraft 17w06a, 1.14.4, 1.16.5, 1.17.1, 21w37a
-
Confirmed
-
Commands
-
Normal
-
Platform
The bug
Blocks which require a non-solid block above are not cloned successfully (or rather change when placed) when the block above them is cloned as well. An example for this is farmland or the path block which both turn into dirt.
How to reproduce
- Place a path block and on top of it tripwire
- Clone the path block and the tripwire
→ You will notice that the path block turned into dirt
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.command.CommandClone.execute(MinecraftServer, ICommandSender, String[]) places at every position where it is going to place a block a barrier block and after that starts pasting the blocks. This means the block requiring a non-solid block above, in this case a path block, is placed below a barrier block which is a solid-block and therefor the pasted block changes, in this case it turns into dirt.
- is duplicated by
-
MC-115156 Cloning grass path
- Resolved
-
MC-118591 Problem with copying (command /clone) of arable land with seeds or air over arable land
- Resolved
-
MC-163747 Cloning path blocks over existing path blocks creates dirt.
- Resolved
-
MC-222915 Cloning path blocks become dirt
- Resolved
- relates to
-
MC-135492 Clone destroys blocks that are dependent on support blocks
- Open