Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scanner = peripheral.wrap("back")
- blocks = scanner.scan(15)
- if blocks ~= nil then
- for _, block in pairs(blocks) do
- if block.name == "allthemodium:allthemodium_ore" or block.name == "allthemodium:allthemodium_slate_ore" then
- print(block.x .. " " .. block.y .. " " .. block.z)
- end
- end
- else
- print("Couldnt Scan")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement