Posted 10 April 2015 - 03:11 PM
I expect that this is a bit of a noob question but here we go…
Recently, I've been having trouble trying to repeat a command.
I need to repeat this program once it's been executed. But so it only repeats when there is a Redstone signal detected.
Command:
Recently, I've been having trouble trying to repeat a command.
I need to repeat this program once it's been executed. But so it only repeats when there is a Redstone signal detected.
Command:
while true do
event = os.pullEvent()
if event == "redstone" then
break
end
end
function forwardNum(blocks)
for i= 1, blocks do
turtle.forward()
end
end
turtle.refuel(25)
turtle.up()
turtle.turnLeft()
turtle.turnLeft()
forwardNum(1)
turtle.dig()
forwardNum(2)
turtle.turnRight()
turtle.turnRight()
turtle.down()
turtle.down()
turtle.down()
turtle.dig()
turtle.select(3)
turtle.drop()
turtle.up()
turtle.up()
turtle.up()
forwardNum(2)
turtle.turnRight()
turtle.turnRight()
turtle.select(2)
turtle.place()
turtle.turnRight()
turtle.turnRight()
forwardNum(1)
turtle.down()
turtle.select(1)
Please, Someone help xD