Posted 24 February 2013 - 04:43 AM
Title: Program - Program error
My xp farm program for my ftb singleplayer is geting an error and i have look all over the forums with no luck, so i decided to ask a pro and see if i can get help.
*error* - bios:338: [string "mobspanwer"]:8: '(' expected
and here is the program, pretty basic.
function attack()
turtle.attack()
check()
sleep(.1)
end
function check
if turtle.getItemCount(16) > 0 then
for i = 1, 16 do
turtle.select(i)
turtle.dropDown
end
turtle.select(1)
end
i literally just started using turtles and writing scripts so please criticize so i can learn from my mistakes
My xp farm program for my ftb singleplayer is geting an error and i have look all over the forums with no luck, so i decided to ask a pro and see if i can get help.
*error* - bios:338: [string "mobspanwer"]:8: '(' expected
and here is the program, pretty basic.
function attack()
turtle.attack()
check()
sleep(.1)
end
function check
if turtle.getItemCount(16) > 0 then
for i = 1, 16 do
turtle.select(i)
turtle.dropDown
end
turtle.select(1)
end
i literally just started using turtles and writing scripts so please criticize so i can learn from my mistakes