Posted 01 July 2013 - 02:06 PM
I have a Problem with my program for an disk-protected piston-door(has an and-gate)
The program should give out a redstone signal if the disc is in the drive
Code:
————————————
repeat
print("Insert Disk")
shell.run("clear")
until disk.getLabel("front") == "Password"
print("Disk is inserted!!!")
rs.setOutput("bottom", true)
sleep(2)
rs.setOutput("bottom", false)
sleep(0.2)
shell.run("clear")
end
shell.run("Pistons")
—————————–
Error:
Every time I type startup in the Console it jumps to a new line and says 204
If I repeat that "command" it says 204204 and so on…
Please help me… :(/>
Sorry if I'm posting on the wrong page!
The program should give out a redstone signal if the disc is in the drive
Code:
————————————
repeat
print("Insert Disk")
shell.run("clear")
until disk.getLabel("front") == "Password"
print("Disk is inserted!!!")
rs.setOutput("bottom", true)
sleep(2)
rs.setOutput("bottom", false)
sleep(0.2)
shell.run("clear")
end
shell.run("Pistons")
—————————–
Error:
Every time I type startup in the Console it jumps to a new line and says 204
If I repeat that "command" it says 204204 and so on…
Please help me… :(/>
Sorry if I'm posting on the wrong page!