Posted 13 June 2013 - 06:02 PM
Version Info:
Minecraft 1.5.2
Forge 715
CC 1.53
Description of Problem:
Recently, I have had people complain of my quarry program encountering bedrock when there was none there (on somewhat laggy servers), and so I went into an SSP world to test different things. My mining function works like this (basically):
If I'm not mistaken, turtle.dig is not supposed to mine entities, only blocks.
http://imgur.com/a/aY6V4
So, when it mines an entity:
Expected Outcome:
Turtle returns false, as there is no block to mine.
Actual Outcome:
Turtle "mines" entity, and returns true.
Minecraft 1.5.2
Forge 715
CC 1.53
Description of Problem:
Recently, I have had people complain of my quarry program encountering bedrock when there was none there (on somewhat laggy servers), and so I went into an SSP world to test different things. My mining function works like this (basically):
while not turtle.forward() do
count = count + 1
if turtle.dig() then
mined = mined + 1
else
turtle.attack()
end
if count > 20 then
foundBedrock()
end
end
I know its not exactly the best solution for bedrock, but it gets the job done, usually. Now the bug comes when it cannot go forward because of an entity (like a sheep or a player). When it tries to mine the sheep, brown particles pop up and turtle.dig() returns true. It does this 20 times and says it found bedrock.If I'm not mistaken, turtle.dig is not supposed to mine entities, only blocks.
http://imgur.com/a/aY6V4
So, when it mines an entity:
Expected Outcome:
Turtle returns false, as there is no block to mine.
Actual Outcome:
Turtle "mines" entity, and returns true.