Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-48587

/summon spawnEvent bypasses entity_spawned, creating broken/corrupt mobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.10.26 Beta, 1.17.0.50 Beta, 1.16.0.51 Beta, 1.14.1 Hotfix, 1.14.0.2 Beta, 1.13.0.9 Beta, 1.13.0.4 Beta, 1.13.0.2 Beta, 1.12.0, 1.14.0, 1.16.0, 1.16.201 Hotfix, 1.17.0, 1.17.40, 1.18.2 Hotfix, 1.19.0, 1.19.30, 1.20.40.22 Preview, 1.20.30, 1.20.80.21 Preview
    • None
    • Confirmed
    • Windows
    • 307060, 319003

      The bug

      The recent spawnEvent option in /summon creates corrupt mobs the majority of the time. It causes the regular minecraft:entity_spawned to be skipped, which many mobs rely on for initialization. Mobs that skip this event are permanently broken or corrupted, each in a different way depending on how that mob behavior is implemented.

      How to reproduce

      1. /summon sheep ~ ~ ~ 0 0 wololo
      2. Try to shear the sheep
      You can't, this mob is missing a bunch of components that were supposed to have been applied by the entity_spawned event. It is now broken permanently.

      Notes

      Even if the specified event is run after entity_spawned, it would still be possible to create corrupt mobs, for example a chicken that has both adult and child components at the same time. Most mob events are implementation details of the behavior and probably should not be exposed in /summon alone, or a distinction should be made between creation events and lifetime events.

            tryashtar [Mod] tryashtar
            Votes:
            25 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              CHK: