Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Script developed for CyaNideEPiC (twitch.tv/cyanideepic)]]--
- --[[You are all allowed to use it as long as you don't pretend it's yours]]--
- --[[Have fun !]]--
- m = peripheral.wrap("right")
- m.setAutoCollect(true)
- local currLevel = 0
- monitor = peripheral.wrap("top")
- while true do
- --Enchanting books
- if lvls >= 30 then --if has 30 levels run enchant
- turtle.select(1)
- turtle.suck() --gets stack of books
- turtle.drop(turtle.getItemCount(1)-1) --puts all but one back
- turtle.turnRight()--turns around
- turtle.turnRight()
- m.enchant(30) --enchants the book
- turtle.drop() --puts in chest
- turtle.turnRight()--turns back around
- turtle.turnRight()
- end
- --Report Levels
- local lvls = m.getLevels()
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write("lv:".. lvls)
- print("Currently Lvls:"..lvls)
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement