How about the back? the back would work awesomely! Pulls in and puts back in it. Or maybe take out the anvil like you said (and make a second program for anvil cause I'd still use it)
xp = peripheral.wrap("right")
xp.setAutoCollect(true)
while true do
if xp.getLevels() > 30 then
if turtle.getItemCount(1) > 0 then
turtle.select(1)
xp.enchant(30)
turtle.drop()
else
turtle.select(2)
if turtle.getItemCount(2) > 0 then
while not turtle.suckUp() do
sleep (1)
end
end
turtle.transferTo(1, 1)
turtle.select(1)
xp.enchant(30)
turtle.drop()
end
end
sleep (60)
end
Than..I guess I will keep original one you made. It was nice in the one I found it would be able to store a bunch (no auto book making or grabbing from chests) and spit it out bottom into a chest.
Is there any way to keep what you have done...but instead it can just store books..enchant one and spit it out from front onto the ground where my transposer will pick it up and it gets sucked into a chest?
xp = peripheral.wrap("right")
xp.setAutoCollect(true)
while true do
if xp.getLevels() > 30 then
if turtle.getItemCount(16) == 1 then
turtle.select(16)
xp.enchant(30)
turtle.drop()
elseif turtle.getItemCount (16) > 1 then
turtle.select(16)
turtle.drop()
else
for i = 1, 15 do
if turtle.getItemCount (i) > 0 then
turtle.select(i)
turtle.transferTo(16, 1)
turtle.select(16)
xp.enchant(30)
turtle.drop()
break
end
end
end
end
sleep (60)
end
Then this is a bug with richardG's Misc Peripherals then, not my code.I just put two books in slots 1 & 2 and did anvil..book is gone - but according to monitor it did use XP..I waited 4 minutes but its missing....
**Second attempt..according to wiki I did efficiency IVx2 in hopes to make Efficiency V..book is gone.