Skip to content

Block entities using NMS#4

Open
Alvinn8 wants to merge 6 commits into
ModernSpout:target-for-pr-4from
Alvinn8:block-entities
Open

Block entities using NMS#4
Alvinn8 wants to merge 6 commits into
ModernSpout:target-for-pr-4from
Alvinn8:block-entities

Conversation

@Alvinn8
Copy link
Copy Markdown
Contributor

@Alvinn8 Alvinn8 commented Mar 26, 2026

Adds the ability to register custom block entity types that can be used to make custom block entities. Currently, this is only doable using NMS. A next step would be to add a way to do this using the API, which I'm thinking can be a separate PR.

Translating to the client is straightforward since the client does not need to know which blocks are block entities, so the packets are skipped.

run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
./gradlew applyPatches --stacktrace
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked at the build file since Paperweight updated. I kind of didn't want there to be proper JARs at first haha. But now it's time!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Now it instead fails because the dev bundle is not published. So jars still have to wait if that is desirable 😄

Comment thread README.md
Alvinn8 added 3 commits March 28, 2026 20:15
Ideally an appropriate subclass that provides plugins with a way to access custom data from the block entities shuold be returned here. For now, return CraftBlockState.
@Alvinn8 Alvinn8 marked this pull request as ready for review March 28, 2026 21:03
@MartijnMuijsers MartijnMuijsers changed the base branch from master to target-for-pr-4 April 22, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants