icdb icon

[ComputerCraft] lumber_01

icdb | PRO | 07/03/14 12:42:50 PM UTC | 0 ⭐ | 644 👁️ | Never ⏰ | []
Lua |

910 B

|

None

|

0 👍

/

0 👎

while true do
turtle.select(15)
if turtle.getItemCount() < 32 then
  turtle.turnLeft()
  turtle.forward()
  turtle.drop()
  sleep(0.5)
  turtle.suck()
  turtle.back()
  turtle.turnRight()
end
turtle.select(16)
if turtle.getItemCount() < 32 then
  turtle.turnRight()
  turtle.forward()
  turtle.drop()
  sleep(0.5)
  turtle.suck()
  turtle.back()
  turtle.turnLeft()
end
 
turtle.forward()
turtle.select(15)
turtle.place()
turtle.select(15)
u=true
repeat
  turtle.select(16)
  u=turtle.place() 
until u==false
 
turtle.select(1)
turtle.dig()
turtle.forward()
z=true
repeat
  turtle.digUp()
  turtle.up()
  z=turtle.compareUp()
until z==false
 
repeat
  turtle.down()
  u=turtle.detectDown()
until u==true
 
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
turtle.forward()
for i = 1, 14, 1 do
  turtle.select(i)
  turtle.drop()
end
 
turtle.turnRight()
turtle.turnRight()
 
end

Comments