Jump to content

Recommended Posts

Posted

Hello! I'm working on a filler robot to fill just the top layer of my old quarries, but I find the in-game system pretty irritating and slow to write in while shuffling the turtle API wiki.

Is there a way I can write my code in notepad and paste it into the game? I'm playing on a server.

Posted

here's what i'm thinking of so far, i just have to execute it i guess

turtle.select(2)

function forward()

while turtle.detect() == false

turtle.Forward()

if turtle.Forward() == false and turtle.getFuelLevel() == 0

turtle.refuel

end

function leftTurn()

while turtle.detect() == true and turtle.detectDown() == true

turtle.turnLeft()

end

while turtle.detectDown() == false

turtle.placeDown()

end

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...