Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = peripheral.wrap("right")
- x.setAutoCollect(true)
- while true do
- lvl = x.getLevels()
- print("My lvl is: "..lvl)
- while lvl >= 30 do
- x.enchant(30)
- turtle.dropUp()
- turtle.suckDown()
- count = turtle.getItemCount(1)
- if count ~= 0 then
- turtle.dropDown(count - 1)
- else
- print("no more books")
- break
- end
- lvl = x.getLevels()
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement