im trying to make a program that checks if the redstone signal underneath it is on if its on its gonna place a block in top of it
at the moment nothing happen
any help would be appreciated =)
Posted 02 January 2013 - 10:26 AM
Posted 02 January 2013 - 10:31 AM
while redstone.getInput("bottom") do
stuff to place a block
end
Posted 02 January 2013 - 10:39 AM
os.pullEvent('redstone')
This will wait for a redstone change, read the wiki page for more info: http://www.computerc...ki/Os.pullEvent
Posted 02 January 2013 - 11:48 AM
Posted 02 January 2013 - 12:02 PM
Posted 02 January 2013 - 01:31 PM
while true do
os.pullEvent("redstone")
if rs.getInput("back") then
turtle.placeUp()
end
end
0 members, 1 guests, 0 anonymous users