mojira.dev
MCPE-54241

Monsters spawn on leaves and glass

Message from [~Auldrick]:

This issue was fixed in the 1.14.1 Hotfix release. However, it was discovered that the fix caused a different problem (see MCPE-59682), so it was backed out in the 1.14.2 Hotfix release. Mojang is working on a solution that will resolve both issues.

This problem is well understood and its impact (as revealed by the vote count) is fully appreciated, so we don't really need any additional information in the form of additional screen shots and descriptions of it.

It turns out that the fix to MCPE-59682 did not revert this fix after all. In other words, mobs are not spawning on leaves and glass in 1.14.20. There was some confusion about what it did revert (there have been quite a lot of mob spawning bugs reported in the last few months, and somebody got confused).

I have therefore re-resolved this report as Fixed. If anybody has evidence that it's still occurring, please comment below.

All the usual hostile and neutral mobs, including endermen, spiders, zombies, zombie villagers, skeletons, creepers, and witches, will spawn on leaves and glass blocks. Additional blocks I tested include crafting table and fletching table, but there are reports that any non-full block will work.

Steps to reproduce:

  1. Build a platform of leaves or glass blocks a few blocks above the local maximum elevation.

  2. Move to a point about 45 blocks above the platform.

  3. Enable mob spawning and set the time to midnight.

Results:
Mobs spawn on the leaves or glass blocks.

Original description:
endermen spawn keep spawning on leaves

Linked issues

BDS-2299 Mobs spawning everywhere - again! Resolved MCPE-53737 Hostile mobs spawning on glass Resolved MCPE-53818 Mobs spawns in trees Resolved MCPE-54405 Mobs spawning on tree tops Resolved MCPE-55079 Enderman spawn on leaves Resolved

Attachments

Comments 48

Versions: 1.14.0.1 - 1.14.0.6 

Platform: MCPE Samsung Galaxy S9+

Worlds: Local Worlds, both Creative and Survival.

Issue: Mobs spawn on any blocks, including Transparent blocks like Leaves and Glass.

This causes hostile mobs to constantly be spawning on the tops of trees, making areas that were originally safe, now extremely dangerous.

[media][media][media][media]

I forgot to mention that they spawn in trees. We've gotten a number of reports of them spawning in well-lit areas, but I haven't been able to reproduce that problem. I think what may be happening is that they spawn in the trees and drop to the ground. If you don't see them drop and just discover them when you turn, it would only be natural to assume they spawned on the ground where it's lit up.

Quick comment to update mobs still spawning on leaves and glass in beta 1.14.1.2

Nestor Hrycenko

they are spawning on leaves for me in 1.14. I must add that it is not a common occurrence. For me its maybe 1 out of every hundred spawns

This bug is due to changes to the spawning algorithm in 1.14 to stop surface spawns from being passed downwards by bottom slabs and non-solid blocks. When searching for a surface spawn, the algorithm now terminates early and returns false (instead of continuing downards). However the return value is not checked, causing the game to try to spawn mobs at the location the search terminated.

The Fix: Check the return value and don't try to spawn surface mob if the search function terminated early.

38 more comments

The Minecraft code is a lot more complex than most people, including outside programmers, probably expect. I say that as a former developer myself who, while I don't have access to the code, have often been surprised by descriptions the devs have shared about how some of its algorithms work. "If the code is at all well structured" suggests that you're thinking about how you would have designed it, but you and I have the disadvantage that we usually play the game a certain way, and our design doesn't necessarily accommodate requirements the game has to satisfy but which don't affect our play. Our parochial view makes it seems simpler than it really is.

A good example of this is what support for add-ons does to the code. Behavior packs abstract thousands of parameters used by the game's algorithms, which means that a straight line reading of the code can't really tell you much about how the game will behave in a specific situation. Light levels and allowed blocks for spawning are some of what the behavior pack encodes, so reading the code alone would tell you literally nothing about which mobs can spawn at a certain location in a certain world. To find that out, you'd have to analyze all the applied behavior packs, determine the highest priority one that includes the relevant parameters, and look up those parameter values. The game actually does something like this, and all that logic complicates the code.

Re-resolved as Fixed because it turns out that the fix for MCPE-59682 did not revert this fix after all.

Played a bit last night and didn't see anything in my trees. I figured I was just at cap or getting lucky, but this is wonderful news! Can't wait to play tonight after work! 

I would like to report this as broken again. Buttons on top of blocks don't prevent spawning again (same with string but is intentional I think?)

@Amdeo Meure: please create a new ticket describing your issue in the current version.

Yaser ahmed

(Unassigned)

277854

Confirmed

Android

Bedrock edition on android

1.14.25.1 Beta, 1.14.0.50 Beta, 1.14.0.6 Beta, 1.14.0.4 Beta, 1.14.0.2 Beta, 1.14.1.2 Beta, 1.14.0

1.14.1 Hotfix

Retrieved