Skip to content

Pasting mobs with enchanted armor clears their entire inventory #2910

@avatardotpng

Description

@avatardotpng

WorldEdit Version

7.4.0

Platform Version

Fabric 0.18.4

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

When attempting to paste a mob wearing enchanted armor using //paste -e, the mobs inventory gets completely cleared, including unrelated not enchanted items

Expected Behavior

For the mob that is pasted to have the same inventory as the one copied, with all items and item data including enchantments

Reproduction Steps

  1. Build a small 1x2x1 hole to put the mob in so it doesn't move
  2. While in the hole, use the command /summon husk ~ ~ ~ {equipment:{mainhand:{id:dirt},chest:{id:netherite_chestplate,components:{"minecraft:enchantments":{"minecraft:protection":1}}}}}
  3. Select an area that includes the husk, then do //copy -e
  4. Go somewhere else and do //paste -e. The mob will not have any items

Anything Else?

The last version of world edit I was using before this was 7.3.10, and this was not an issue. I also believe that this works fine on spigot and paper servers

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:pendingPending acceptance or closure.type: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