NotTodayMob 在设计时兼顾了简洁性与性能,允许你在不修改世界生成定义或生物群系数据的情况下,对实体生成进行可配置的管控。你可以完全屏蔽特定实体——或是整个命名空间下的所有实体——也可以通过简单的配置提高或降低它们的自然生成频率。
NotTodayMob 旨在为整合包创作者和服务器管理员提供可预测、轻量级的实体行为控制方案,无需依赖复杂的数据包或脚本。
所有更改均在运行时生效,并能自动适配模组实体、模组生物群系以及自定义维度。
当不想要的实体试图生成时,答案很简单:今天不行。
最新更新 - 版本 1.0.4
NotTodayMob 现在包含了对控制幼体变体的可选支持。
新增的 blockBabyVariants 设置允许整合包创作者和服务器管理员决定是否也应阻止被屏蔽实体的幼体版本生成。
功能特性
- 屏蔽特定实体的生成
- 使用可配置的权重乘数调整自然生成频率
- (可选)在区块加载期间替换/移除匹配的刷怪笼
- 自动从玩家物品栏和世界中的方块移除刷怪蛋和刷怪笼
- 针对幼体变体的额外细粒度控制,支持通过标准 Minecraft 实体行为暴露幼年/成年状态的原版及模组实体
- 支持精确 ID 和通配符匹配,包括按维度限定规则作用范围
- 定期记录性能统计数据
- 自动适配模组实体和生物群系
- 无需修改生物群系或世界生成
- 轻量级,适合大型整合包
- 兼容服务器和多玩家环境
注意
在 Forge 1.20.1 和 NeoForge 1.21.1 上,匹配的刷怪笼会先被替换为惰性刷怪笼,随后在后续的区块加载中被安全移除。
这种分阶段移除的方式避免了在世界生成期间过早移除方块实体所导致的区块加载警告。
典型用例
- 减少生存玩法中特定实体的数量
- 增加主题世界中某些生物的出现频率
- 禁用有问题的或不需要的模组实体
- 平衡大型整合包中的实体种群
- 在不编辑数据包的情况下微调游戏难度
配置指南
NotTodayMob 使用一组精简的服务器端设置进行配置,设计目标是可预测且易于理解。任何更改均可随时进行,并在重启或重载后自动生效。
核心行为
blockEntitiesEnabled
控制是否阻止匹配的实体生成。
默认值:true
如果禁用,所有实体屏蔽规则都将被忽略。
blockBabyVariants
控制是否同时屏蔽被屏蔽实体的幼体变体。
默认值:true
如果禁用,即使成年实体被屏蔽,其幼体变体仍会生成。
世界生成刷怪笼处理
worldgenSpawnerRemoval
控制是否在区块加载期间移除或替换匹配的世界生成刷怪笼。
默认值:true
如果启用,匹配的刷怪笼将:
- 使用
worldgenSpawnerReplacements进行替换,或者 - 如果未定义有效的替换项,则被移除
如果禁用,世界生成的刷怪笼保持不变。
worldgenSpawnerReplacements
worldgenSpawnerReplacements = [
"minecraft:zombie"
]
行为说明
- 仅适用于 世界生成的刷怪笼(例如地牢、结构)
- 仅接受精确的实体 ID
- 在区块生成或加载时自动执行替换
- 可提供多个条目作为后备选项
- 如果未定义有效的替换项,刷怪笼将被移除
- 现有世界将在区块加载时得到更新
示例
blockedEntities = [
"minecraft:skeleton",
"minecraft:*spider"
]
worldgenSpawnerReplacements = [
"minecraft:zombie"
]
在此示例中,在区块加载过程中发现的骷髅或蜘蛛刷怪笼将变为 僵尸刷怪笼。
刷怪笼与刷怪蛋控制
suppressBlockedEntitySpawners
控制是否禁止使用匹配的刷怪笼。
默认值:true
如果禁用:
- 刷怪笼仍可正常使用
- 实体生成行为仍然遵循屏蔽规则
suppressBlockedEntitySpawnEggs
控制是否禁止使用匹配的刷怪蛋。
默认值:true
如果禁用:
- 刷怪蛋仍可正常使用
- 实体生成行为仍然遵循屏蔽规则
物品栏与物品清理
cleanupDroppedItems
控制是否在实体掉入世界时立即移除被屏蔽实体的刷怪蛋和刷怪笼。
默认值:true
如果你希望被屏蔽的物品存在但阻止其生成,请禁用此选项。
inventoryCleanupIntervalTicks
控制多久(以刻为单位)检查一次玩家物品栏中的被屏蔽刷怪蛋和刷怪笼。
默认值:10
| 刻数 (Ticks) | 实际时间 |
|---|---|
10 |
半秒 |
20 |
一秒 |
较高的数值会降低开销,但会延迟清理过程。
enableStatsLogging
控制是否将定期的 NotTodayMob 汇总统计信息写入服务器日志。
默认值:false
statsLoggingIntervalTicks
控制多久(以刻为单位)记录一次汇总统计数据。
默认值:12000
| 刻数 (Ticks) | 实际时间 |
|---|---|
12000 |
十分钟 |
24000 |
二十分钟 |
statsLoggingVerbose
控制每个统计报告中是否包含额外的详细信息。
默认值:false
启用后,报告可能包括:
- 被屏蔽的主要实体
- 规则匹配分解详情
statsLoggingToSeparateFile
控制是否也将统计信息写入专用的日志文件。
默认值:false
启用后,统计信息还将写入 logs/nottodaymob.log
屏蔽实体
blockedEntities
定义哪些实体被禁止生成。
支持:
- 精确 ID
- 命名空间通配符
- 前缀和后缀通配符
- 可选维度范围限制
示例
blockedEntities = [
"minecraft:skeleton",
"minecraft:*spider",
"alexsmobs:*",
"minecraft:zombie|dimensions=minecraft:overworld"
]
针对特定维度的作用规则
可以使用内联的 dimensions= 筛选器将规则限制在一个或多个维度中。
blockedEntities = [
"minecraft:skeleton|dimensions=minecraft:overworld",
"minecraft:blaze|dimensions=minecraft:the_nether",
"alexsmobs:*|dimensions=twilightforest:twilight_forest"
]
行为说明
- 将规则限制在指定的维度中
- 可以使用逗号分隔提供多个维度
- 如果不存在
dimensions=筛选器,则规则适用于所有维度 - 同时支持原版和模组添加的维度
- 支持精确 ID 和通配符匹配
示例
blockedEntities = [
"minecraft:zombie|dimensions=minecraft:overworld"
]
在此示例中,僵尸仅在**主世界(Overworld)**中被阻止生成,而在其他维度中不受影响。
调整自然生成频率
naturalSpawnWeightMultipliers
调整匹配实体的自然生成频率。
naturalSpawnWeightMultipliers = [
"minecraft:zombie=0.5",
"minecraft:creeper=2.5",
"minecraft:bat=0.0"
]
格式:实体或模式 = 乘数
乘数行为说明
| 乘数 | 效果 |
|---|---|
0.0 |
禁用自然生成 |
0.5 |
生成频率减半 |
1.0 |
原版行为 |
2.5 |
大约 250% 的生成频率 |
10.0 |
支持的最大乘数值 |
权重调整仅适用于自然生成。刷怪笼、指令和其他生成源不受影响。
兼容性
NotTodayMob 自动兼容以下内容:
- 模组生物和生物群系
- 自定义维度
- 由数据包驱动的生成机制
无需特殊的集成配置。
问题反馈
如果您遇到与其他模组的兼容性问题,请通过项目的问题追踪器进行报告,以便进行调查。
Designed with simplicity and performance in mind, NotTodayMob provides configurable control over mob spawning without modifying world generation definitions or biome data. Individual mobs — or entire namespaces — can be blocked entirely, or have their natural spawn frequency increased or reduced using straightforward configuration.
NotTodayMob is intended for modpack creators and server administrators who want predictable, lightweight control over mob behaviour without complex datapacks or scripting.
All changes are applied at runtime and work automatically with modded mobs, modded biomes, and custom dimensions.
When unwanted mobs try to spawn, the answer is simple: not today.
Latest Update - Version 1.0.4
NotTodayMob now includes optional support for controlling baby variants.
The new blockBabyVariants setting allows pack creators and server administrators to decide whether baby versions of blocked entities should also be prevented from spawning.
Features
- Block specific mob spawning
- Adjust natural spawn frequency using configurable weight multipliers
- Optionally replace/remove matching spawners during chunk loading
- Automatically removes spawn eggs and spawners from player inventories/in world
- Additional fine-grained control for baby variants with support for vanilla and modded mobs that expose baby/adult state through standard Minecraft entity behaviour
- Supports exact IDs and wildcard matching including dimension-specific rule scoping
- Periodic performance statistics logging
- Works automatically with modded mobs and biomes
- No biome or world generation changes required
- Lightweight and safe for large modpacks
- Server and multiplayer friendly
Note
On Forge 1.20.1 and NeoForge 1.21.1, matching spawners are first replaced with an inert spawner before being safely removed on a later chunk load.
This staged removal avoids chunk-loading warnings caused by removing block entities too early during world generation.
Typical Use Cases
- Reduce the number of specific mobs in survival gameplay
- Increase the presence of certain creatures in themed worlds
- Disable problematic or unwanted modded mobs
- Balance mob populations in large modpacks
- Fine-tune difficulty without editing datapacks
Configuration Guide
NotTodayMob is configured using a small set of server-side settings designed to be predictable and easy to understand. Changes can be made at any time and will apply automatically after restart or reload.
Core Behaviour
blockEntitiesEnabled
Controls whether matching entities are prevented from spawning.
Default: true
If disabled, all entity blocking rules are ignored.
blockBabyVariants
Controls whether baby variants of blocked entities are also blocked.
Default: true
If disabled, baby variants will still spawn even when the adult equivalents are blocked.
World-Generated Spawner Handling
worldgenSpawnerRemoval
Controls whether matching world-generated spawners are removed or replaced during chunk loading.
Default: true
If enabled, matching spawners will be:
- Replaced using
worldgenSpawnerReplacements, or - Removed if no valid replacement is defined
If disabled, world-generated spawners remain unchanged.
worldgenSpawnerReplacements
worldgenSpawnerReplacements = [
"minecraft:zombie"
]
Behaviour
- Applies only to world-generated spawners (e.g. dungeons, structures)
- Only accepts exact entity IDs
- Replacement occurs automatically when a chunk is generated or loaded
- Multiple entries can be provided as fallbacks
- If no valid replacement is defined, the spawner is removed instead
- Existing worlds will be updated as chunks are loaded
Example
blockedEntities = [
"minecraft:skeleton",
"minecraft:*spider"
]
worldgenSpawnerReplacements = [
"minecraft:zombie"
]
Here, skeleton or spider spawners found during chunk loading will become zombie spawners
Spawner and Spawn Egg Controls
suppressBlockedEntitySpawners
Controls whether matching spawners are blocked from use.
Default: true
If disabled:
- Spawners remain usable
- Entity spawning behaviour still follows blocking rules
suppressBlockedEntitySpawnEggs
Controls whether matching spawn eggs are blocked from use.
Default: true
If disabled:
- Spawn eggs can still be used
- Entity spawning behaviour still follows blocking rules
Inventory and Item Cleanup
cleanupDroppedItems
Controls whether spawn eggs and spawners for blocked entities are removed immediately when dropped into the world.
Default: true
Disable this if you want blocked items to exist but still prevent spawning.
inventoryCleanupIntervalTicks
Controls how often (in ticks) player inventories are checked for blocked spawn eggs and spawners.
Default: 10
| Ticks | Actual Time |
|---|---|
10 |
Half a second |
20 |
One second |
Higher values reduce overhead but delay cleanup.
enableStatsLogging
Controls whether periodic NotTodayMob summary statistics are written to the server log.
Default: false
statsLoggingIntervalTicks
Controls how often (in ticks) summary statistics are logged.
Default: 12000
| Ticks | Actual Time |
|---|---|
12000 |
Ten minutes |
24000 |
Twenty minutes |
statsLoggingVerbose
Controls whether additional detail is included in each statistics report.
Default: false
When enabled, reports may include:
- Top blocked entities
- Rule match breakdowns
statsLoggingToSeparateFile
Controls whether statistics are also written to a dedicated log file.
Default: false
When enabled, statistics will also be written to logs/nottodaymob.log
Blocking Entities
blockedEntities
Defines which entities are prevented from spawning.
Supports:
- Exact IDs
- Namespace wildcards
- Prefix and suffix wildcards
- Optional dimension scoping
Examples
blockedEntities = [
"minecraft:skeleton",
"minecraft:*spider",
"alexsmobs:*",
"minecraft:zombie|dimensions=minecraft:overworld"
]
Scope Rules to Specific Dimensions
Rules can optionally be limited to one or more dimensions using inline dimensions= filtering.
blockedEntities = [
"minecraft:skeleton|dimensions=minecraft:overworld",
"minecraft:blaze|dimensions=minecraft:the_nether",
"alexsmobs:*|dimensions=twilightforest:twilight_forest"
]
Behaviour
- Limits the rule to the specified dimension(s)
- Multiple dimensions can be provided using commas
- If no
dimensions=filter is present, the rule applies to all dimensions - Works with both vanilla and modded dimensions
- Supports exact IDs and wildcard matching
Example
blockedEntities = [
"minecraft:zombie|dimensions=minecraft:overworld"
]
Here, zombies are blocked only in the Overworld, while remaining unaffected in other dimensions.
Adjusting Natural Spawn Frequency
naturalSpawnWeightMultipliers
Adjusts natural spawn frequency for matching entities.
naturalSpawnWeightMultipliers = [
"minecraft:zombie=0.5",
"minecraft:creeper=2.5",
"minecraft:bat=0.0"
]
Format: entity_or_pattern = multiplier
Multiplier Behaviour
| Multiplier | Effect |
|---|---|
0.0 |
Disables natural spawning |
0.5 |
Half as common |
1.0 |
Vanilla behaviour |
2.5 |
Roughly 250% spawn frequency |
10.0 |
Maximum supported multiplier |
Weight adjustments apply only to natural spawning. Spawner, command, and other spawn sources are unaffected.
Compatibility
NotTodayMob works automatically with:
- Modded mobs and biomes
- Custom dimensions
- Datapack-driven spawning
No special integration is required.
Reporting Issues
If you encounter a compatibility issue with another mod, please report it via the project issue tracker so it can be investigated.
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
下载 NotTodayMod
[1.0.4] - 2026-04-25
新增
- 为幼体变体添加了细粒度控制,支持通过标准 Minecraft 实体行为暴露幼年/成年状态的原版和模组生物
更改
修复
- 修复了在服务器启动期间可能跳过排队的世界生成刷怪笼的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧