This API is a required mod for Immersive Railroading and other train mods in the future. It currently supports 1.12, but will be backported to older mc versions as required (coming soon)
It also provides backwards compatibility with standard minecraft tracks if the mod author so chooses to allow it.
adds more trains tracks like bridges/ bumpers/ and sheds
hello, can someone tell me what the turn table tracks are for and how to complete and use them? Wersja na 1.16.4
plis 1.15.2
When it comes to laying track with Track API and Immersive Railroading, With the "Crossing" Option it only gives you a 90 degree angle crossing. Is there a way to get any other track crossing like a 45 degree crossing etc?
In reply to squintman44:
just overlay 2 tracks at a 45 degree angle. it will work
A 1.15.2 version Please
In reply to bravemelvin:
Yeah we need a 1.15.2 release
I dont have any logs at the moment but I can probably provide my log up to when minecraft freezes but I'm having a bit of an issue using Track API on Minecraft 1.7.10
Sometimes when placing and destroying track pieces, mostly with curved pieces, the game randomly freezes and I have to end the task in task manager as it doesnt seem like it will recover.
Theres nothing in my Game output log that tells me anything serious, just the usual output of various mods doing things.
Perhaps when I have a log to post there will be something in it that will help with the MC 1.7.10 versions if any further support will be given for 1.7.10.
EDIT : IT turns out the issue was with Optifine, though I dunno what settings I changed per se that made Track API work without locking up Minecraft 1.7.10 when deleting curved track pieces.
Will a 1.14.4 forge version ever be released?
In reply to cheeseplease1234:
wondering the same
In reply to cheeseplease1234:
It was released 21 hours ago as a beta. check the file list
I'm getting this error with the 1.14 Forge file, and it will not load into Forge:
TrackAPI-1.2.jar is missing mods.toml file
When I look inside the jar file for the Forge version it looks like it's still the Fabric one (the file fabric.mod.json is present).
Salutations. I've recently been given permission to re-author a mod pack which will include changes. This particular mod is currently in the pack, but there are no rail mods like the afformentioned Immersive Railroading. So my question is, Do I need it in there still - does it do something else I am unaware of or just plain missing? Thanks for your reply in advance...
updated to 1.14? does this mean Immersive Railroad is coming to 1.14 really soon?
In reply to redo_entertainment:
perhaps...
Nice mod! I want to use this API in my mod; is there documentation available somewhere?
In reply to jonafanho:
I should put together a wiki page on this at some point, but here's the general gist:
If your tracks are tile entities you can implement ITrack: https://github.com/cam72cam/TrackAPI/blob/master/src/main/java/trackapi/lib/ITrack.java
If your tracks are plain blocks you can implement ITrackBlock: https://github.com/cam72cam/TrackAPI/blob/master/src/main/java/trackapi/lib/ITrackBlock.java
In general all you need to do to have your ents follow track is check if the block or tile entity you are sitting on implements ITrackBlock or ITrack.
I have a reference implementation (with a poorly named function) here: https://github.com/cam72cam/TrackAPI/blob/master/src/main/java/trackapi/lib/Util.java#L43
TrackAPI also attempts to expose minecraft track in the same manner, but my implementation of that is incomplete. Pull requests are welcome :)
The only change I may make to TrackAPI in the next year is adding getTrackGauges and deprecating getTrackGauge along with adding gauge to the getNextPosition as overlapping track may expose different paths for different gauges. Not sure if I'll actually do that though.
Another example is TrainsMod which has been written by Alemax who uses TrackAPI as an optional dependency.
The best way to reach me is on discord in the ImmersiveRailroading server.
Newest version for 1.12 isn't downloading, it just shows an error page, so I had to use an older version...
Edit: It worked after I waited a few minutes. No idea why it didn't work previously.