{"id":22136506,"url":"https://github.com/olillin/blockstate-reader","last_synced_at":"2025-07-25T20:32:58.832Z","repository":{"id":174951036,"uuid":"445648774","full_name":"olillin/Blockstate-Reader","owner":"olillin","description":"Minecraft data pack for reading blockstates to NBT data","archived":false,"fork":false,"pushed_at":"2022-04-25T22:29:45.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-04T06:36:12.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"mcfunction","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olillin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-07T20:48:20.000Z","updated_at":"2023-10-04T06:36:15.009Z","dependencies_parsed_at":"2023-07-21T23:59:54.319Z","dependency_job_id":null,"html_url":"https://github.com/olillin/Blockstate-Reader","commit_stats":null,"previous_names":["olithehoodieboi/blockstate-reader","olillin/blockstate-reader"],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olillin%2FBlockstate-Reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olillin%2FBlockstate-Reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olillin%2FBlockstate-Reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olillin%2FBlockstate-Reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olillin","download_url":"https://codeload.github.com/olillin/Blockstate-Reader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227616292,"owners_count":17794208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-01T19:22:49.987Z","updated_at":"2024-12-01T19:22:50.609Z","avatar_url":"https://github.com/olillin.png","language":"mcfunction","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockstate Reader ![Minecraft version](https://img.shields.io/static/v1?label=minecraft%20version\u0026message=1.18.2\u0026color=informational\u0026style=for_the_badge) ![Latest release](https://img.shields.io/github/v/release/OliTheHoodieBoi/Blockstate-Reader?label=latest%20release)\nA Minecraft data pack for reading blockstates to an NBT storage.\n\n## Features\n- Read all blockstates of a block to an NBT storage\n- Read individual blockstates of a block to an NBT storage\n- Provides block tags for every blockstate\n\n## Usage\nTo read blockstates of a block you need to run the function **at the location of the block you want to check**.\n### Read all blockstates of a block\nRun the function `blockstate:store/all`. \nThis will clear **all** stored blockstate data. To preserve data run `blockstate:store/all_noclear` instead.\n### Read specific blockstate of a block\nRun function in `blockstate:store` corresponding to the blockstate you want to check for.   \nExample: `function blockstate:store/waterlogged` will read only the `waterlogged` data of the block and clear `read.waterlogged` if there is none\n### Access read blockstate data\nAll read data is stored in the data storage `blockstate:data` in the `read` tag.   \nTo view all blockstate data run `/data get storage blockstate:data read`   \nBlockstates are stored in individual tags such as `read.power`.\n### Clear storage\nTo clear stored blockstate data run the function `blockstate:clear`\n### Check if block has blockstate\nAll blockstates have their own tag under the `blockstate` namespace.   \nUsing this you can for example check if a block has the `facing` blockstate: `execute if block ~ ~ ~ #blockstate:facing`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folillin%2Fblockstate-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folillin%2Fblockstate-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folillin%2Fblockstate-reader/lists"}