function main()
print("Started Mining 3x3 for 75 blocks!")
turtle.select(1)
turtle.refuel()
for i = 0; 75 do
if turtle.detect() then
turtle.dig()
end
turtle.up()
if turtle.detect() then
turtle.dig()
end
turtle.forward()
turtle.turnLeft()
if turtle.detect() then
turtle.dig()
end
turtle.down()
if turtle.detect() then
turtle.dig()
end
turtle.up()
turtle.turnRight()
turtle.turnRight()
if turtle.detect() then
turtle.dig()
end
turtle.down()
if turtle.detect() then
turtle.dig()
end
turtle.turnLeft()
end
turtle.turnRight()
while not turtle.detect() do
turtle.forward()
end
end
bios:14 ',' expected
Started by 0xHexa, Jan 23 2016 05:21 AM
2 replies to this topic
#1
Posted 23 January 2016 - 05:21 AM
#2
Posted 23 January 2016 - 05:47 AM
I doubt this is your whole code, but for loops in Lua use commas, not semicolons.
#3
Posted 23 January 2016 - 06:28 AM
Thanks man! Sadly it is haha I whipped it up in a few minutes due to me just getting back into feed the beast and coding again.
Edited by Lyqyd, 23 January 2016 - 07:10 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











