VERSION:
1.74pr37
DESCRIPTION:
Teaching kids how to use the visual editor. Program stopped at "move forward" and said "cannot enter protected area". Can no longer work on (or move into) the square that turtle should have moved in to.
EXPECTED RESULT:
The turtle should have moved forward
REPRODUCTION STEPS:
Created from visual editor
for n = 1, 20 do
for n = 1, 4 do
if turtle.detect() then
turtle.dig()
end
turtle.forward()
turtle.turnRight()
end
if turtle.detectDown() then
turtle.digDown()
turtle.down()
end
end
Corrected code
for n = 1, 20 do
for m = 1, 4 do
if turtle.detect() then
turtle.dig()
end
turtle.forward()
turtle.turnRight()
end
if turtle.detectDown() then
turtle.digDown()
turtle.down()
end
end
Once I corrected the code, the program worked fine. Although I am unable to work out how to unprotect the areas the turtle previously protected. If anyone can help on this, please let me know
Not a bug. This was spawn protection


Posted by
