Skip to content

Add support for block entities to level#213

Open
RadiatedMonkey wants to merge 29 commits into
mainfrom
block-entities
Open

Add support for block entities to level#213
RadiatedMonkey wants to merge 29 commits into
mainfrom
block-entities

Conversation

@RadiatedMonkey
Copy link
Copy Markdown
Member

Implements block/tile entities in the level crate, including definitions for the entities in the latest version of the game.

@RadiatedMonkey RadiatedMonkey added C-Level Category: Level P-Medium Priority: Medium T-Feature Type: Feature labels Apr 23, 2026
@RadiatedMonkey RadiatedMonkey self-assigned this Apr 23, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in bedrock-rs Apr 23, 2026
@RadiatedMonkey RadiatedMonkey moved this from Backlog to In progress in bedrock-rs Apr 23, 2026
@RadiatedMonkey RadiatedMonkey marked this pull request as ready for review April 30, 2026 23:37
@RadiatedMonkey
Copy link
Copy Markdown
Member Author

@OmniacDev @xRookieFight Do you guys know any block entities that are still missing in the list?

@theaddonn
Copy link
Copy Markdown
Member

I wonder if we should really hardcode what kind of block entities exist or if thats more of a server specific thing

@RadiatedMonkey
Copy link
Copy Markdown
Member Author

I wonder if we should really hardcode what kind of block entities exist or if thats more of a server specific thing

For most people just trying to edit regular worlds this will be a lot easier than having to match all the structures manually.

You can also just parse it as an untyped nbtx value if you want. I'm going to implement a simple parser that just converts between nbtx::Value and structs as well.

@OmniacDev
Copy link
Copy Markdown
Member

maybe we should have a vanilla crate then (or something similar) which has these definitions?

@xRookieFight
Copy link
Copy Markdown
Member

@OmniacDev @xRookieFight Do you guys know any block entities that are still missing in the list?

I don't see anything missing, also CI failing

@friuli-jokyo
Copy link
Copy Markdown

Hello there! This PR is very helpful for my project. I tried it with my world and noticed that the fields in Noteblock and ShulkerBox seem to be private.

@RadiatedMonkey
Copy link
Copy Markdown
Member Author

Hello there! This PR is very helpful for my project. I tried it with my world and noticed that the fields in Noteblock and ShulkerBox seem to be private.

Thank you, they should be public now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Level Category: Level P-Medium Priority: Medium T-Feature Type: Feature

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

5 participants