Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- if (turtle.inspectDown()) then
- local block, type = turtle.inspectDown()
- type.name = type.name:gsub("minecraft:","")
- return type
- else
- local type = {name = "empty",metadata = 0}
- return type
- end
- print(block.name)
- end
- result = check()
- print(result.name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement