-
-
Notifications
You must be signed in to change notification settings - Fork 799
Fix items not displaying on brushable blocks #6089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an issue where items were not displaying correctly on brushable blocks (suspicious sand/gravel) in Bedrock Edition. The fix addresses NBT format changes in Java Edition and adds a required block type field for Bedrock.
- Updated NBT tag access to use the correct field name and data type ("count" as int instead of "Count" as byte)
- Added a "type" field to the Bedrock NBT that specifies the brushable block type
- Updated copyright year to 2026
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...n/java/org/geysermc/geyser/translator/level/block/entity/BrushableBlockEntityTranslator.java
Outdated
Show resolved
Hide resolved
...n/java/org/geysermc/geyser/translator/level/block/entity/BrushableBlockEntityTranslator.java
Show resolved
Hide resolved
...n/java/org/geysermc/geyser/translator/level/block/entity/BrushableBlockEntityTranslator.java
Outdated
Show resolved
Hide resolved
| if (identifier == null) { | ||
| identifier = blockState.block().javaIdentifier().value(); | ||
| } | ||
| bedrockNbt.putString("type", identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the client handle weird types? e.g. sending "minecraft:glass" for some reason?
Malformed blockentity nbt is a thing, would be lovely if we'd have a safeguard
Bedrock now seems to require this new
typefield in the NBT which seems to always be equal to the block you are brushing, without this field the brushed item doesn't show.