Jump to content




bios:14 ',' expected


  • You cannot reply to this topic
2 replies to this topic

#1 0xHexa

  • New Members
  • 2 posts

Posted 23 January 2016 - 05:21 AM

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


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 23 January 2016 - 05:47 AM

I doubt this is your whole code, but for loops in Lua use commas, not semicolons.

#3 0xHexa

  • New Members
  • 2 posts

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