Posted 02 December 2013 - 02:16 AM
Im new to the forum and programming so i need help pls
I need a loop that detects if there is an item in slot 1-16 if not go to the next slot and i dont know how to do that.
the program i made creates a part for a mobspawner
for trap=1,4 do
for ry=1,3 do
for w=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
for yc=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
end
for qs=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
for ts=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for tz=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.down()
turtle.turnRight()
for ty=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for qy=1,9 do
turtle.Down()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.up()
turtle.forward()
end
I need a loop that detects if there is an item in slot 1-16 if not go to the next slot and i dont know how to do that.
the program i made creates a part for a mobspawner
for trap=1,4 do
for ry=1,3 do
for w=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
for yc=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
end
for qs=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
for ts=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for tz=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.forward()
turtle.down()
turtle.turnRight()
for ty=1,9 do
turtle.placeDown()
turtle.forward()
end
turtle.back()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
for qy=1,9 do
turtle.Down()
turtle.forward()
end
turtle.back()
turtle.turnRight()
turtle.up()
turtle.forward()
end