《Minecraft》中的刷怪塔是玩家建造的设施,用于在特定区域大量生成怪物,以便击杀它们获取物品和经验值。这些设施可以通过刷怪笼建造,也可以利用低光照条件下的自然生成机制实现。这可能会导致服务器卡顿,尤其是当怪物长期积累时;坦率地说,这也是快速获取大量经验和物品的简便方法。如果您不希望出现卡顿或不想让游戏过于简单,可以使用本插件禁用这两种类型的刷怪塔。
该插件通过监控每个区块中不同种类怪物的生成数量,并根据配置 YAML 文件中设定的速率限制其上限。默认上限为每小时 16 次生成。这不应影响怪物的自然生成速率,但应能防止怪物被人为地更频繁地生成。
支持完全自定义,包括为所有已知的生成原因设置单独的生成速率、更改时间间隔和每次生成的最大数量,以及更改全局和各个世界的生成速率。
- 将每个区块内怪物的生成速率限制给定时间段内的最大数量
- 不同世界可以有不同的速率
- 不同类型的生成(如刷怪笼、繁殖、自然生成等)可以有不同的速率
- 可以在运行前通过配置文件或在运行时通过命令设置速率
- 减少或消除由刷怪塔引起的卡顿
- 重写以使其基于规则,允许为相同类型的生成在不同间隔和数量下设置多条规则
查看源代码或在 Github 上贡献项目。
| 命令 |
描述 |
| /SetMobSpawnRate [最大生成数] [间隔] |
将全服务器的默认生成速率设置为给定时间间隔(整分钟)内的最大生成次数 |
| /SetMobSpawnRate [生成原因] [最大生成数] [间隔] |
将全服务器针对特定生成原因的默认生成速率设置为给定时间间隔(整分钟)内的最大生成次数 |
| /SetMobSpawnRate [世界] [最大生成数] [间隔] |
将指定世界的默认生成速率设置为给定时间间隔(整分钟)内的最大生成次数 |
| /SetMobSpawnRate [世界] [生成原因] [最大生成数] [间隔] |
将指定世界中针对特定生成原因的生成速率设置为给定时间间隔(整分钟)内的最大生成次数 |
- throttlemobspawn.setmobspawnrate (默认 op) - 允许使用 SetMobSpawnRate 命令
请参阅
此插件使用 Java 7
如果在安装此插件启动服务器时出现以下错误:“Unsupported major.minor version 51.0”,这意味着您使用的是过时的 Java 版本。如果您不知道如何升级,请联系您的服务器托管提供商请求帮助升级到 Java 7,或联系 Oracle 客户支持。Mac OS X 用户需要 JDK 7 而不是 JRE 7。
如果您希望支持本项目的持续开发、支持和维护,请考虑加入我的 Patreon 页面,并做出一次性或定期捐款。
如果您需要帮助,可以在下方留言,我会尽快回复您。您也可以使用以下链接加入我的 IRC 聊天室。请注意,我不一定时刻在线!
Mob grinders in Minecraft are player-created structures that cause a large amount of mobs to spawn in one area so that they can be killed for items and experience. These can be built using mob spawners, or just general spawning due to low light levels. This can cause lag, especially if left to build up for long periods, and is quite frankly a very easy way of getting large amounts of experience and items. If you don't want lag or don't want to make the game too easy, you can disable both kinds of mob grinders using this plugin.
It works by monitoring the number of spawns per chunk of different kinds, and capping them at a given rates, as set in its config YAML. The default cap is 16 spawns per hour. This should not affect the natural spawning rates of mobs, but it should prevent mobs from being artificially caused to spawn more often.
Full customisation is possible, including setting individual spawn rates for all known causes, changing the time interval and max spawns per cap and changing the global and individual spawn rates per world.
- Caps the spawn rate of mobs to a maximum number in a given time frame per chunk
- Different worlds can have different rates
- Different types of spawning can have different rates e.g. Spawner, Breeding, Natural etc
- Rates are settable in the config file before running or in a command while running
- Reduces or eliminates lag caused by mob grinders
- Rewrite to make it rule-based, where you can set up multiple rules for the same type of spawn at different intervals and amounts
View the source code or contribute to the project on Github.
| Command |
Description |
| /SetMobSpawnRate [max spawns] [interval] |
Sets the server-wide default spawn rate to a maximum number of spawns in a time interval in whole minutes |
| /SetMobSpawnRate [spawn reason] [max spawns] [interval] |
Sets the server-wide default spawn rate for a specific spawn reason to a maximum number of spawns in a time interval in whole minutes |
| /SetMobSpawnRate [world] [max spawns] [interval] |
Sets the default spawn rate for a given world to a maximum number of spawns in a time interval in whole minutes |
| /SetMobSpawnRate [world] [spawn reason] [max spawns] [interval] |
Sets the spawn rate for a specific spawn reason within a given world to a maximum number of spawns in a time interval in whole minutes |
- throttlemobspawn.setmobspawnrate (default op) - Allows use of the SetMobSpawnRate command
See
This plugin uses Java 7
If you get the followed error on starting up the server with this plugin installed "Unsupported major.minor version 51.0". This means you are using an out of date version of Java. If you don't know how to upgrade, please contact your server hosting provider and ask them for help in upgrading to Java 7, or contact Oracle customer support. Mac OS X users require JDK 7 instead of JRE 7.
If you'd like to contribute towards the continued development, support and maintenance of this project, please consider joining me on Patreon, and making a one-time or recurring pledge.
If you need help you can leave a comment below and I will get back to you as soon as I can. You can also join my IRC chatroom using the following link. Please note, I am not always at my keyboard!
评论 0
登录后参与评分
还没有评论,来抢沙发吧