
Glow Squid Spawn Fix
让发光鱿鱼待在它们该在的地方
为什么?
原版 Minecraft 允许发光鱿鱼在与空气方块直接相邻的水方块中生成,这可能导致它们在世界生成期间随机生成的水柱中生成。随后它们会从水柱中掉落并死亡,掉落发光鱿鱼墨囊,而这些物品会一直留在已加载和未加载的区块中。本模组为生成条件添加了一个简单的检查:如果任何水平方向的邻居方块是空气,发光鱿鱼将不再在此处生成。
结果如何?发光鱿鱼现在会在更自然、完全被水淹没的位置生成,而不是尴尬地附着在洞穴墙壁或水边。
如何实现?
该模组使用一个简单的 mixin(混入),添加了一个额外的验证步骤,用于检查生成位置四周的水平方向。如果任何相邻方块是空气,则取消此次生成尝试。其性能开销微乎其微,甚至可能带来正面影响。
注意
本模组可能会影响那些依赖旁边有空气方块的水柱来生成发光鱿鱼的农场。 如果你的农场设计使用了这种机制,你需要通过确保生成区域周围的所有水平方块都是固体或水体来进行调整。
有问题或疑问?
请在 问题追踪器 上报告

Glow Squid Spawn Fix
Keeping glow squids where they belong
Why?
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.
How?
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.
Note
This mod may affect glow squid farms that rely on a water column with an air block next to it. If your farm design uses this mechanic, you'll need to adjust it by ensuring all horizontal blocks around the spawn area are solid or water.
Questions or issues?
Report them on the issue tracker
评论 0
登录后参与评分
还没有评论,来抢沙发吧