Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- push button to signal redstone to turtle's right, it turns left, grabs a stack of books from the first slot of a chest to it's left
- -- moves back to drop the anvil, then goes back and lifts the anvil over its head and waits to repeat. (disenchant books ATM10)
- while true do
- if redstone.getInput("right") then
- turtle.turnLeft()
- -- for i=1,16 do
- for i=1,1 do -- just use the first slot
- turtle.select(i)
- while turtle.suck() do
- turtle.dropDown()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeUp()
- os.sleep(.5)
- print("rinse, repeat.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement