monkeybee11, on 20 March 2013 - 12:07 AM, said:
hi tryed wrighting a program for my auto exp farm and wanted to upgrade it to auto enchant
but it keeps coming back with errors :S
(have not unlocked brain in a jar on the server im playing on so for now its just sucking up the xp mobs drop)
if true then do
turtle.attack()
turtle.setAutoCollect(autocollect)
turtle.select(16) --book or tools in this slot
turtle.enchant("30")
end
if false then do
turtle.attack()
turtle.setAutoCollect(autocollect)
end
ofc its a meele xp turtle
plz and thx for the help

turtle.enchant("30") //Edit : Wow i didn't realise i was turtle. sorry fot that
You need to give an int, not a string so remove the "".
turtle.setAutoCollect(autocollect) //Edit :Wow i didn't realise i was turtle. sorry fot that
This require a bool (true or false) so i don't know what is your autocollect var.
Anf wtf is your if true then do ???
You need to learn a little bit lua to use it.