Posted 29 June 2015 - 07:22 PM
Hi,
I try to make a turtle digging while there is gravel in front of it.
My first test was
Unfortunately it seems the while command is not able to handle both values at once. Is there a way to make it work or do I have to fill the inspect information to variables first and compare then?
I try to make a turtle digging while there is gravel in front of it.
My first test was
if turtle.forward() == false then
if turtle.inspect() == true, "minecraft:gravel" then
while turtle.inspect() == true, "minecraft:gravel" do
turtle.dig()
sleep(1)
end
else
break
end
end
Unfortunately it seems the while command is not able to handle both values at once. Is there a way to make it work or do I have to fill the inspect information to variables first and compare then?