Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forwardForce = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.forward() do
- turtle.dig()
- end
- end
- end
- upForce = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.up() do
- turtle.digUp()
- end
- end
- end
- downForce = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.down() do
- turtle.digDown()
- end
- end
- end
- strafeLeftForce = function (...)
- turtle.turnLeft()
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.forward() do
- turtle.dig()
- end
- end
- turtle.turnRight()
- end
- strafeRightForce = function (...)
- turtle.turnRight()
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.forward() do
- turtle.dig()
- end
- end
- turtle.turnLeft()
- end
- backForce = function (...)
- turtle.turnRight()
- turtle.turnRight()
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- while not turtle.forward() do
- turtle.dig()
- end
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- back = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.back()
- end
- end
- forward = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.forward()
- end
- end
- up = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.up()
- end
- end
- down = function (...)
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.down()
- end
- end
- strafeLeft = function (...)
- turtle.turnLeft()
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.forward()
- end
- turtle.turnRight()
- end
- strafeRight = function (...)
- turtle.turnRight()
- len = 1
- if ... ~= nil then len = ... end
- for i=1, len do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- reverse = function ()
- turtle.turnRight()
- turtle.turnRight()
- end
- digSafe = function()
- while turtle.detect() do
- turtle.dig()
- os.sleep(0.5)
- end
- end
- digUpSafe = function()
- while turtle.detectUp() do
- turtle.digUp()
- os.sleep(0.5)
- end
- end
- digDownSafe = function()
- while turtle.detectDown() do
- turtle.digDown()
- os.sleep(0.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement