Posted 01 February 2014 - 02:42 PM
Ok so I got 2 melee turtles placed down ready to go, and I have no idea how to code. I thought I did it right, but it gives me <eof> expected on line 5
Program so far:Basically its a 2 block wide stretch of glowstone, 17 blocks long, enderman fall and almost die, I need my turtle to go forward, if it cant, attack the enderman, and keep moving. Once its at the end, I need it to turn around, and come back, and then drop it in a chest behind it.
Thanks for any help!
Program so far:
Spoiler
turtle.forward()
if turtle.forward()==false then
turtle.attack()
end
else
turtle.forward(16)
end
Thanks for any help!