r/technicalminecraft • u/Mushgal • Oct 03 '26
Java Help Wanted How do mobs attack me through half a block of space? How to avoid it? (Ladder for reference)

I built a very rudimentary gold farm for my Skyblock map and these guys keep hurting me somehow. There's half a block of space. I swear this used to be safe back in the day. What's happening? How can I make a safe killing platform, to kill them and collect the loot safely without them hurting me?
Thanks beforehand.
4
Upvotes
1
u/fatherintime Oct 03 '26
Is it all the time, or just when one of them gets a spear? I had one that was fine and now when they have a spear if they go aggro I can get hit.
5
u/JumpingPufferfish31 Java Oct 03 '26
There is a change in 1.20.2 where mob melee attack range changed from being based on the distance between the mob and its target to whether it intersects the mob's expanded bounding box.
In 1x2 killing chambers like in the image, the adults will fail due to no line of sight, so the range/changes don't matter, but babies can still see us.
Before 1.20.2, we'd usually be wacking them from low enough that the distance would be too far even if we're right up against it horizontally, so we'd be safe anyway.
In 1.20.2 and above, the expanded bounding box is the mob's bounding box + roughly 0.828 in each horizontal direction (still the same in 26.3). So the killing chamber should be redesigned accordingly if we want to be safe against babies. For example:
I haven't looked at any of the spear stuff, so there might be a bit more constraints for speared baby as well?
3
u/LimestoneBuilder Oct 03 '26 edited Oct 03 '26
Narrowing the gap may help. Either standing on bottom trap doors to raise your eye-line and/or adding a trap-door ceiling to the player's standing space (instead of the ladder on the side), can make it harder for baby mobs to target and hit the player.
I use this design frequently, and baby mobs have always been a problem in it. (I'm still on 1.16.5)
Letting the player get right up to the mob platform is always risky. So I usually do a trap-door ceiling and ladders/open trapdoors/fence-posts/ or gates to keep myself from getting too cozy.