mojira.dev
MC-92729

Horses spawn in blocks during world generation, causing them to suffocate

The bug

When I created a minecraft world, I was next to some horses. Two of the horses suffocated to death since they spawned inside blocks. Also, the horse animation was a little bit off.

How to reproduce

  1. Seed: 2154973
    World Type: Default
    Coordinates: /tp -129797 70 -3328 0 90

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The problem seems to be that the method net.minecraft.world.WorldEntitySpawner.performWorldGenSpawning(World, Biome, int, int, int, int, Random), which is called when a chunk is populated, does not test if the entity it wants to spawn is colliding before spawning it in.

Related issues

Attachments

Comments

migrated
[media]
migrated

By the way, if you need to reproduce, seed in 15w46a is ILoveMushroomBiomes

[Mod]Les3awe

Confirmed.

[Mod]Les3awe

This issue relates to MC-13632

kumasasa

Please provide seed and coordinates.

[Mod]Les3awe

Seed:
ILoveMushroomBiomes(1682752134)

World Type: Default

X/Y/Z:
-257 76 -61

Also affects Windows 10

migrated

Oh, the horses were around -250 75 -60. You're probably right.

[Mod]Les3awe

Confirmed for 15w47b

marcono1234

Confirmed for

  • 15w47c

migrated

confirmed for 16w07a

migrated

Confirmed 16w42a

marcono1234

Removed the previously provided seed and coordinates because it looks like horses were not spawning there anymore.

migrated

Confirmed on 1.12. As horses generally spawn on plain biome it is a rare case. But it can be seen when they spawn on mountainous region or on mountain like landscape. Similar to the Llama case.

migrated

This happens as well with horses that come from nether portal.

Shoud I create an issue?

I think it already exists and is closed:

https://bugs.mojang.com/browse/MC-13734?focusedCommentId=449442&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-449442

I'm commenting here as well since MC-13734 is already resolved

pokechu22

You want MC-80032. MC-13734 was caused by the minecart not teleporting the horse, but I've linked it as related to MC-80032 so that that can be found better; I've also linked this as related to MC-80032.

wobst.michael

Can this still be reproduced in 1.13.2 and higher?

migrated

I've had several horses suffocated not just during world generation but upon reloading a server where the horse is standing in a corner of a stable or next to a wall.

 

marcono1234

@@unknown, that sounds like MC-2025 and is not part of this report.

wobst.michael

Can this still be reproduced in 21w05 or later?

violine1101

If you're able to reproduce, please provide a new seed and coordinates, the one in the description no longer works.

migrated

(Unassigned)

Confirmed

(Unassigned)

collision-box, hitbox, horse, spawn, suffocate, world-generation

Minecraft 15w46a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 16w07a, Minecraft 1.10.2, ..., Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w06a

Retrieved