Advertisement
Darkharmony

turtle enchanter

Jul 5th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Script developed for CyaNideEPiC (twitch.tv/cyanideepic)]]--
  2. --[[You are all allowed to use it as long as you don't pretend it's yours]]--
  3. --[[Have fun !]]--
  4.  
  5.  
  6.  
  7. m = peripheral.wrap("right")
  8. m.setAutoCollect(true)
  9. local currLevel = 0
  10.  
  11. monitor = peripheral.wrap("top")
  12.  
  13. while true do
  14. --Enchanting books
  15.   if lvls >= 30 then --if has 30 levels run enchant
  16.     turtle.select(1)
  17.     turtle.suck() --gets stack of books
  18.     turtle.drop(turtle.getItemCount(1)-1) --puts all but one back
  19.     turtle.turnRight()--turns around
  20.     turtle.turnRight()
  21.     m.enchant(30) --enchants the book
  22.     turtle.drop() --puts in chest
  23.     turtle.turnRight()--turns back around
  24.     turtle.turnRight()
  25.   end
  26. --Report Levels
  27.   local lvls = m.getLevels()
  28.   monitor.clear()
  29.   monitor.setCursorPos(1,1)
  30.   monitor.write("lv:".. lvls)
  31.   print("Currently Lvls:"..lvls)
  32.   sleep(5)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement