Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = peripheral.wrap("right")
- m = peripheral.wrap("top")
- m.setTextScale(1.5)
- local enchants = 0
- while true do
- x.collect()
- m.clear()
- m.setCursorPos(1,5)
- m.write("Levels stored: " .. x.getLevels() .. "")
- m.setCursorPos(1,6)
- m.write("Enchants completed: " .. enchants .. "")
- if x.getLevels()>29 then
- for i=2,16 do
- if (turtle.getItemCount(i)>0) and (x.getLevels()>29) then
- turtle.select(i)
- turtle.transferTo(1,1)
- turtle.select(1)
- x.enchant(30)
- turtle.drop()
- enchants=enchants+1
- end
- end
- end
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment