
MinecartsLoadChunks
Minecarts load terrain around them instead of getting stuck at the borders of unloaded chunks.
- Загрузки
- 2K
- Подписчики
- 34
- Обновлён
- 17 октября 2025 г.
- Лицензия
- MIT
Опубликован 2 февраля 2025 г.
Minecarts Load Chunks Mod
A Fabric mod that prevents minecarts from getting stuck at unloaded chunk borders by automatically loading chunks as the minecarts travel. It works with all minecart types: regular, chest, furnace, and hopper carts, ensuring smooth and uninterrupted transportation across your Minecraft world.
Features
- Automatic Chunk Loading: Loads a 3x3 grid of chunks around any moving minecart to prevent chunk border issues.
- Supports All Minecart Types: Works with regular minecarts, chest minecarts, furnace minecarts, and hopper minecarts.
- Tick-Based Expiry: Chunks remain loaded for 30 seconds (600 ticks) after the minecart leaves. This can be changed in the configuration file.
- Persistent Chunk Data: Loaded chunks are saved on a per-world basis and restored when the server restarts, preventing stranded minecarts even through server reboots.
How It Works
- The mod scans for all minecarts (regular, chest, furnace, and hopper carts) every server tick.
- When a minecart is detected with nonzero velocity, it records the tick and forces a 3x3 grid of chunks around the minecart’s position to be loaded.
- The chunks remain loaded for 30 seconds (600 ticks).
- Persistent storage: The chunk data is saved to each world’s save directory and restored when the world is reloaded, preventing stranded minecarts.
Configuration
The mod uses a JSON configuration file (config/minecartsloadchunks.json) to allow you to customize its behavior. You can modify the settings to suit your needs. Here’s what each configuration option does:
General Settings
loadChunks- Enables or disables the mod entirely. Set this tofalseto disable the mod without removing it. (Default:true)spamConsole- Enables detailed logging in the console every second for debugging purposes. (Default:false)
Chunk Loading Durations
cartLoadDuration- Specifies how long (in seconds) each chunk remains loaded after a minecart passes through. (Default:30)movementDuration- Defines how long (in seconds) a chunk stays loaded after a minecart stops moving. (Default:10)
Minecart Type Settings
These settings determine which minecart types can load chunks. Set to true to enable chunk loading for specific minecart types:
loadMinecarts– Standard minecarts (Default:true)loadFurnaceMinecarts– Furnace minecarts (Default:true)loadChestMinecarts– Chest minecarts (Default:true)loadHopperMinecarts– Hopper minecarts (Default:true)loadTntMinecarts– TNT minecarts (Default:false)loadCommandBlockMinecarts– Command block minecarts (Default:false, disabled to prevent unintended behavior)
Contributing
Feel free to contribute to this project by:
- Reporting issues
- Submitting pull requests
- Requesting new features
License
This mod is available under the MIT License.
Credits
- Developed by Dylan
- Special thanks to the Minecraft and Fabric communities for making modding such a joy.
- Github
Ченджлог
1.1Релиз1.21.7 · 17 октября 2025 г.
Updated to 1.21.7. Will continue through to the latest version this month.
1.1Релиз1.21.6 · 15 октября 2025 г.
Updated for minecraft 1.21.6. Will progress through to the latest version of minecraft this month.
1.1Релиз1.21.5 · 13 апреля 2025 г.
Updated for 1.21.5
1.21.4-1.1-BetaБета1.21.4 · 12 февраля 2025 г.
Added Configurable Settings.
- Changed the default chunk load time from 60 to 30 seconds.
- Minecarts that have recently stopped moving now only continue to load chunks for 10 extra seconds instead of 30. (This should be increased if, for example, you want a minecart to be unloaded and sent back.)
- Introduced a configuration file (
config/minecartsloadchunks.json) that allows players to customize how minecarts load chunks. - Players can now enable or disable chunk loading for specific minecart types (regular, chest, furnace, hopper, TNT, and command block minecarts).
- Added options to control how long chunks stay loaded after a minecart moves and how long stationary minecarts continue to keep chunks loaded.
- Introduced a
spamConsolesetting to toggle extra logging for debugging. (this previously was on by default) - The mod will automatically generate the configuration file with default settings if it doesn’t exist.
- Changes to the settings can be made by editing the JSON file and restarting the game there is currently no way to change settings in game.
This update gives players more control over how chunks are loaded, helping balance performance and gameplay mechanics.
TODO: Implement checking if the inventory contents of a stationary cart are changing and dynamically load the chunk that is occupying. This would be so that it would wait to finish filling up/emptying before unloading the chunk. This will be a additional feature that can be enabled in the config.
1.21.4-1.0.0-AlphaАльфа1.21.4 · 2 февраля 2025 г.
Automatic Chunk Loading: Ensures that a 3x3 grid of chunks around any moving minecart remains loaded, preventing chunk border issues.
Support for All Minecart Types: Works seamlessly with regular, chest, furnace, and hopper minecarts.
Persistent Chunk Data: Loaded chunks are saved on a per-world basis and restored after server or world restarts, ensuring minimal disruptions.
Uses tick-based expiration to avoid leaving stray chunks loaded unnecessarily.
Комментарии
Загружаем…