Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isblocknear(id)
- local success, data = turtle.inspect()
- if success then
- if id == data.name then
- return true
- end
- end
- local success, data = turtle.inspectUp()
- if success then
- if id == data.name then
- return true
- end
- end
- local success, data = turtle.inspectDown()
- if success then
- if id == data.name then
- return true
- end
- end
- turtle.turnRight()
- local success, data = turtle.inspect()
- if success then
- if id == data.name then
- return true
- end
- end
- turtle.turnRight()
- local success, data = turtle.inspect()
- if success then
- if id == data.name then
- return true
- end
- end
- turtle.turnRight()
- local success, data = turtle.inspect()
- if success then
- if id == data.name then
- return true
- end
- end
- turtle.turnRight()
- end
- print(isblocknear("minecraft:dirt"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement