Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scanner = peripheral.wrap("back")
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- blocks, err = scanner.scan(16)
- found = false
- for id, block in pairs(blocks) do
- if block["name"] == "allthemodium:allthemodium_ore" or block["name"] == "allthemodium:allthemodium_slate_ore" then
- found = true
- term.write(block["name"])
- term.write(" at ")
- print(string.format("x:%d z:%d y:%d", block["x"], block["z"], block["y"]))
- end
- end
- if not found then
- print("Nothing found")
- end
- sleep(3)
- end
Add Comment
Please, Sign In to add comment