mojira.dev
MC-67641

Using setblock or fill on a piston head leaves an item drop

When using setblock on the piston extension of an extended piston, a piston item is dropped.

This also happens when using the fill command when pistons are facing certain ways(due to the nature of the fill command using multiple setblock commands)
When using a fill command, if an extended piston facing either north, west or down is present in the area, it will drop a piston item.

How to recreate the problem:

  1. Place a command block with the command

    fill ~1 ~ ~1 ~5 ~ ~5 air
  2. Place a piston in the area to be filled facing either north or west.

  3. Place a redstone block next to the piston, making it extended.

  4. Place a redstone block next to the command block.
    ❌ A piston item will now drop.

Linked issues

Attachments

Comments 22

Command used?

Added the command to be used and a way to recreate it completely.

Looks like MC-149 has returned.
The bug happens when you setblock on a piston extension. Although it happens in and gamemode (not just creative)

@Nasm, for now clarify your title and description. This has nothing to do with direction. The only reason fill does this from the north/west, is because the extension is getting destroyed before the piston block in that configuration.

The bug is:
using setblock or fill a piston extension leaves an item drop

A workaround for you, is to use a fill replace command, and just replace the sticky_piston with air

Thank you, edited the title and description.

I did indeed use a second command block that replaces sticky_piston with air already.

12 more comments

Can confirm in 21w06a.

Can confirm in 21w07a.

Video attached.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w17a.

Nasm Nasmus

(Unassigned)

Confirmed

Commands

Minecraft 1.7.10, Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w33c, Minecraft 1.8.1, ..., 21w08b, 21w17a, 1.17.1, 24w19b, 1.21

Retrieved