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:
Place a command block with the command
fill ~1 ~ ~1 ~5 ~ ~5 air
Place a piston in the area to be filled facing either north or west.
Place a redstone block next to the piston, making it extended.
Place a redstone block next to the command block.
❌ A piston item will now drop.
Linked issues
is duplicated by 4
Attachments
Comments 22
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.
Command used?