Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-114240

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


    • 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

      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.

            Unassigned Unassigned
            MrDoomah Remco Timmer
            13 Vote for this issue
            6 Start watching this issue