MobFilter
MobFilter 是一款 Minecraft 模组,允许你限制世界中生物(Mobs)的生成。你可以使用它来:
- 完全阻止特定生物生成
- 在世界中创建禁止生物生成的安全区域
- 将生物生成限制在特定的生物群系、时间段或光照等级下
- 支持 Fabric 和 NeoForge
- ……以及更多功能
现已支持 NeoForge!
使用方法
MobFilter 使用灵活的基于规则的过滤系统,你需要对其进行配置。当 Minecraft 尝试生成新生物时,MobFilter 会检查你提供的规则,判断是否应“否决”此次生成。
首次安装 MobFilter 并运行 Minecraft 时,会在你的 Minecraft 安装目录下的 config 文件夹中创建两个空的配置文件:mobfilter.simple 和 mobfilter.json5。
简单配置 (mobfilter.simple)
仅在版本 0.19.0+1.21.7 及更高版本中可用。
如果你只想从游戏中移除某些生物,请编辑 mobfilter.simple 并添加一个你想要禁止生成的生物 ID 列表:
# 我再也不想看到这些生物了:
minecraft:creeper
minecraft:phantom
minecraft:silverfish
你也可以使用否定符和通配符来过滤掉命名空间中的大部分或全部生物:
# 我喜欢猫,所以不要过滤它们...
!minecraft:cat
# ...但我不想让任何其他原版生物生成
minecraft:*
更多详情请参阅 文档。
高级配置 (mobfilter.json5)
如果你需要对生物生成进行更细致的控制,可以改为编辑 mobfilter.json5。此文件的配置稍复杂一些,但它允许你的过滤逻辑测试更复杂的条件,包括:
- 方块位置
- 地点(生物群系、世界、维度、方块ID)
- 生物类型(实体ID 或 生成组)
- 一天中的时间
- 光照等级
- 月相
例如,如果你想阻止敌对生物在特定区域生成,可以添加如下规则:
{
rules : [
{
name : "Safe Zone",
what : 'DISALLOW_SPAWN',
when : {
category : [ 'MONSTER' ],
dimensionId : [ 'minecraft:overworld' ],
blockX: [ -128, 234 ],
blockY : [ 63, 'MAX' ],
blockZ : [ -321, 512 ]
}
}
]
}
更多详情请参阅 文档。
为什么制作这个模组?
我制作这个模组是因为我想和我的女儿一起玩生存模式的 Minecraft,这意味着我们需要在基地周围有一个没有生物的区域。市面上有许多其他模组可以管理生物生成,但没有一个能完全满足我的需求。
向后移植?
原则上,除非涉及关键安全问题,否则我不会进行向后移植。把每个模组功能向后移植到每一个旧版本实在太繁琐了。但如果你愿意自己制作,我很乐意接受你的 PR。
法律声明
本模组根据 MIT 许可证 发布。
你可以在整合包中包含此模组,但需注明作者为 pcal.net。
有问题?
如果你对这个模组有任何疑问,请加入 Discord 服务器:
MobFilter
MobFilter is a Minecraft mod that allows you to limit spawning of mobs in your world. You can use it to
- Completely prevent particular mobs from ever spawning
- Create safe zones in your world where mobs aren't allowed to spawn.
- Limit mob spawning to specific biomes, times, or light levels
- Fabric and NeoForge support
- ...and more
Now with NeoForge support!
Usage
MobFilter uses a flexible, rule-based filtering system that you configure. When Minecraft wants to spawn a new mob, MobFilter checks the rules you provide to see if the spawn should be 'vetoed.'
The first time you run Minecraft with MobFilter installed, two empty
configuration files will be created in the config directory of your
minecraft installation: mobfilter.simple and mobfilter.json5.
Simple Configuration (mobfilter.simple)
Only available in versions 0.19.0+1.21.7 and later.
If you just want to remove some mobs from the game, edit
mobfilter.simple and add a list of the
mob ids that you want to prevent spawning:
# I never want to see these mobs again:
minecraft:creeper
minecraft:phantom
minecraft:silverfish
You can also use negations and wildcards to filter out most or all of the mobs in a namespace:
# I love cats, so don't filter them...
!minecraft:cat
# ...but I don't want ANY other vanilla mobs
minecraft:*
See the documentation for more details.
Advanced Configuration (mobfilter.json5)
If you need more detailed control over mob spawning, you can instead edit
mobfilter.json5. This file is a bit more
complicated to configure but it allows your filtering logic to test for more
complicated conditions, including:
- Block Position
- Location (Biome, World, Dimension, BlockId)
- Mob Type (EntiyId or SpawnGroup)
- Time of Day
- Light Level
- Phase of moon
For example, if you want to prevent hostile mobs from spawning in a specific area, you could add a rule like this:
{
rules : [
{
name : "Safe Zone",
what : 'DISALLOW_SPAWN',
when : {
category : [ 'MONSTER' ],
dimensionId : [ 'minecraft:overworld' ],
blockX: [ -128, 234 ],
blockY : [ 63, 'MAX' ],
blockZ : [ -321, 512 ]
}
}
]
}
See the documentation for more details.
Why This Mod?
I wrote this mod because I wanted to be able to be able to play survival minecraft with my daughter, and that meant we had to have a mob-free area around our base. There are numerous other mods out there that manage mob spawning but none of them did quite what I needed them to do.
Backports?
As a rule, I don't do backports unless critical security issues are involved. It's just too much tedious work to backport every mod feature to every old version. But I'm happy to accept PRs if you want to do one yourself.
Legal
This mod is published under the MIT License.
You're free to include this mod in your modpack provided you attribute it to pcal.net.
Questions?
If you have questions about this mod, please join the Discord server:
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
下载 Mob Filter
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧