Skip to content
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

Copy item inventories when setting blocks. #7736

Open
wants to merge 2 commits into
base: dev/patch
Choose a base branch
from

Conversation

sovdeeth
Copy link
Member

Description

BlockStateMeta information is not copied to the placed block when settting blocks based on ItemTypes.
I could not find any general method to do this, though BlockState#copy(Location) is experimental, so it may be viable in the future. For now, I resorted to manually copying inventory information over for Container BlockStates.


Target Minecraft Versions: any
Requirements: none
Related Issues: #7735

@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Mar 22, 2025
@sovdeeth sovdeeth requested review from a team, Pikachu920 and Pesekjak and removed request for a team March 22, 2025 03:00
Copy link
Contributor

@Absolutionism Absolutionism left a comment

Choose a reason for hiding this comment

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

My approval matters 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants