Posted 15 June 2013 - 09:36 PM
mPeripheral=peripheral.wrap("right")
mPeripheral.setAutoCollect(true)
while true do
if not turtle.attack() then
for i = 1,16 do
if turtle.getItemCount(i) >0 then
turtle.select(i)
turtle.dropDown()
else
break
end
end
end
if mPeripheral.getLevels() >=30 then
turtle.turnRight()
turtle.turnRight()
turtle.select(2)
turtle.dropDown()
turtle.select(1)
turtle.dropDown()
turtle.suck()
turtle.transferTo(2, 1)
turtle.drop()
turtle.select(2)
mPeripheral.enchant(30)
turtle.drop()
turtle.select(1)
turtle.turnRight
turtle.turnRight
end
end turtle.select(1) end
Edited by