Tutorial/GPS Guided Turtle Bomber

GPS Guided Turtle Bomber
—GPS Guided Bomber System —Developed by Kensie121 —You must point the turtle east —Set current coordinates local CurX = [replace with the turtle’s X cord] local CurY = [replace with the turtle’s Y cord] local CurZ = [replace with the turtle’s Z cord] —Set target’s coordinates local TarX = [replace with the target’s X cord] local TarY = [replace with the target’s Y cord] —Set operating altitude local TarZ = [replace with a number 90 - 120] —Gain altitude while CurZ ~= TarZ do turtle.up CurZ = CurZ + 1 end —Align to target’s X coordinate while CurX ~= TarX do if CurX > TarX then turtle.back CurX = CurX - 1 else turtle.forward CurX = CurX + 1 end end —Turn towards the target if CurY > TarY then turtle.turnRight else turtle.turnLeft end —Align to target’s Y coordinate while CurY ~= TarY do if CurY > TarY then turtle.forward CurY = CurY - 1 else turtle.forward CurY = CurY + 1 end end —Drop a bomb turtle.placeDown rs.setOutput(“bottom”, true) sleep(0.1) rs.setOutput(“bottom”, false)