Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- m.setAutoCollect(true)
- function Drop() -- u can allways rename this :D/>/>
- for i = 1,16 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- turtle.drop()
- end
- end
- end
- function enchantcheck()
- for i = 61, 1, -1 do
- if m.getLevels() >= 30 then
- turtle.suckUp()
- turtle.dropUp(63)
- m.enchant(30)
- turtle.turnRight()
- turtle.drop()
- turtle.turnLeft()
- end
- end
- end
- while true do
- enchantcheck()
- turtle.attack()
- Drop()
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement