Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-161144

Baby ocelots don't spawn naturally

XMLWordPrintable

    • Confirmed
    • Mob spawning
    • Normal

      The bug

      Baby ocelots are not spawning naturally anymore. Previously a parent ocelot was able to spawn with multiple babies.

      How to reproduce

      1. Create a Superflat world with the following preset
        70*minecraft:stone,minecraft:grass_block;minecraft:jungle;
        

        Note: The 70 layers of stone are required because ocelots only spawn above sea level.

      2. Set up a repeating command block with the following command
        /execute as @e[type=ocelot,nbt={Age:-24000}] run say Found baby
        

      Code analysis

      19w44a:

      It appears the behavior (and code) described in MC-114017 happens now reversed. The parent is spawned and afterwards no baby can be spawned because the parent occupies the space.

      This might apply to all mobs which should naturally spawn babies: Panda, polar bear, rabbit and llama
      Edit: This was incorrect. Since the babies are not spawned as part of finalizeSpawn, but instead are separate spawn attempts, their position is randomized as well.

        1. 2019-09-15_19.41.12.png
          980 kB
          poweredbow
        2. 2019-09-15_19.41.51.png
          2.62 MB
          poweredbow

            Excited Maria Lemón
            poweredbow poweredbow (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: