限制生成数量
描述
为 Moti12321 创建。此插件限制了在指定半径内可以生成的生物数量。当达到给定半径内的生成上限时,无论生成原因如何,原本应该生成的新实体都将被移除。所有配置均可通过 Config 文件进行调整。
安装信息
首次启动安装了此插件的服务端(插件位于 \plugins 文件夹中)时,插件会自动生成一个配置文件。默认情况下,半径为向各个方向延伸 50 格(总计 101 格),每个半径内的动物最大数量为 25 只。如果您希望更改半径或每个半径内的动物最大数量,可以通过配置文件编辑这些值。我已对每个路径进行了清晰标注,以尽可能方便用户操作。若要排除某些生物类型的限制,请将限制值设置为负数(例如 -1),这样插件就会跳过该类型。
更新日志
1.2:
- 增加了对更多中立生物的支持
- 增加了对敌对生物的支持
- 增加了对下界生物的支持
- 增加了对末影生物的支持
- 增加了对凋灵的支持
- 清理了代码
- 如果存在插件不支持的生物,将不再删除该生物(此前在极少数情况下会发生误删)
1.1:
- 修复了配置文件无法加载的问题。
- 添加了 /LimitSpawns reload 命令用于重新加载配置文件。玩家和控制台均可使用。
1.0:
刚刚发布。
后续计划
我仍然欢迎各种建议,如果您希望我将其他实体加入列表,请在评论区留言告诉我下一步应该添加哪种生物。
我计划添加敌对生物控制、变体实体控制(如骷髅马和驴),以及一个用于调整配置值的游戏内菜单。
在功能完善之前,我预计每周都会进行一次更新。
Limit Spawns
Description
Created for Moti12321, This plugin limits the amount of animals that can spawn in a given radius. Once the spawn limit has been reached within the given radius, no matter the spawn reason, the new entity that would have been spawned will be removed. Everything is configurable via the Config.
Installation Information
The first time you start up the server with this plugin installed in the \plugins folder, the plugin will create a config file. Naturally, the radius is 50 blocks in every direction (totaling up to 101 blocks) and the amount of animals per radius is 25. If you wish to change the radius or the max amount of animals per radius, you can edit the values via the config. I have clearly labeled each path to make it as user friendly as possible. To exclude limitations to certain creature types, set the limit to a negative number (e.g. -1), which will let the plugin know to skip.
ChangeLog
1.2:
- Added more Neutural Mob Support
- Added Hostile Mob Support
- Added Nether-Mob Support
- Added Ender- Mob Support
- Added Wither Support
- Clean up code
- If there is a mob not supported by the plugin, It will no longer delete the mob (happened on rare occasions)
1.1:
- Fixed config not loading.
- Added /LimitSpawns reload to reload the config. Can be accessed by player and console.
1.0:
Just released.
Updates
I am still open to suggestions, so if you want me to include other entities to the list, post in the comments which mob I should add next.
I am planning on adding hostile mob control, variant Entity control such as skeleton horses and donkeys, and an in-game Menu for adjusting the config values.
I should be updating this once a week until it is complete.
评论 0
登录后参与评分
还没有评论,来抢沙发吧