Posted 07 May 2013 - 05:22 PM
I´m getting an Error with this code, but why?
bios:338: [string "startup"]:5: 'then' expected
but this is a for loop so why then?
mPeripheral=peripheral.wrap("right")
while true do
if mPeripheral.getLevels()<=30
for i=1,15 do
turtle.select(i)
turtle.dropUp()
end
else
turtle.select(16)
mPeripheral.enchant(30)
end
end
Console says:bios:338: [string "startup"]:5: 'then' expected
but this is a for loop so why then?