state = 0
active = 1
while ( active == 1 ) do
if ( state == 1 ) then
io.write( "Door is Open.\n" )
else
io.write( "Door is Closed.\n" )
end
io.write( "Enter command(-1 to exit): " )
state = read()
if ( state == -1 ) then
active = 0
else
redstone.setoutput( "right", state ~= 0 )
end
end
This is just a simple program that sends a redstone signal to open a piston door. 0 = door shut, -1 = close program, anything else = door open.it doesn't think that redstone.setoutput() is an actual function... I checked the apis folder of the computer, and redstone wasn't there, but the default program redpulse works, using the exact same function I am. What's going on?












