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

/summon spawnEvent bypasses entity_spawned, creating broken/corrupt mobs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Platform:
      Windows 10 - PC

      Description

      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 ~ ~ ~ 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.

        Attachments

          Activity

            People

            • Reporter:
              tryashtar [Mod] tryashtar
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: