autonomous-minecarts
A fabric mod which allows minecarts to autonomously load chunks.
介绍
Autonomous minecarts
The autonomous minecarts mod allows minecarts to load chunks independently of the player. This allows players to send minecarts over long distances without having to worry about them stopping when they reach the edge of the loaded area.
It works by identifying moving minecarts and adding them to a list of “active” carts. Active carts are each given a chunk ticket which follows the minecart and loads a small number of chunks surrounding it. If a cart stops moving it becomes “inactive” and the chunk ticket is removed after a few minutes.
_Note regarding dimensions: In minecraft versions prior to 1.21.11, dimensions will only tick when a player is present or there are force loaded chunks present. If you are using a version prior to 1.21.11 and want this mod to work in dimensions where no players are present, you will need to force load at least one chunk somewhere in each of those dimensions._
What about performance?
By default, the mod loads only a 3×3 area of entity processing chunks around each active minecart. Server load should be pretty negligible.
Server administrators should be aware though that this mod may be abused by players to create chunk loaders. For this reason, it’s probably best used in single player worlds or on small private servers only.
Configuration
The mod comes sensibly configured out of the box, but can also be customized by users. Configuration can be found under .minecraft/config/, or if installed on a dedicated server, then under <server-root>/config/.
Basic config options:
idleTimeoutTicks– How long minecarts should remain loaded once they become inactive. Defaults to 6000 ticks (5 minutes).idleThreshold– The threshold velocity in blocks per tick above which a cart will be considered active. Defaults to 0.2 or 4 blocks per second (half the maximum cart speed in vanilla minecraft).chunkLoadRadius– How large an area to load surrounding each minecart in chunks. Defaults to 2 for a 3×3 area.ticketDuration– Duration of chunk tickets created by the mod in ticks. Defaults to 60 (3 seconds).
Advanced configuration options:
The mod implements a mechanism for preventing carts which are moving but not going anywhere (e.g. are on small circular tracks), from loading chunks indefinitely.
This mechanism works by calculating an exponental moving average of the cart position over time and comparing it to the current position of the cart. If the cart stays close to its average position, then it will be considered inactive and will eventually be unloaded as if it were stationary, in accordance with idleTimeoutTicks.
This behavior is controlled by the following configuration options:
positionAverageFactor– Smoothing factor for the exponential moving average of cart position. Larger values mean a longer average.positionAverageDistance– Distance threshold for moving cart rejection. This controls the distance in blocks that the cart must be from it’s average position to be considered “active”.
WARNING
Improper configuration of these last two options may lead to carts remaining loaded in perpetuity, or carts not loading at all. Configure at your own risk!
That’s all, enjoy!
常见问题
autonomous-minecarts 支持哪些 Minecraft 版本?
autonomous-minecarts 支持 Minecraft Java 版 1.20.4–26.3,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
autonomous-minecarts 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分