Posted 06 May 2012 - 04:03 PM
Ok, this is my first legit program, and what it lets you do is close your mine doors right from your house.
Useful if your like me and always forget to close your doors.
Just hook up redstone underneath the computer to your mine door.
Here it is:
Well there you go.
MY first actually good program, feel fine to play around with it and post what you have done with it here!
Im completely open to suggestions.
Useful if your like me and always forget to close your doors.
Just hook up redstone underneath the computer to your mine door.
Here it is:
term.clear()
term.setCursorPos(1,1)
print("Open Mine doors or close them?Type close to close and open to open.")
if redstone.getInput("bottom") == true then
print("Right now, the doors are open.")
else
print("Right now, the doors are closed.")
end
text=io.read()
if text=="open" then
redstone.setOutput("bottom" , true)
end
if text=="close" then
redstone.setOutput("bottom" , false)
end
if redstone.getInput ("bottom") == true then
print("Doors are closed.")
else
print("Doors are open.")
end
Well there you go.
MY first actually good program, feel fine to play around with it and post what you have done with it here!
Im completely open to suggestions.