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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...