Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xp = peripheral.wrap("right")
- xp.setAutoCollect(true)
- while true do
- if xp.getLevels() > 30 then
- if turtle.getItemCount(1) > 0 then
- turtle.select(1)
- xp.enchant(30)
- turtle.drop()
- else
- turtle.select(2)
- if turtle.getItemCount(2) > 0 then
- while not turtle.suckUp() do
- sleep (1)
- end
- end
- turtle.transferTo(1, 1)
- turtle.select(1)
- xp.enchant(30)
- turtle.drop()
- end
- end
- sleep (60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement