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

Baby ocelots don't spawn naturally

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 19w37a, 19w45b
    • Fix Version/s: 1.15 Pre-release 3
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Mob spawning
    • Mojang Priority:
      Normal

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Excited Maria Lemón
              Reporter:
              poweredbow poweredbow
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: