Factory Build Team Needed in Tekkit Lite Servers Posted March 6, 2013 IGN: mrvideogaming1 Age: 13 Mod of expertise: Buildcraft and Building redpower, computercarft (im extremely skilled at programming mining turtles) Prove that you are an expert of the above mod: shell.run("clear") print("Welcome to Branching V1.0") print("Place turtle in front of first branch.") print("He can only dig new branches to the") print("right, so make sure he's on the left") print("side of the tunnel ") print("---------------------------------------") print("How many branches would you like?") rows = io.read() print("How deep should they be? (Blocks)") depth = io.read() print("Place torches? (Slot 2) (Y/N)") torches = io.read() shell.run("clear") print("Settings:") print("---------------------------------------") print("Branches : ", rows) print("Depth : ", depth) print("Torches: ", torches) print("---------------------------------------") print("Branching jetzt starten? (Y/N)") start = io.read() -- Functions function refuelAll() fuelLeft = turtle.getFuelLevel() if fuelLeft < (depth * 2 + 20) then for i = 1, 16 do turtle.select(i) turtle.refuel() end if turtle.getFuelLevel() < (depth * 2 + 20) then print("Not enough fuel left! Abort!") return false else return true end else return true end end function returnToMainPath(finalDepth) turtle.turnLeft() turtle.turnLeft() while finalDepth > 0 do repeat turtle.dig() until turtle.forward() finalDepth = finalDepth - 1 end end function moveToNextBranch() turtle.turnLeft() turtle.forward() turtle.forward() turtle.forward() turtle.turnLeft() end function placeTorch() turtle.back() turtle.select(2) turtle.placeUp() turtle.forward() end function digBranch() --Config x=1 --Start the program for currentDepth = 1, depth do -- Dig turtle.dig() repeat turtle.dig() until turtle.forward() turtle.digUp() -- Place torches every 8 blocks if torches == 'Y' or torches == 'y' then modulo = x % 8 if modulo == 0 then placeTorch() end end x=x+1 finalDepth = currentDepth end return finalDepth end function dropItems() end function returnItems() end function run() for currentBranch = 1, rows do -- Check for fuel, if low refuel with everything you have if refuelAll() then -- Dig branch and return depth finalDepth = digBranch() -- Back to the main tunnel returnToMainPath(finalDepth) --TODO return items --returnItems() -- Move to next branch moveToNextBranch() end end print("Finished digging!") end --Starten if start == 'Y' or start == 'y' then shell.run("clear") print("Started...") run() else shell.run("clear") print("Abort!") shell.run("exit") end this is a program i made that makes a turtle only mine out diamond and important ores Have you ever been banned? If so, why?: i was banned once because i was on a youtube vid griefing with a friend from Machinima Realm Any other things I should know: my FB page were i post old builds. i now use Planet Minecraft https://www.facebook.com/Mrvideogaming1
Factory Build Team Needed
in Tekkit Lite Servers
Posted
IGN: mrvideogaming1
Age: 13
Mod of expertise: Buildcraft and Building redpower, computercarft (im extremely skilled at programming mining turtles)
Prove that you are an expert of the above mod:
shell.run("clear")
print("Welcome to Branching V1.0")
print("Place turtle in front of first branch.")
print("He can only dig new branches to the")
print("right, so make sure he's on the left")
print("side of the tunnel ")
print("---------------------------------------")
print("How many branches would you like?")
rows = io.read()
print("How deep should they be? (Blocks)")
depth = io.read()
print("Place torches? (Slot 2) (Y/N)")
torches = io.read()
shell.run("clear")
print("Settings:")
print("---------------------------------------")
print("Branches : ", rows)
print("Depth : ", depth)
print("Torches: ", torches)
print("---------------------------------------")
print("Branching jetzt starten? (Y/N)")
start = io.read()
-- Functions
function refuelAll()
fuelLeft = turtle.getFuelLevel()
if fuelLeft < (depth * 2 + 20) then
for i = 1, 16 do
turtle.select(i)
turtle.refuel()
end
if turtle.getFuelLevel() < (depth * 2 + 20) then
print("Not enough fuel left! Abort!")
return false
else
return true
end
else
return true
end
end
function returnToMainPath(finalDepth)
turtle.turnLeft()
turtle.turnLeft()
while finalDepth > 0 do
repeat
turtle.dig()
until turtle.forward()
finalDepth = finalDepth - 1
end
end
function moveToNextBranch()
turtle.turnLeft()
turtle.forward()
turtle.forward()
turtle.forward()
turtle.turnLeft()
end
function placeTorch()
turtle.back()
turtle.select(2)
turtle.placeUp()
turtle.forward()
end
function digBranch()
--Config
x=1
--Start the program
for currentDepth = 1, depth do
-- Dig
turtle.dig()
repeat
turtle.dig()
until turtle.forward()
turtle.digUp()
-- Place torches every 8 blocks
if torches == 'Y' or torches == 'y' then
modulo = x % 8
if modulo == 0 then
placeTorch()
end
end
x=x+1
finalDepth = currentDepth
end
return finalDepth
end
function dropItems()
end
function returnItems()
end
function run()
for currentBranch = 1, rows do
-- Check for fuel, if low refuel with everything you have
if refuelAll() then
-- Dig branch and return depth
finalDepth = digBranch()
-- Back to the main tunnel
returnToMainPath(finalDepth)
--TODO return items
--returnItems()
-- Move to next branch
moveToNextBranch()
end
end
print("Finished digging!")
end
--Starten
if start == 'Y' or start == 'y' then
shell.run("clear")
print("Started...")
run()
else
shell.run("clear")
print("Abort!")
shell.run("exit")
end
this is a program i made that makes a turtle only mine out diamond and important ores
Have you ever been banned? If so, why?: i was banned once because i was on a youtube vid griefing with a friend from Machinima Realm
Any other things I should know: my FB page were i post old builds. i now use Planet Minecraft
https://www.facebook.com/Mrvideogaming1