Skip to content

Paste breaks and never replaces extended pistons #2956

Open

Description

@SqueakyLlama1

WorldEdit Version

7.4.3-beta-01+80c6d6122

Platform Version

Fabric 0.19.2

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

Basically when I use the paste command it tries to replace extended pistons with another extended or non-extended piston but instead I see break particles and the piston just never replaces.

Expected Behavior

It should be able to replace it correctly instead of just dissapearing

Reproduction Steps

  1. Copy a piston
  2. Paste a piston over an extended piston

Anything Else?

No response

Activity

  1. github-actions commented on May 23, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not been fully confirmed. It will be closed if no further activity occurs. Thank you for your contributions.

  2. github-actions commented on Jun 23, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not been fully confirmed. It will be closed if no further activity occurs. Thank you for your contributions.

  3. github-actions commented on Jul 24, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not been fully confirmed. It will be closed if no further activity occurs. Thank you for your contributions.

  4. github-actions commented on Aug 24, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not been fully confirmed. It will be closed if no further activity occurs. Thank you for your contributions.

  5. VanJackal commented on Aug 26, 2026

    @VanJackal

    I looked into this a bit in game. It appears to happen anytime a piston head attached to an extended piston is replaced with a piston head (or any block except air). Not sure if it's relevant but vanilla fill/setblock doesn't have this issue unless the head is replaced by something other than a piston head.

    edit: tried again with air and it broke the piston, not sure what I did the first time

  6. added
    status:needs-verificationPending verification by maintainers that the issue is valid
    and removed on Aug 27, 2026
  7. VanJackal commented on Aug 28, 2026

    @VanJackal

    This seems to be caused by

    Which causes the piston head to destroy the piston base (see net.minecraft.world.level.block.piston.PistonHeadBlock#affectNeighborsAfterRemoval)

    Potential fix is checking if the block has changed before calling affectNeighborsAfterRemoval, which is what vanilla does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-verificationPending verification by maintainers that the issue is validtype:bugIncorrect behavior, not working as intended

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions