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

Naturally spawning baby ocelots prevent parent ocelot from spawning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 17w06a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Baby ocelots spawned naturally prevent the parent ocelot from spawning.

      Note: This bug is currently blocked by MC-103516 which allows the parent ocelot to spawn.

      How to reproduce

      1. Create a Superflat world with the following preset
        3;minecraft:grass;21;
        
      2. Setup a repeating command block and a chain command block with the following commands
        /scoreboard players tag @e[type=ocelot] add babyOcelot {Age:-24000}
        
        /entitydata @e[type=ocelot,tag=babyOcelot] {Glowing:1b,NoAI:1b}
        
      3. Move around and look at the naturally spawned baby ocelots
        → You will notice that they are always spawned without parent

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The problem is that the method net.minecraft.entity.passive.EntityOcelot.onInitialSpawn(DifficultyInstance, IEntityLivingData) spawns the baby ocelots at the same position the parent ocelot would spawn. Because of that the parent would collide with them and is therefor not spawned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: