I forgot how you do the code thingy - the button didn't like me.
function usage()
print 'Usage:'
print 'bore 10 - bores a hole 10 blocks deep'
print 'type bore followed by a number to bore a hole'
end
tArgs = { ... }
if #tArgs == 1 then
if tonumber(tArgs[1]) then
digHeight = tArgs[1]
boreDown()
else
usage()
end
else
usage()
end
function boreDown()
while ( digHeight =~ 0 ) do
redstone.SetBundledOutput('back', 1)
sleep(0.800)
redstone.SetBundledOutput('back', 2)
sleep(0.800)
redstone.setBundledOutput('back', 4)
sleep(0.800)
digHeight = (digHeight - 1)
end
print 'Completed tunnel boring'
end
Wait. First error I noticed: it's redstone.setBundledOutput, not redstone.SetBundledOutput...












