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
spamConsole
setting 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.
-
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.