NoMobsThankYou
防止不需要的生物在你的 Minecraft 世界中生成。通过 JSON 文件进行配置。
需要 OP(管理员权限)才能使用命令。
⚡ 功能
- 4 种预设:
disableAllMobs、onlyVillagers、disableVillagers、disableBosses
- 覆盖列表:支持通配符添加或保留特定生物(
namespace:*、modid:* 以及全局 *)
- 总开关:设置
enabled: false 即可禁用所有拦截,无需删除配置文件
- 运行时重载:更改配置后无需重启服务器
? 命令
| 命令 |
描述 |
/nmt reload |
从磁盘重新加载配置 |
/nmt status |
显示当前配置状态 |
/nmt clean presets |
将预设重置为默认值(自动重载) |
/nmt clean list |
清除覆盖移除和保留列表(自动重载) |
/nmt open presets |
打开预设配置文件 |
/nmt open list |
打开覆盖列表配置文件 |
⚙️ 配置
config/ 目录下的两个 JSON 文件:
预设文件:nomobsthankyou-presets.json
每次仅启用一个预设。如果多个预设同时设为 true,则都不会生效。
{
"enabled": true,
"disableAllMobs": false,
"onlyVillagers": false,
"disableVillagers": false,
"disableBosses": false
}
enabled 是可选的:如果省略或设为 null,则默认为 true。将其设置为 false 可禁用预设和覆盖项,而无需删除你的配置。
| 预设 |
拦截内容 |
disableAllMobs |
所有生物(敌对、中立、环境、水生)+ 村民以及铁傀儡/雪傀儡/铜傀儡。 |
onlyVillagers |
与 disableAllMobs 相同,但保留村民和流浪商人。 |
disableVillagers |
仅限村民和流浪商人。 |
disableBosses |
凋灵、末影龙和远古守卫者。 |
注意: 无效的 JSON 或值将重置为默认值。
覆盖文件:nomobsthankyou-overrides.json
添加或保留特定实体。支持通配符(minecraft:*、modid:*)和全局 *:
{
"remove": ["minecraft:creeper", "minecraft:*"],
"keep": ["minecraft:villager", "minecraft:wandering_trader"]
}
覆盖项会在当前激活的预设之上应用。
remove 中的 * 会阻止所有生物,但仍会排除 MobCategory.MISC 类别的实体(如物品、船只等)。如果你想拦截特定的 MISC 实体,请使用精确 ID。keep 中的 * 允许一切生成。
注意: 无效的 JSON 或值将重置为默认值。
? 要求
Fabric
- Fabric API
- (+26.X) Java 25 或更高版本
NeoForge
? 建议与问题
如果你有想法、建议或发现了 Bug,欢迎在 CurseForge 页面留言或在 GitHub 仓库中提交 Issue。
❓ 常见问题
我可以在公共整合包中使用此模组吗?
当然!你可以自由地将其包含在任何公开或私有的整合包中,无需获得许可。
? 许可证
本项目采用 MIT 许可证授权。
NoMobsThankYou
Prevents unwanted mobs from spawning in your Minecraft world. Configure via JSON files.
OP needed for commands.
⚡ Features
- 4 presets:
disableAllMobs, onlyVillagers, disableVillagers, disableBosses
- Override lists: add or keep specific mobs with wildcard support (
namespace:*, modid:*, and global *)
- Master switch: disable all blocking with
enabled: false without deleting your config
- Runtime reload: change config without restarting the server
? Commands
| Command |
Description |
/nmt reload |
Reload config from disk |
/nmt status |
Show current config status |
/nmt clean presets |
Reset presets to defaults (auto-reload) |
/nmt clean list |
Clear override remove and keep lists (auto-reload) |
/nmt open presets |
Open presets config file |
/nmt open list |
Open override lists config file |
⚙️ Configuration
Two JSON files in config/:
Presets file: nomobsthankyou-presets.json
Enable exactly one preset at a time. If more than one is true, none will be applied.
{
"enabled": true,
"disableAllMobs": false,
"onlyVillagers": false,
"disableVillagers": false,
"disableBosses": false
}
enabled is optional: if omitted or null, it defaults to true. Set it to false to disable presets and overrides without deleting your configuration.
| Preset |
Blocks |
disableAllMobs |
All mobs (hostile, passive, ambient, water) + villagers and iron/snow/copper golems. |
onlyVillagers |
Same as disableAllMobs, but villagers and wandering traders are preserved. |
disableVillagers |
Villagers and wandering traders only. |
disableBosses |
Wither, Ender Dragon, and Elder Guardian. |
Note: Invalid JSON or values will reset to defaults.
Overrides file: nomobsthankyou-overrides.json
Add or keep specific entities. Supports wildcards (minecraft:*, modid:*) and global *:
{
"remove": ["minecraft:creeper", "minecraft:*"],
"keep": ["minecraft:villager", "minecraft:wandering_trader"]
}
Overrides are applied on top of the active preset.
* in remove blocks all mobs while still excluding MobCategory.MISC entities (items, boats, etc.). Use exact ids if you want to block a specific MISC entity. * in keep allows everything.
Note: Invalid JSON or values will reset to defaults.
? Requirements
Fabric
- Fabric API
- (+26.X) Java 25 or newer
NeoForge
? Suggestions & Issues
If you have an idea, a suggestion, or found a bug, feel free to leave a comment on the CurseForge page or open an issue on the GitHub repository.
❓ FAQ
Can I use this mod in a public modpack?
Yes! You're free to include it in any public or private modpack, no permission needed.
? License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧