刷怪系统重制
一款 Minecraft 模组,根据洞穴、森林和建筑等环境因素,创建更具沉浸感的生物生成系统。
功能特性
基于环境的生成
本模组不再让生物在所有地方均匀生成,而是使生成率取决于所在地点的环境:
- 基础倍率:配置适用于所有区域的全局生成速率(默认值:0.2x)
- 洞穴生成:基于深度的渐进式缩放
- 浅层洞穴 (Y=60):最低倍率(默认值:1.0x = 20% 接受度)
- 深层洞穴 (Y=-64):最高倍率(默认值:5.0x = 100% 接受度)
- 越深越危险!
- 森林生成:基于树木密度的渐进式缩放
- 稀疏区域:最低倍率(默认值:1.0x)
- 茂密森林/丛林:最高倍率(默认值:3.0x)
- 树木越多 = 危险越大
- 建筑生成:危险建筑的生成率提高(默认值:3.0x)
- 要塞、下界要塞、海底神殿、林地府邸、废弃矿井、地牢
注意: 生成倍率基于相对于最高配置倍率的标准化概率接受度。使用默认设置(maxCaveMultiplier = 5.0)时,参考基准为 5.0x:
- 0.2x 基础值 = 4% 接受度 (0.2/5.0)
- 1.0x 浅层洞穴 = 20% 接受度 (1.0/5.0)
- 5.0x 深层洞穴 = 100% 接受度 (5.0/5.0)
这会产生强烈的对比:深洞穴中的刷怪数量是地表的 25 倍!
特定生物规则
为特定生物配置特殊的生成限制:
-
仅在洞穴中生成蜘蛛(默认启用)
- 启用时:蜘蛛和洞穴蜘蛛仅会在洞穴中生成
- 禁用时:蜘蛛会在各处正常生成
-
在结构附近禁用苦力怕生成(默认禁用)
- 启用时:防止苦力怕在危险的结构中生成(防止恶意破坏)
- 禁用时:苦力怕会在结构中正常生成
游戏内调试命令
使用 /spawndebug 查看在你当前位置适用的生成率:
- 你所在位置的生物群系检测(洞穴、森林密度、结构)
- 激活的生成乘数及其范围
- 将使用的乘数(基础、洞穴或森林)
- 如果在此处生成生物的最终计算生成率
这将向你展示生成系统在你当前位置“看到”的内容。
需要至少 2 级权限(使用 /op <username>)
配置
模组会在 config/spawningoverhaul.json5 创建一个配置文件
访问配置 GUI
Fabric:
- 安装 Mod Menu
- 在主菜单点击“Mods”
- 找到 “Spawning Overhaul” 并点击配置按钮
NeoForge:
- 在主菜单点击“Mods”
- 找到 “Spawning Overhaul” 并点击“Config”
配置选项
环境乘数
| 选项 | 默认值 | 说明 |
|---|---|---|
| Enable Immersive Spawning(启用沉浸式生成) | ✅ Enabled(已启用) | 整个系统的总开关 |
| Base Multiplier(基础倍率) | 1.0x | 全局生效的生成速率倍率 |
| Min Cave Multiplier(最小洞穴倍率) | 1.0x | 最浅洞穴深度(Y=60)处的生成速率 |
| Max Cave Multiplier(最大洞穴倍率) | 5.0x | 最深洞穴深度(Y=-64)处的生成速率 |
| Min Forest Multiplier(最小森林倍率) | 1.0x | 稀疏区域中的生成速率 |
| Max Forest Multiplier(最大森林倍率) | 3.0x | 茂密森林中的生成速率 |
| Dangerous Structure Multiplier(危险结构倍率) | 3.0x | 在危险结构中额外应用的倍率 |
| Enable Structure Modifications(启用结构修改) | ✅ Enabled(已启用) | 应用基于结构的生成变化 |
生物特定规则
| 选项 | 默认值 | 说明 |
|---|---|---|
| Spider Only In Cave(蜘蛛仅生成于洞穴) | ✅ Enabled(已启用) | 限制蜘蛛仅在洞穴中生成 |
| Disable Creeper Near Structure(禁用结构附近苦力怕) | ❌ Disabled(已禁用) | 防止在结构内生成苦力怕(防破坏机制) |
检测设置
| 选项 | 默认值 | 说明 |
|---|---|---|
| Dense Forest Log Threshold(茂密森林原木阈值) | 50 | 判定为茂密森林所需的最少原木数量 |
| Dense Forest Scan Radius(茂密森林扫描半径) | 10 | 用于扫描原木的区块半径 |
模组兼容性
| 选项 | 默认值 | 说明 |
|---|---|---|
| Additional Dangerous Structures(额外危险结构) | [] |
被视为危险的模组结构 ID 列表 |
| Additional Safe Structures(额外安全结构) | [] |
被视为安全的模组结构 ID 列表 |
工作原理
生成计算
对于每次生物生成尝试,该模组会执行以下操作:
-
检测环境(基于生成位置,而非玩家位置):
- 生成位置是否位于洞穴中?其深度是多少?
- 该位置的森林密度如何?(统计附近的原木方块数量)
- 生成位置是否位于危险结构中?
-
计算倍率:
- 从基础倍率开始
- 计算洞穴倍率(如果在洞穴中)
- 计算森林倍率(如果检测到原木)
- 选择最高的一项:基础、洞穴或森林倍率
-
应用额外修正:
- 如果在危险结构中,乘以结构倍率
- 应用生物特定规则(蜘蛛、苦力怕)
-
做出生成决策:
- 所有倍率均使用概率接受机制,归一化至配置的最高倍率
- 参考最大值是根据配置动态计算的(取洞穴/森林/结构倍率中的最大值)
- 倍率越高 = 接受概率越高 = 生成越多
- 示例(以 maxCaveMultiplier 配置的默认 5.0x 为参考):
- 0.2x → 4% 接受率(极少生成)
- 1.0x → 20% 接受率(生成减少)
- 3.0x → 60% 接受率(结构内,大量生成)
- 5.0x → 100% 接受率(深层洞穴,最大生成量)
- 倍率为 0.0:始终拒绝生成
性能
该模组设计为轻量级:
- 洞穴检测:简单的 Y 坐标检查 + 天空可见性判断
- 森林检测:限制在垂直方向 ±3 个方块内的圆柱形扫描
- 结构检测:使用缓存,TTL(生存时间)为 10 秒
- 目标影响:平均每次生成检查耗时 <2ms
兼容性
✅ 兼容
- 模组生物:自动兼容任何模组中的生物
- 模组结构:使用配置列表将模组结构标记为危险/安全区域
- 模组生物群系:适用于所有生物群系(原版和模组)
- 其他生成模组:在原版生成检查后应用,可与其他模组叠加生效
⚠️ 已知限制
- 不影响生物刷怪箱(仅自然生成)
- 不影响事件生成(袭击、Boss战等)
- 不影响命令召唤(
/summon) - 每个区块的首次生成可能因缓存未命中而稍慢
Spawning Overhaul
A Minecraft mod that creates a more immersive mob spawning system based on environmental factors like caves, forests, and structures.
Features
Environment-Based Spawning
Instead of mobs spawning uniformly everywhere, this mod makes spawning rates dependent on the spawn location's environment:
- Base Multiplier: Configure a global spawn rate that applies everywhere (default: 0.2x)
- Cave Spawning: Progressive scaling based on depth
- Shallow caves (Y=60): Minimum multiplier (default: 1.0x = 20% acceptance)
- Deep caves (Y=-64): Maximum multiplier (default: 5.0x = 100% acceptance)
- The deeper you go, the more dangerous it gets!
- Forest Spawning: Progressive scaling based on tree density
- Sparse areas: Minimum multiplier (default: 1.0x)
- Dense forests/jungles: Maximum multiplier (default: 3.0x)
- More trees = more danger
- Structure Spawning: Dangerous structures have increased spawn rates (default: 3.0x)
- Strongholds, Nether Fortresses, Ocean Monuments, Woodland Mansions, Mineshafts, Dungeons
Note: Spawn multipliers use normalized probability acceptance based on the highest configured multiplier. With default settings (maxCaveMultiplier = 5.0), the reference is 5.0x:
- 0.2x base = 4% acceptance (0.2/5.0)
- 1.0x shallow caves = 20% acceptance (1.0/5.0)
- 5.0x deep caves = 100% acceptance (5.0/5.0)
This creates dramatic contrast: deep caves have 25x more spawns than the surface!
Mob-Specific Rules
Configure special spawn restrictions for specific mobs:
-
Spider Only In Cave (Enabled by default)
- When enabled: Spiders and cave spiders only spawn in caves
- When disabled: Spiders spawn normally everywhere
-
Disable Creeper Near Structure (Disabled by default)
- When enabled: Prevents creepers from spawning in dangerous structures (protects against griefing)
- When disabled: Creepers spawn normally in structures
In-Game Debug Command
Use /spawndebug to see what spawn rates would apply at your current position:
- Environment detection at your position (cave, forest density, structure)
- Active spawn multipliers and their ranges
- Which multiplier would be used (base, cave, or forest)
- Final calculated spawn rate if a mob were to spawn here
This shows you what the spawn system "sees" at your position.
Requires operator level 2 (use /op <username>)
Configuration
The mod creates a config file at config/spawningoverhaul.json5
Accessing the Config GUI
Fabric:
- Install Mod Menu
- Click "Mods" in the main menu
- Find "Spawning Overhaul" and click the config button
NeoForge:
- Click "Mods" in the main menu
- Find "Spawning Overhaul" and click "Config"
Configuration Options
Environmental Multipliers
| Option | Default | Description |
|---|---|---|
| Enable Immersive Spawning | ✅ Enabled | Master toggle for the entire system |
| Base Multiplier | 1.0x | Global spawn rate applied everywhere |
| Min Cave Multiplier | 1.0x | Spawn rate at shallowest cave depth (Y=60) |
| Max Cave Multiplier | 5.0x | Spawn rate at deepest depth (Y=-64) |
| Min Forest Multiplier | 1.0x | Spawn rate in sparse areas |
| Max Forest Multiplier | 3.0x | Spawn rate in dense forests |
| Dangerous Structure Multiplier | 3.0x | Additional multiplier in dangerous structures |
| Enable Structure Modifications | ✅ Enabled | Apply structure-based spawn changes |
Mob-Specific Rules
| Option | Default | Description |
|---|---|---|
| Spider Only In Cave | ✅ Enabled | Restricts spiders to caves only |
| Disable Creeper Near Structure | ❌ Disabled | Prevents creepers in structures (anti-griefing) |
Detection Settings
| Option | Default | Description |
|---|---|---|
| Dense Forest Log Threshold | 50 | Number of logs needed to count as dense forest |
| Dense Forest Scan Radius | 10 | Radius in blocks to scan for logs |
Mod Compatibility
| Option | Default | Description |
|---|---|---|
| Additional Dangerous Structures | [] |
List of modded structure IDs to treat as dangerous |
| Additional Safe Structures | [] |
List of modded structure IDs to treat as safe |
How It Works
Spawn Calculation
For each mob spawn attempt, the mod:
-
Detects the environment at the spawn location (not the player's location):
- Is the spawn position in a cave? What's the depth?
- How dense is the forest at that position? (counts nearby log blocks)
- Is the spawn position in a dangerous structure?
-
Calculates multipliers:
- Starts with the base multiplier
- Calculates cave multiplier (if in cave)
- Calculates forest multiplier (if logs detected)
- Selects the highest of: base, cave, or forest
-
Applies additional modifiers:
- Multiplies by structure multiplier (if in dangerous structure)
- Applies mob-specific rules (spiders, creepers)
-
Makes the spawn decision:
- All multipliers use probabilistic acceptance normalized to the highest configured multiplier
- The reference maximum is dynamically calculated from config (max of cave/forest/structure multipliers)
- Higher multipliers = higher acceptance probability = more spawns
- Examples (with default 5.0x reference from maxCaveMultiplier):
- 0.2x → 4% acceptance (very few spawns)
- 1.0x → 20% acceptance (reduced spawns)
- 3.0x → 60% acceptance (structures, many spawns)
- 5.0x → 100% acceptance (deep caves, maximum spawns)
- Multiplier = 0.0: Always denies spawn
Performance
The mod is designed to be lightweight:
- Cave detection: Simple Y-coordinate check + sky visibility
- Forest detection: Cylindrical scan limited to ±3 blocks vertically
- Structure detection: Cached with 10-second TTL
- Target impact: <2ms per spawn check on average
Compatibility
✅ Compatible With
- Modded mobs: Automatically works with any mob from any mod
- Modded structures: Use config lists to mark modded structures as dangerous/safe
- Modded biomes: Works in all biomes (vanilla and modded)
- Other spawn mods: Applies after vanilla spawn checks, stacks with other mods
⚠️ Known Limitations
- Does not affect mob spawners (only natural spawns)
- Does not affect event spawns (raids, boss fights, etc.)
- Does not affect command summons (
/summon) - First spawn in each chunk may be slightly slower due to cache misses
下载 Spawning Overhaul
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
下载 Spawning Overhaul
- feat: 移植到 Minecraft 26.2(Fabric + NeoForge)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧