Structure Spawn Area Fix
我注意到 Alex's Mobs 模组存在一个问题,该模组为沉船结构添加了生物生成。由于该结构的边界框非常小,实际上这些生物几乎不会生成,或者极难生成。你可以在 此问题 中了解更多详情。
本模组通过允许你扩展结构周围的生物生成区域来解决此问题。它通过检查潜在生成点周围更大范围来实现这一点。如果找到符合条件的区域,该位置的生物群系常规生物生成将被此位置的结构专属生成所覆盖。
以前,我很少看到 Skelewag 生成,但应用此修复后,效果如下(速度加快 2 倍;屏幕中央有一艘沉船):

配置
配置文件位于 config/structure-spawn-area-fix.json。这是一个 JSON 文件,包含用于扩展生成区域的 structures 条目列表。每个条目具有以下属性:
structure: 结构的命名空间 ID(例如 minecraft:shipwreck)
category: 要应用扩展的生物类别
- 可选值:
monster、creature、ambient、axolotls、underground_water_creature、water_creature、water_ambient、misc
additional_radius: 一个整数值,指定在结构中额外检查的半径(以方块为单位)
biome(可选):一个命名空间的生物群系 ID(例如 minecraft:plains)或生物群系标签(例如 #minecraft:is_ocean),用于将扩展限制在特定的生物群系中(推荐以提高性能)。
示例
以下是一个示例配置,它将沉船周围怪物的生成区域扩展了 12 个方块,并限制在拥有沉船结构的生物群系中:
[
{
"structure": "minecraft:shipwreck",
"category": "monster",
"additional_radius": 12,
"biome": "#minecraft:has_structure/shipwreck"
}
]
默认情况下,模组会创建与此完全相同的配置,以解决 Alex's Mobs 及其 Skelewag 在沉船处生成的问题。如果你发现其他生物在结构附近生成也有问题,只需为它们添加另一个条目即可。
 
Structure Spawn Area Fix
I have noticed an issue with the Alex's Mobs mod, which adds mob spawns to the shipwreck structure.
This structure's bounding box is so small that in practice these mobs will spawn very rarely, if at all.
You can read more about this in this issue.
This mod fixes this issue by allowing you to expand the spawn area for mobs around structures.
It does this by checking a larger area around a potential spawn point for a given structure.
If one is found, the biome's regular mob spawns will be overriden with structure-specific ones for this position.
Before, I rarely got a Skelewag to spawn in, but with this fix applied, it looks like this (sped up by a factor of 2; there's a shipwreck in the center of the screen):

Configuration
The configuration is located in config/structure-spawn-area-fix.json.
It is a JSON file containing a list of entries for structures to expand the spawning area for.
Each entry has the following properties:
structure: The namespaced ID of the structure (e.g., minecraft:shipwreck)
category: The mob category to apply the expansion for
- Possible values:
monster, creature, ambient, axolotls, underground_water_creature, water_creature, water_ambient, misc
additional_radius: An integer value that specifies the additional radius to check for the structure in blocks
biome (optional): A namespaced biome ID (e.g., minecraft:plains) or a biome tag (e.g., #minecraft:is_ocean) to restrict the expansion to specific biomes (recommended for performance).
Example
Here is an example configuration that expands the spawn area for monsters around shipwrecks by 12 blocks, restricted to biomes that have the shipwreck structure:
[
{
"structure": "minecraft:shipwreck",
"category": "monster",
"additional_radius": 12,
"biome": "#minecraft:has_structure/shipwreck"
}
]
By default, the mod creates this exact configuration to fix the issue with Alex's Mobs and its Skelewag spawns at shipwrecks.
If you find other mobs also have issues spawning near structures, you can just add another entry for them.
评论 0
登录后参与评分
还没有评论,来抢沙发吧