Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("right")
- m.setAutoCollect(true)
- while true do
- rs.setOutput("top", false)
- term.clear()
- term.setCursorPos(1, 1)
- XPcount = m.getLevels()
- print("I have "..XPcount.." Levels of XP Stored")
- if XPcount >= 30 and turtle.getItemCount(1) == 1 then
- m.enchant(30)
- else if XPcount >= 30 and turtle.getItemCount(1) < 1 then
- term.setCursorPos(1, 3)
- print("Ready To Enchant")
- sleep(1)
- else if XPcount < 30 then
- XPneed = (30-XPcount)
- term.setCursorPos(1, 3)
- print("I need "..XPneed.." More Levels of XP")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement