作者:rebot | 分类:模组
Minecraft 版本: 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8
平台: fabric forge neoforge quilt
标签: game-mechanics management utility
To enable AFK detection feature, Detect AFK Players must be installed.
When nobody's on a Minecraft server, the in-game time still increases. This means you can't track the number of days played, and the local difficulty will also increase. That's not a concern for servers that have players online almost constantly, but for small/medium sized servers, this is a problem.
This is a very light-weight data pack to prevent game time from increasing when nobody's online or when every player online is tagged as afk, without pausing the server itself so that automatic farms can continue to run.
There are already a few mods and data packs that do the same thing as this one, but none of them did quite what I need:
Even with the introduction of the server property pause-when-empty-seconds, the issue of AFK players increasing game time is not solved, and spawn chunks will not be ticked while paused, which you may or may not want.
When nobody is online or all online players are tagged as afk (see Detect AFK Players) the following gamerules will be set to false:
doDaylightCycledoWeatherCycledoMobSpawning is not changed because it allows automatic farms in spawn chunks or manually loaded chunks to function with nobody present.
Note: If one of the gamerules is already set to false while the time isn't paused, that gamerule will not be changed - this pack respects your options!
This datapack provides two function tags: pause_day_cycle:pause and pause_day_cycle:resume. These will be called when the day cycle is paused and resumed. Below is an extremely simple example of an add-on data pack that uses these tags to log to the server when the day cycle is paused.
{ "values": ["announce:pause"] }
say Day cycle has been paused请登录后举报
暂无评论,抢个沙发吧~