When called, will return true if the block in front of the turtle is anything that is not air or liquid.
|Detect if there is a block in front of the turtle.|
local result = turtle.detect() if result then print("There is a block in front of the turtle!") else print("There is no block in front of the turtle, only air or a liquid.") end
There is a block in front of the turtle!