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

/summon spawnEvent does not work with villagers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.17.0
    • 1.16.0.59 Beta, 1.16.0.55 Beta, 1.16.0.51 Beta, 1.14.1 Hotfix, 1.14.30 Hotfix, 1.16.40 Hotfix
    • None
    • Confirmed
    • Windows
    • 328458

      The bug

      /summon has a spawnEvent option to run a behavior event when spawning the mob. This does not work for villagers.

      How to reproduce

      /summon sheep ~ ~ ~ minecraft:entity_born

       Baby sheep is spawned

      /summon villager ~ ~ ~ minecraft:entity_born

       Adult villager is spawned

      The entity_born event does exist in the villager behavior file. This bug happens for all villager events, e.g. become_witch.

      Notes

      This is almost certainly caused by the fact that summoning a villager actually summons a "villager_v2", after some kind of transformation. This transformation is not seamless and causes various minor issues, of which this is one. The best fix is to remove villager_v2 entirely and have villager take its behaviors, because splitting the mobs like this is a horrible hack that should not exist.

            tryashtar [Mod] tryashtar
            Votes:
            10 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: