I'm using dire's setup of his mob spawner, but I added some more spawners and extended the height of the cieling. I was just doing turtle.drop, but if multiple items came in at once, the items remain in the turtles inventory. I need help getting this code correct. When I use it I get the error "bios:338: [string "startup"]:11: '<eof>' expected"
Ignore the .'s I had to use them to get the spacing to look right.
The code is
Ignore the .'s I had to use them to get the spacing to look right.
The code is
dropItems= 1,6
i = dropItems
while true do
. dropInventory()
. . turtle.select(i)
. . turtle.drop()
. end
. turtle.attack()
. dropInventory()
. sleep(1)
end
i = dropItems
while true do
. dropInventory()
. . turtle.select(i)
. . turtle.drop()
. end
. turtle.attack()
. dropInventory()
. sleep(1)
end