Tracking a Train

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
So, I'm playing the recommended version of Monster, and I've set up a quarry some distance from my house. I've got a train running from the house out there, and most of the time it works perfectly fine, but it has been known to occasionally disappear, once because the locomotive exploded and set an oil well on fire, and once because it ran out of fuel. While I've set stations up to prevent that from occurring, I'd like to be able to know where it's at.

The idea that occurs to me, is a computer and some wireless redstone and the terminal glasses. The problem comes for me, in the actual wiring. I can set up a computer to do most things, but getting it to recognize a redstone event still escapes me.

What I'm thinking is to set up detectors and toggle latches to pairs of wireless redstone transmitters, with receivers facing into MFR cabling. When the latch goes one way, I get a < sign showing the train is heading to the station, and when it comes back I see a > showing it's heading to the quarry. Can anyone help me?
 

Skvapter

New Member
Jul 29, 2019
125
0
0
Is it chunk-loaded on it's journey to the Quarry? that might be your problem, though, that probably wouldn't answer it disappearing, if it's not chunk-loaded then it should just stop. Just a first thought though...
 

ljfa

New Member
Jul 29, 2019
2,761
-46
0
Listening for a redstone event is pretty easy. It's basically like this:
Code:
while true do
    evt = os.pullEvent
    if evt = "redstone" do
        if redstone.getInput("right") do
            do stuff...
        end
    end
end
 

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
Yes it is chunkloaded all the way.

I'm planning on doing multiple detectors. Is it the same but with the colored inputs?