bergerhealer / TrainCarts

Minecarts redefined
MIT License
206 stars 64 forks source link

When typing `/train speedlimit` without any additional arguments, get the current speed of the train back. #471

Closed Krakabraka closed 1 year ago

Krakabraka commented 1 year ago

Feature Request

Description

I think this is a good idea because it can be useful for debugging purposes, or maybe if you don't know the speed of the train but would like to know it?

Examples

I[1]: /train speedlimit 0.4 I[2]: /train speedlimit O[2]: This train is currently moving at 0.4 b/t.

Or something like that.

bergerkiller commented 1 year ago

Oh it doesn't? Thats an oversight on my part, I'll add this

bergerkiller commented 1 year ago

So it did, but didnt show km/h and mph, so I added those two units in the readout as well Screenshot_20230324_204611

https://ci.mg-dev.eu/job/TrainCarts/1356/

bergerkiller commented 1 year ago

Oh wait you probably meant to also show the current speed of the train, like is in /train info. I can add that

bergerkiller commented 1 year ago

Screenshot_20230324_205721 https://ci.mg-dev.eu/job/TrainCarts/1357/

shows current speed as red when moving at the speed limit.

Krakabraka commented 1 year ago

oh didn't know I could use /train info for that. Well in that case, I'll close this

bergerkiller commented 1 year ago

There's also /train status for some more niche speed details, like mutexes and wait distance state