{"id":20172971,"url":"https://github.com/marcono1234/light-level-datapack","last_synced_at":"2026-02-13T17:04:55.829Z","repository":{"id":103657877,"uuid":"218315652","full_name":"Marcono1234/light-level-datapack","owner":"Marcono1234","description":"Minecraft datapack querying the light level using block predicates.","archived":false,"fork":false,"pushed_at":"2019-10-30T15:57:49.000Z","size":12,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T05:43:15.771Z","etag":null,"topics":["datapack","minecraft"],"latest_commit_sha":null,"homepage":null,"language":"mcfunction","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Marcono1234.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-29T15:08:22.000Z","updated_at":"2025-05-01T06:39:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4618fac-57d1-4642-9e43-942810e976ec","html_url":"https://github.com/Marcono1234/light-level-datapack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"Marcono1234/datapack-template","purl":"pkg:github/Marcono1234/light-level-datapack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcono1234%2Flight-level-datapack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcono1234%2Flight-level-datapack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcono1234%2Flight-level-datapack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcono1234%2Flight-level-datapack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcono1234","download_url":"https://codeload.github.com/Marcono1234/light-level-datapack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcono1234%2Flight-level-datapack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datapack","minecraft"],"created_at":"2024-11-14T01:32:59.144Z","updated_at":"2026-02-13T17:04:55.813Z","avatar_url":"https://github.com/Marcono1234.png","language":"mcfunction","funding_links":[],"categories":[],"sub_categories":[],"readme":"# light-level-datapack\nMinecraft datapack which uses the `light` [block predicate](https://minecraft.gamepedia.com/Predicate) introduced in 19w38a and stores the result as scoreboard score.\n\n## Repository layout\nThe [datapack](/datapack) folder contains the actual datapack as a separate folder.  \nThis allows separating meta information (like this README file, license, ...) from files used by the datapack.\n\n## Usage\n### Initialization\nShould happen automatically when the datapack is (re-)loaded. However, it can also be triggered manually by running:\n```\n/function marcono1234:light_level/_init\n```\n\n### Actions\n#### Get light level\n1. Run\n    ```\n    /function marcono1234:light_level/get_light_level\n    ```\n\nAfterwards the fake player `#result` (since v1.1) and if an entity is executing the function that entity (i.e. `@s`) will have the light level value as `light_level` score.\n```\n/scoreboard players get @s light_level\n```\n\n:warning: The light level represents the \"visible light (`max(sky-darkening,block)`)\". Therefore outside during day it will be 15, making you unable to determine the block light level.\n\n### Removal\nTo remove all scoreboard objectives added by this datapack, run:\n```\n/function marcono1234:light_level/_remove\n```\n\nAfterwards the datapack folder should be removed since it won't work correctly anymore.  \nIt can be [initialized](#Initialization) to become functional again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcono1234%2Flight-level-datapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcono1234%2Flight-level-datapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcono1234%2Flight-level-datapack/lists"}