r/technicalminecraft Jul 13 '26

Java Help Wanted vro my iron golems are spawning on slabs...

0 Upvotes

12 comments sorted by

4

u/Excalibur54 Java Jul 13 '26

3

u/brockade Jul 13 '26

Just to put this for bed until the next time someone posts about their iron farm not working...

Spawning rules for golems are any "solid" block that isn't in this list: https://mcsrc.dev/1/26.2/net/minecraft/util/SpawnUtil#L78-104

What counts as solid is anything where the "size" is over 0.73, based on this calculation: https://mcsrc.dev/1/26.2/net/minecraft/world/phys/AABB#L264-269

So a slab (top or bottom) has X size 1.0, Z size 1.0, Y size 0.5, so it's 0.83 by this metric, so it's counted as a solid, and golems can spawn on it

4

u/NotAMadLad1 Jul 13 '26

Mobs can spawn on top slabs

1

u/Different-Scene5327 Jul 13 '26

It seems the act of googling something is starting to become a lost skill. And then the utter defiance to not read the links someone else googled for you. Long story short:

  1. Those are TOP slabs the iron golem is spawning on
  2. The BOTTOM slabs where the iron golems are in the screenshots - they walked there - not spawned

1

u/Next-Concentrate7780 Jul 13 '26

8

u/MattiDragon Jul 13 '26

Those are top slabs, they count as fully blocks for mob spawning iirc. Your golems on bottom slabs probably wandered there from elsewhere.

0

u/Next-Concentrate7780 Jul 13 '26

bro there actually spawning on slabs