Posted 03 February 2013 - 02:50 PM
Title whats wrong with my code
Line 23 keeps saying it needs a equles
Line 23 keeps saying it needs a equles
--Setup
rednet.open ("right")
print (turtle.getFuelLevel())
print (os.getComputerLabel())
print (os.getComputerID())
local Y = 81
--Code
if Y > 7 then
turtle.digDown()
turtle.attackDown()
turtle.attackDown()
turtle.attackDown()
turtle.attackDown()
turtle.down()
Y = Y+1
turtle.select(16)
itemc = turtle.getItemCount()
if itemc > 0 then
turtle.turnRight()
turtle.turnRight()
turtle.select(1)
turtle.place
turtle.select(2)
turtle.drop()
turtle.select(3)
turtle.drop()
turtle.select(4)
turtle.drop()
turtle.select(5)
turtle.drop()
turtle.select(6)
turtle.drop()
turtle.select(7)
turtle.drop()
turtle.select(8)
turtle.drop()
turtle.select(9)
turtle.drop()
turtle.select(10)
turtle.drop()
turtle.select(11)
turtle.drop()
turtle.select(12)
turtle.drop()
turtle.select(13)
turtle.drop()
turtle.select(14)
turtle.drop()
turtle.select(15)
turtle.drop()
turtle.select(16)
turtle.drop()
rednet.send (144, "Drop")
turtle.dig
turtle.turnRight
turtle.turnRight
end
else
while up > 0 then
local up = 75
if up > 0 then
turtle.up
up = up-1
end
else
turtle.dig
turtle.forward
end
end
Edited by