Skip to content

Conversation

@GamerDuck123
Copy link
Contributor

  • Added ChestRule.kt which adds the proper storing of inventories in both single and double chests, as well as proper handling of breaking of chests (dropping items) and double chests (dropping items from the side that was broken and keeping the items in the other side intact)

  • Edited ChestPlacementRule.kt to ensure that NBT data is transferred on update

This should work with any world format that keeps block NBT data properly stored, only tested on Polar though.

NOTE My code for ChestRule.kt was translated from Java code, so it might not be the prettiest looking thing, I tried to clean it up a bit, but I might have missed a few things, it is functional though.

…th single and double chests, as well as proper handling of breaking of chests (dropping items) and double chests (dropping items from the side that was broken and keeping the items in the other side intact)

Edited ChestPlacementRule.kt to ensure that NBT data is transferred on update

NOTE My code for ChestRule.kt was translated from Java code, so it might not be the prettiest looking thing, I tried to clean it up a bit, but I might have missed a few things, it is functional though.
@TheNick24 TheNick24 changed the base branch from main to dev June 24, 2025 08:10
Copy link
Member

@Bloeckchengrafik Bloeckchengrafik left a comment

Choose a reason for hiding this comment

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

Again: It does not work on multiplayer. When multiple users open the same UI, both the open/closed handling fails and one inventory is created per player.

@Bloeckchengrafik Bloeckchengrafik changed the base branch from dev to main June 24, 2025 22:03
@Bloeckchengrafik Bloeckchengrafik changed the base branch from main to dev June 24, 2025 22:03
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