SpawnForce 是一款轻量级的 Fabric 模组,它通过绕过 Minecraft 的三个 canSpawn 检查点来强制特定实体生成。许多模组生物(如 AdventureZ 的兽人/萨满/真菌、Marium's Soulslike Weaponry 的头目等)都带有严格的生成谓词(光照等级、特定方块、生物群系硬编码列表),这导致它们即使在数据包或世界生成模组声明了这些生物的情况下,也无法在自定义生物群系中出现。SpawnForce 允许你在配置文件中白名单化实体 ID,并仅对这些实体绕过上述检查。
功能特性
- 基于配置的白名单:在
config/spawnforce.json 中列出任何实体 ID(格式为 modid:entity_name),它们就会在允许的生物群系和 mobcap(生物上限)范围内生成
- 绕过三个原版生成检查点:
SpawnHelper.canSpawn(位置检查:地面、方块类型、光照)
SpawnRestriction.canSpawn(已注册的生成谓词)
MobEntity.canSpawn(针对每个生物的覆盖逻辑)
- 每个检查点都有独立的开关——只需启用你需要的部分
- 可选调试日志:显示每个实体的绕过命中次数及周期性统计信息
- 模组无关性:适用于任何模组的生物,无需硬编码列表
- 不修改 mobcap、生成权重或生物群系标签——生物仍需在世界生成的生物群系中被声明(例如原版刷怪笼或 Big Globe 的
bigglobe_extra_mob_spawns 等)
配置说明
{
"enabled": true,
"debug": false,
"bypass_spawn_helper_can_spawn": true,
"bypass_spawn_restriction": true,
"bypass_mob_entity_can_spawn": true,
"force_spawn_entities": [
"adventurez:orc",
"adventurez:soul_reaper",
"soulsweapons:draugr_boss"
]
}
- enabled: 总开关
- debug: 将每次绕过操作 + 每 10 秒的摘要记录到控制台
- bypass_*: 单独切换每个检查点(除非你需要更精细的控制,否则保持全部为 true)
- force_spawn_entities: 白名单列表。缺失的 ID 将被忽略并输出警告
编辑配置文件后需重启游戏。
推荐用途
- 结合生物模组与自定义世界生成(Big Globe、Terralith、Biomes O' Plenty 等)的整合包,其中模组生物拒绝生成
- 需要在特定生物群系中生成特定生物的角色扮演/RPG 整合包,而无需编写 Java 补丁
- 在使用 Forge 版
In Control! 模组但需要 Fabric 端等效 "result":"allow" 功能的用户
本模组被用于 Legends Reborn: Medieval 整合包。
SpawnForce is a lightweight Fabric mod that forces specific entities to spawn by bypassing Minecraft's three canSpawn gates. Many modded mobs (AdventureZ orcs/shamans/fungi, Marium's Soulslike Weaponry bosses, and others) ship with strict spawn predicates (light level, specific blocks, biome hardcoded lists) that prevent them from ever appearing in custom biomes - even when a datapack or worldgen mod declares them. SpawnForce lets you whitelist entity IDs in a config file and bypasses those checks only for them.
Features
- Config-driven whitelist: list any entity ID (
modid:entity_name) in config/spawnforce.json and it will spawn where biome/mobcap allow
- Bypasses the three vanilla spawn gates:
SpawnHelper.canSpawn (location check: ground, block type, light)
SpawnRestriction.canSpawn (registered spawn predicate)
MobEntity.canSpawn (per-mob override)
- Each gate has its own toggle - enable only what you need
- Optional debug logging shows bypass hits per entity and periodic stats
- Mod-agnostic: works with any mod's mobs, no hardcoded list
- Does NOT touch mobcap, spawn weight, or biome tags - a mob still needs to be declared in a biome (vanilla spawners or Big Globe
bigglobe_extra_mob_spawns, etc.)
Configuration
{
"enabled": true,
"debug": false,
"bypass_spawn_helper_can_spawn": true,
"bypass_spawn_restriction": true,
"bypass_mob_entity_can_spawn": true,
"force_spawn_entities": [
"adventurez:orc",
"adventurez:soul_reaper",
"soulsweapons:draugr_boss"
]
}
- enabled: master switch
- debug: logs each bypass + 10s summary to console
- bypass_*: toggle each gate individually (leave all true unless you want finer control)
- force_spawn_entities: the whitelist. Missing IDs are ignored with a warning
Restart the game after editing.
Recommended For
- Modpacks combining mob mods with custom worldgen (Big Globe, Terralith, Biomes O' Plenty, etc.) where modded mobs refuse to spawn
- Adventure/RPG packs that need specific mobs in specific biomes without writing Java patches
- Anyone using
In Control! on Forge who needs the equivalent "result":"allow" on Fabric
Used in the Legends Reborn: Medieval modpack.
评论 0
登录后参与评分
还没有评论,来抢沙发吧