Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forward()
- while true do
- if turtle.forward() then
- break
- else
- turtle.attack()
- turtle.dig()
- end
- end
- end
- function up()
- while true do
- if turtle.up() then
- break
- else
- turtle.digUp()
- turtle.attackUp()
- end
- end
- end
- function down()
- while true do
- if turtle.down() then
- break
- else turtle,attackDown()
- turtle.digDown()
- end
- end
- end
- local wherex, wherey, wherez,a,b,c,homey
- function comebackhome()
- turtle.getItemCount(13) = wherex
- turtle.getItemCount(14) = wherez
- local a,b,c = turtle.locate(5)
- homey - b = wherey
- for i = 1, wherey do
- up()
- end
- turtle.turnRight()
- turtle.turnRight()
- for i = 1, wherez do
- forward()
- end
- turtle.turnRight()
- for i = 1,wherex() do
- forward()
- end
- turtle.turnRight()
- end
- local startbread = turtle.getItemDetail(1).name
- function askhome()
- if startbread == "minecraft:bread" then
- print("Enter y value of the chest")
- local homey = read()
- else
- print("warning: home y axis not
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement