Fix MySpawnR !
可用版本:
NeoForge
Fabric
FixMySpawnR 声称能减少由刷怪笼(mobspawners)引起的约一半的 TPS 延迟。
许多模组添加了地牢、洞穴以及包含刷怪笼的趣味内容,但刷怪笼对服务器逻辑的压力相当大。它们会扫描大片区域以寻找玩家和生成怪物的位置。如果玩家在所在区块加载了这些刷怪笼,服务器每帧可能会迅速承受不必要的额外负载。
本模组旨在解决这一问题。
FixMySpawnR 做了什么?
FixMySpawnR 为刷怪笼添加了一个死锁计时器,防止其执行任何生成逻辑,从而释放宝贵的计算资源供其他逻辑运行!
关于农场呢??
1.18
如果在刷怪笼上方放置了强度大于或等于 8 的红石信号(如充能的红石粉、红石火把、红石块等),则刷怪笼将恢复正常功能。
推荐的方式是使用红石粉和拉杆。这种方式发出的光线最少。
1.19
如果有强度大于或等于 8 的红石信号输入到刷怪笼中,则刷怪笼将恢复正常功能。这包括刷怪笼下方的火把、侧面的拉杆等。
当刷怪笼获得能量供应时,它将恢复正常功能。
推荐使用拉杆,因为这种方式不会产生任何光线,且占用空间最小。
通过这种方式,玩家仍然可以使用他们喜欢的怪物农场来自动化他们的囤积需求。
配置?
你可以在服务端配置文件配置死锁计时器。
基础计时器设置为 1 个 Minecraft 游戏日(24000 刻)。
它真的有效吗?
这是一张来自单玩家测试服务器的 TPS 和每刻毫秒数的截图。
一个 40x10x40 的刷怪笼立方体(即 16,000 个刷怪笼)在同一刻被生成。
你可以清楚地看到所有刷怪笼同时被禁用的确切时刻。

之前(无死锁,16,000 个刷怪笼)

之后(死锁生效,16,000 个刷怪笼)

该模组将刻负载减半,使每刻运行的平均毫秒数从 20 降至 10(19 降至 8),最大值从 50 降至 15(48 降至 13)。
虽然它只减少了少量的负载压力,但对于添加了包含刷怪笼结构的模组的整合包和服务器来说,长期来看肯定会有显著成效。
联系方式:
如有问题,请使用 github 上的问题追踪器。
如果你想直接与我就模组进行 1-0-1 调试或提问,欢迎加入我的 discord。
Fix My SpawnR !
available for:
NeoForge
Fabric
FixMySpawnR Claims to reduce about half of the tps lag caused by mobspawners.
A bunch of mods add dungeons and caves and fun stuff with mobspawners in them, but mobspawners are pretty heavy on server logic. they scan a big area for players and for spots to spawn mobs in. if players load these spawners in the chunks they are in, the server can quickly suffer unnecessary additional strain per tps.
This mod aims to fix that.
What Does FixMySpawnR do ?
FixMySpawnR adds a deadlock timer to mobspawners that will prevent them from running any spawning logic, and thus preventing all that precious computing space to be freed for other logics to run on !
What about farms ??
1.18
If a redstone signal is placed on top of the spawner , higher or equal to 8, (powered redstone dust, redstone torch, redstone block, ...) then the spawner will resume function as normal.
The recommended way is redstone dust and a lever. this emits the least ammount of light
1.19
If a redstone signal is driven into the spawner, higher or equal to 8, then the spawner will resume function as normal. This includes torch bellow the spawner, a lever on the side of the spawner, etc.
The spawner will resume function as normal when powered.
The recommended way is a lever, as this will produce 0 light, and occupy the least space
This way, players can still use their favourite mob farms to automate their hoarding needs.
Configuration ?
You can configure the deadlock timer in the server sided configuration file.
The base timer is 1 in game minecraft day (24000 ticks)
Does it really work ?
Here's a picture of TPS and ms per tick from a server tested with one player in.
A cube of 40x10x40 spawners (thats 16.000 spawners) has been spawned in the same tick.
You can clearly see here the exact moment all spawners get deactivated at once.

Before (no deadlock, 16.000 spawners)

After (deadlocked kicked in, 16.000 spawners)

The mod reduces the tickload by half , dropping the average millisecond a tick takes to run from 20 to 10 (19to8) and the max from 50 to 15 (48to13)
While it reduces but a small strain, it definitely will bare its fruit in the long game, for packs and servers that add mods with structures containing spawners.
contact :
for issues, please use the issue tracker on github.
if you want to speak to me directly for debugging 1-0-1 with the mod, or questions, feel free to join my discord
评论 0
登录后参与评分
还没有评论,来抢沙发吧