
|
Vanilla Minecraft allows glow squids to spawn in water blocks that are directly adjacent to air, which can lead to them spawning in random water columns that generate during world-gen, they then fall out of the column and die, dropping glow ink sacs which stay in the world in loaded and unloaded chunks. This mod adds a simple check to the spawn conditions: glow squids will no longer spawn if any horizontal neighbor block is air.
The result? Glow squids that spawn in more natural, fully-submerged locations instead of awkwardly clinging to cave walls or water edges.
The mod uses a simple mixin, adding an additional validation step that checks all four horizontal directions from the spawn position. If any neighboring block is air, the spawn attempt is cancelled. The performance overhead is negligible if not positive with time.
Report them on the issue tracker