Posted 01 January 1970 - 01:00 AM
Hello Everyone.
I Created A Turtle Bomber
Features:
Creates A Randomised Linear Crater
Bugs Or Problems:
Only The First Slot Is Used So Max Amount Of TNT Released Is 64(Will Fix Later)
Youtube Video:
Code:
Or Download:
I Created A Turtle Bomber
Features:
Creates A Randomised Linear Crater
Bugs Or Problems:
Only The First Slot Is Used So Max Amount Of TNT Released Is 64(Will Fix Later)
Youtube Video:
Spoiler
[media]http://youtu.be/-mrUjxzeGyY[/media]Spoiler
d = 64
local tArgs = { ... }
if #tArgs ~= 1 then
print("Usage: tnt <number>")
return
end
term.clear()
x, y = term.getSize()
term.setCursorPos(x/2-19/2, y/2)
print("Waiting To Start...")
rednet.open("left")
rednet.open("right")
--act, msg = os.pullEvent("rednet_message")
--if msg == "tnt" then
for i = 0, 10 do
turtle.up()
sleep(0.5)
end
rs.setOutput("bottom", true)
term.clear()
term.setCursorPos(x/2-6, y/2)
print("Operating...")
for i = 0, tArgs[1] - 1 do
turtle.placeDown()
sleep(0.5)
turtle.forward()
sleep(0.5)
turtle.forward()
d = d + 1
end
for i = 0, 10 do
turtle.forward()
sleep(0.5)
end
while not turtle.detectDown() do
turtle.down()
end
term.clear()
term.setCursorPos(1,1)