FANDOM


GPS Guided Turtle Bomber

Results
Dropping

This program relies on a couple of user added information. Firstly, you must change out the [words] with numbers which come from the coordinates under the minimap. For instance, the CurX, CurY, and CurZ can easily be found by standing on top of the turtle and writing down the coordinates. The TarZ tells how high the turtle should fly; it is important to set this number above the height of any mountains or trees around the launch point. Also, YOU MUST FACE THE TURTLE EAST!

—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.turnLeft()
else
 turtle.turnRight()
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)

If you have any problems with the code, please mention it along with the message in the comments below.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.