Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- OBSIDI-BOT !!!
- --
- -- This will only work in my particular set up. Just here for your reference.
- -- I have two chests, one where the turtle picks up buckets of lava, another where it deposits the empty
- -- bucket and block of obsidian. It will stop and reboot when the lava runs out.
- -- http://youtube.com/satscapeminecraft
- function one80()
- turtle.turnLeft()
- turtle.turnLeft()
- os.sleep(1)
- end
- while true do
- one80()
- turtle.select(15)
- if not turtle.suck() then -- pick up lava bucket from chest or reboot if none
- one80()
- os.sleep(1)
- os.reboot()
- os.sleep(5)
- end
- one80()
- --drop lava and move
- turtle.forward()
- turtle.down()
- os.sleep(1)
- turtle.placeDown()
- turtle.up()
- turtle.up()
- turtle.forward()
- os.sleep(1)
- --drop and pick up water
- turtle.select(16)
- turtle.placeDown()
- os.sleep(1)
- turtle.placeDown()
- turtle.back()
- turtle.down()
- turtle.down()
- os.sleep(1)
- turtle.digDown()
- os.sleep(1)
- turtle.down()
- os.sleep(1)
- turtle.suckDown()
- -- go to output chest
- turtle.up()
- turtle.up()
- turtle.forward()
- os.sleep(1)
- turtle.select(15)
- turtle.drop() --dump empty bucket
- turtle.select(1)
- turtle.drop() --dump obsidian
- os.sleep(1)
- turtle.back()
- turtle.back()
- os.sleep(1)
- -- now back at home position, so do it all again
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement