Posted 01 June 2014 - 01:50 AM
Hello, i have the following setup:
The task is simple to send a redstone signal and launch the train every X minutes…
I've written the following code:
It will find the monitor on the left (if tried right and it, obviously, don't find it on the right) and enter the monitor code block, runs without runtime errors but nothing is printed on the monitor…
Can anyone help me with the ultra simple thing?
Thanks
The task is simple to send a redstone signal and launch the train every X minutes…
I've written the following code:
while true do
local monitor = peripheral.wrap("left")
if monitor then
--If I put a write statement where it will get printed in the normal "terminal" window indicating that a monitor was found
monitor.clear()
monitor.setCursorPos(0,0)
monitor.write("releasing train")
end
redstone.setOutput("back", true)
sleep(2)
redstone.setOutput("back", false)
if monitor then
monitor.clear()
monitor.setCursorPos(0,0)
monitor.write("waiting...")
end
sleep(60 * 2)
end
It will find the monitor on the left (if tried right and it, obviously, don't find it on the right) and enter the monitor code block, runs without runtime errors but nothing is printed on the monitor…
Can anyone help me with the ultra simple thing?
Thanks