local d = peripheral.find("environment_detector") local entities = d.scanEntities(5) if #entities > 0 then -- This prints every "hidden" key in the entity table for k, v in pairs(entities[1]) do print(k .. ": " .. tostring(v)) end else print("No entities found to inspect.") end