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