TNTQueue
这是一款防止大量已点燃的 TNT 导致服务器严重卡顿的模组。 它通过限制同时存在的 TNT 实体数量来实现这一目标。
当活跃的 TNT 数量超过配置的限制时,额外的 TNT 会被放入队列中,并在稍后激活,从而确保爆炸规模可控,不会压垮服务器。
警告:这可能会破坏原版 TNT 的行为,因为其生成逻辑已发生改变。
配置
该模组提供两个可配置的选项,可以通过手动编辑配置文件或在游戏内使用命令进行调整:
-
maxPrimedTntAmount: — 允许同时存在的已点燃 TNT 实体的最大数量。 -
maxQueueSize: — 队列中可以存储的 TNT 实体的最大数量。
⚠️ 默认值为任意设定,应根据您特定的服务器设置进行调整。 本模组的意图是阻止可能导致服务器冻结的 TNT 使用量。
您可以使用以下命令在游戏内调整配置:
/tntqueue <option> <value>
需要 tntqueue.modify 权限或 OP 权限。
示例中的限制为最多 3 个 TNT。

TNTQueue
This a mod that prevents excessive server lag caused by large amounts of primed TNT. It does this by limiting the number of TNT entities that can be active at the same time.
When the active TNT count exceeds the configured limit, additional TNT is placed into a queue and activated later, ensuring explosions remain manageable without overwhelming the server.
Warning: this may break the vanilla behavior of TNT, as the logic of its spawn has changed.
Configuration
The mod provides two configurable options, which can be adjusted either manually in the config file or via an in-game command:
-
maxPrimedTntAmount: — The maximum number of primed TNT entities allowed to exist simultaneously. -
maxQueueSize: — The maximum number of TNT entities that can be stored in the queue.
⚠️ Default values are arbitrary and should be tuned for your specific server setup. The intention of the mod is to block TNT usage at levels that could otherwise cause the server to freeze.
You can adjust the configuration in-game using the command:
/tntqueue <option> <value>
Requires the tntqueue.modify permission or op.
In the example limit is up to 3 tnt.

下载 TNTQueue
下载 TNTQueue
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TNTQueue
下载 TNTQueue
下载 TNTQueue
下载 TNTQueue
更新至 1.21.9
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
缓冲的原始输入和线程化的事件轮询
评论 0
登录后参与评分
还没有评论,来抢沙发吧