Posted 24 March 2012 - 10:37 PM
Code please :(/>/>
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)