mojira.dev
MC-156880

Mobs spawn where they should not be able to after using /fill

The bug

Chunks check mob spawning conditions after removing blocks replaced with /fill BUT before re-calculating light levels: therefore, mobs will spawn in what should be broad daylight after /fill-ing a large area

How to reproduce

  1. Create a superflat world and stand on the ground

  2. Type /fill ~100 ~1 ~100 ~-50 ~1 ~-100 stone

  3. Spam /kill @e[type=!player] until most things are dead

  4. Type /fill ~100 ~1 ~100 ~-50 ~1 ~-100 air
    You will see hostile mobs spawning around you even when it has sky access.

Attachments

Comments 3

Can confirm in 1.17.1.

can't reproduce in 1.20.1

Nixinova

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a, 19w35a, ..., 1.16.1, 1.16.2, 1.16.4, 20w48a, 1.17.1

Retrieved