Posted 10 July 2012 - 04:21 PM
I've written this LUA program called "cartmanager" basically it manages 2 minecarts in a few ways.
Now, I wanted to create a script that lets both minecarts go at the same time, but it seems that in the end it would require the computer to detect redstone (rail detector) when the 1st minecart goes by.
Could someone show me how to write code to detect redstone input, and then shut the output of a different side of the computer off.
Here's what I have for that specific command
Now, I wanted to create a script that lets both minecarts go at the same time, but it seems that in the end it would require the computer to detect redstone (rail detector) when the 1st minecart goes by.
Could someone show me how to write code to detect redstone input, and then shut the output of a different side of the computer off.
Here's what I have for that specific command
elseif input==both then
print("Preparing. Go into the carts now!")
sleep(6)
print("Sending first cart out...")
sleep(2)
rs.setOutput("left",true)
print("Preparing second cart...")
sleep(0.5)
rs.setOutput("right",true)
sleep(1.5)
rs.setOutput("left",false)
print("Completed! Now waiting for 1st cart...")
I'm hoping that "right",true will become false when it detects redstone input.