This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
hamish1001's profile picture

how can i make my turtle go on a bombing run?

Started by hamish1001, 24 March 2012 - 09:37 PM
hamish1001 #1
Posted 24 March 2012 - 10:37 PM
Code please :(/>/>
Wolvan #2
Posted 24 March 2012 - 10:48 PM
Use Vandie's Turtle Bomb :(/>/>
hamish1001 #3
Posted 24 March 2012 - 10:49 PM
and that is?
fuj1n #4
Posted 25 March 2012 - 04:49 AM
Use My Program, You Put TNT In The First Slot Of The Turtle, Type <COMMAND NAME> <AMOUNT OF TNT's> And It Will Fly Up 10 Blocks And Go Forward Dropping TNT Until It Reaches The Amount You Specified, Then It Goes Back On The Ground.
Note <COMMAND NAME> Means The Name You Saved My Code As For Your Turtle.
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)