此模组允许你阻止生物生成。
在此模组中,我设置了以下判定条件:
- 生物群系
- 实体类型(僵尸、骷髅、蝙蝠等)
- 实体分类(怪物、生物、水生生物、水下生物等)
- 维度(主世界、下界、末地)
- 位置(x、y、z 坐标)
- 生成原因(自然生成、刷怪笼、刷怪蛋等)
- 光照等级
你可以通过组合这些条件来制定自定义规则。
可以通过命令添加或删除规则:
- /limitmobspawn query
- /limitmobspawn add
- /limitmobspawn remove
若要更改默认刷怪笼生成的生物数量,请执行此操作(仅支持 1.18):
- /limitmobspawn spawner spawnCount <new count>
若要更改可新生成生物数量的上限,请执行此操作:
- /limitmobspawn category_limit set <category> <limit>
以下是原版中的默认值:
- Monster: 70
- Creature: 10
- Ambient(bats): 15
- Axolotls: 5
地下水生生物:5
水生生物:5
环境水生生物:20
要添加规则,请制作数据包。在数据包中,创建“limit-mob-spawn”目录,并将规则文件(json)放置在该目录中。有关数据包的更多详细信息,请参阅 官方 Wiki 。
每个世界的数据包
└─pack.mcdata
└─data
└─(命名空间)
└─limitmobspawn
└─demo1.json
└─其他规则文件
点击以下链接查看示例规则。
1.16.5: 此处
1.17.1:此处
1.19.2 示例数据包
请参阅此页面以查看更新日志。
This mod allows you to prevent mobs from being spawned.
In this mod, I created these conditions.
- Biome
- Entity type (zombie, skeleton, bat, etc.)
- Entity classification (Monster, Creature, Water Creature, Water Ambient, etc.)
- Dimension (over world, nether, the end)
- Position (x, y, z coordinate)
- Spawn reason (natural, spawner, spawn egg, etc.)
- Light level
You can make own rule by combining the conditions.
Rules can be added/removed via command.
- /limitmobspawn query
- /limitmobspawn add
- /limitmobspawn remove
To change the number of mobs spawned from default Monster Spawner, execute this(1.18 only)
- /limitmobspawn spawner spawnCount <new count>
To change the limit of numbers of mobs which can newly spawn, execute this.
- /limitmobspawn category_limit set <category> <limit>
These are the default values in vanilla.
- Monster: 70
- Creature: 10
- Ambient(bats): 15
- Axolotls: 5
- Underground Water Creature: 5
- Water Creature: 5
- Water Ambient: 20
To add rules, make data pack. In the data pack, create "limit-mob-spawn" directory and place rule file(json) in the dir. See Official Wiki for more detail of data pack.
datapacks in each world
└─pack.mcdata
└─data
└─(name space)
└─limitmobspawn
└─demo1.json
└─other rule files
Follow these link to see example rules.
1.16.5: this
1.17.1: this
1.19.2 Example Datapack
See this page for change log.
评论 0
登录后参与评分
还没有评论,来抢沙发吧