Posted 21 June 2015 - 05:49 AM
I'm getting an error: "bios:367: [string "treeFeller"]:13: function arguments expected" with a continuous program that fells trees. The function that the error contains is included.
ComputerCraft 1.73
Minecraft 1.7.10
Forge 10.13.2.1291
Slots:
Slot 1: Saplings
Slot 2: Bone Meal (The code should instead wait a minute if no bonemeal is detected or it runs out before the tree grows)
Slot 3: Logs
Slot 4: Fuel
ComputerCraft 1.73
Minecraft 1.7.10
Forge 10.13.2.1291
Slots:
Slot 1: Saplings
Slot 2: Bone Meal (The code should instead wait a minute if no bonemeal is detected or it runs out before the tree grows)
Slot 3: Logs
Slot 4: Fuel
function plantAndGrow()
slotOne = turtle.getItemDetail(1)
slotTwo = turtle.getItemDetail(2)
if slotOne.name == minecraft:sapling --Line 13
turtle.select(1)
turtle.place()
elseif slotOne == nil then
print("Saplings must be in slot one")
end
if slotTwo.name == minecraft:dye then
turtle.select(2)
while turtle.inspect() == minecraft:sapling do
slotTwo = turtle.getItemDetail(2)
if slotTwo.count ~= 0 then
turtle.place()
elseif slotTwo == nil then
os.sleep(60)
else
print("An unknown error occurred")
end
elseif slotTwo == nil
repeat
block = turtle.inspect()
os.sleep(60)
until block.name = minecraft:log
else
print("An unknown error occurred")
end
end