Distance Travel
Simple commands to calculate distance traveled over a period of time! I made this mod because I have a giant railway network and would love to figure out how long it actually is without having to do complicated math.
Thankfully, this mod does exactly that, and in a very simple way!
Requirements
Minecraft >=1.20.1
Fabric Loader >=0.16.10
Fabric API >=0.102.0
How to use
To start, simply type /dt_start to begin your tracking session! To end your tracking session, type /dt_end! To view the stats from the last tracking session, type /dt_stats!

A tracking session tracks how far you're going from your start position (which is set by using the /dt_start command) and how long your session has lasted for!

Config
The config is short and simple, containing two options related to tracking messages and opening stats after finishing tracking without having to use an extra command. There's also an option to change tracking intervals!
The config is done using MidnightLib. If you have ModMenu, you should be able to access the config without doing anything!
Contributing
Feel free to contribute to this project as it's available under the MIT license. Find any issues or have a suggestion, report it on https://github.com/ThePhaseCat/Distance-Travel!
Thanks to MidnightLib for the GUI Library!
How to Install Distance Travel (Mod)
Distance Travel by ThePhaseCat is verified for Fabric across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 1.2.0-26.3, file size: 163 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Distance Travel file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Made some changes to odometer mode. It will now print your total distance since start instead of the section distance
- Did a lot of under the hood changes to improve distance accuracy
- (1.21.11 only) Adjusted command output so it's slightly more performant
- Full Changelog**: https://github.com/ThePhaseCat/Distance-Travel/compare/v1.0.1...v1.2.0
- Made some changes to odometer mode. It will now print your total distance since start instead of the section distance
- Did a lot of under the hood changes to improve distance accuracy
- (1.21.11 only) Adjusted command output so it's slightly more performant
- Full Changelog**: https://github.com/ThePhaseCat/Distance-Travel/compare/v1.0.1...v1.2.0
- Added Odometer Mode, prints how far you've gone since the last tracking point
- Fixed bug related to final distance calculation (again)
- Bumped stuff
- Full Changelog**: https://github.com/ThePhaseCat/Distance-Travel/compare/v1.0.1...v1.1.1
- Fixed bug related to distance not resetting after starting another tracking session. Sorry for that!