Mojira Archive
MC-114240

clone command does not copy blocks requiring a non solid block above successfully

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

  1. Place a path block and on top of it tripwire
  2. 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.

Unresolved

Remco Timmer

2017-02-27, 03:11 PM

2023-08-22, 05:39 PM

14

6

Confirmed

Normal

Platform

Commands

/clone, barrier, farmland, grass_path, non-solid, non-solid-blocks

Minecraft 1.11.2 - 21w37aMinecraft 1.11.2, Minecraft 17w06a, 1.14.4, 1.16.5, 1.17.1, 21w37a

-