Skip to content

Conversation

GamerDuck123
Copy link
Contributor

  • Added BarrelRules.kt which adds the proper storing of inventories for barrels, as well as the proper breaking procedure (items falling to the ground)

Just like my chest block handler, this should work with any world format that retains block NBT data, I only tested on Polar and can confirm it to work on polar

NOTE My code for BarrelRules.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.

…or barrels, as well as the proper breaking procedure (items falling to the ground)

Just like my chest block handler, this should work with any world format that retains block NBT data, I only tested on Polar and can confirm it to work on polar

*NOTE* My code for BarrelRules.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:09
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.

There is one major issue with this PR: 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.

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