Page 1 of 1

[Solved] train window gui

Posted: Sun Jan 15, 2017 10:49 am
by mophydeen
Is there a way to know the player is looking at a train locomotive? And get the entity/name/id?


I want to add a Train button to my gui.

when a train is opened and you click on it.
You get a list of all train stations
you click a train station.
you get a list of station options:
- load ore
- unload ore
- load oil
- unload oil
These are special settings for a train stop:
eg. unload ore:
* 5 seconds passed
* AND Empty cargo inventory
* OR 5 seconds of inactivity

This way I don't have to keep setting all the conditions

Re: train window gui

Posted: Sun Jan 15, 2017 11:45 am
by mophydeen
I found it in player.opened > entity