Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minedSpace = {6,6,4}
- pos = {0,0,0}
- -- +for/back- , -left/Right+ , +Up/Down-
- --Preconditon: chest behind area to min in front
- direction = 0
- -- 0 = ^ , 1 = > , 2 = v , 3 = <,4 = up ,5 down
- function increment(dir)--dir is where going
- if dir == 0 then
- pos[0] = post[0] + 1
- elseif dir == 1 then
- pos[1] = pos[1] + 1
- elseif dir == 2 then
- pos[0] = pos[0] - 1
- elseif dir == 3 then
- pos[1] = pos[1] - 1
- elseif dir == 4 then
- pos[2] = pos[2] + 1
- elseif dir == 5 then
- pos[2] = pos[2] - 1
- end
- end
- function left(x)
- turtle.turnLeft()
- forward(x)
- turtle.turnRight()
- end
- function right(x)
- turtle.turnRight()
- forward(x)
- turtle.turnLeft()
- end
- function back(x)
- for i=0, x do
- turtle.back()
- end
- end
- function forward(x)
- for i=0,x do
- turtle.dig()
- turtle.suck()
- turtle.forward()
- end
- end
- function plane()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement