Stack to Nearby Chests

Stack to Nearby Chests

67.3k Downloads

unintended interaction: Better Bundle

octoshrimpy opened this issue · 4 comments

commented

Better Bundle adds an option to right click a chest while holding an empty bundle to transfer the chest content into the bundle.
https://modrinth.com/datapack/better-bundle

If quick stack to nearby containers is triggered while holding a bundle, it will attempt to stack the chest into the bundle. The datapack removes the bundle from the player's hand and spawns a new one, and with quick stack, it can sometimes spawn it within a chest block, completely invisible to the player. Since the bundle has a dedicated Rclick interaction as well as storage use, it might be nice to add check for bundles.

Unsure what direction to move towards, also posting this same text to the Better Bundle creator. =)

commented

Hey @octoshrimpy,

This is a client-side mod. The client can only move items into a chest after sending a packet to the server indicating the player has right-clicked the chest. The best I can do is disable Quick Stack to Nearby Containers feature when Better Bundle is installed and the player is holding a bundle. If you can install mods on the server, consider using server and client-side mods like Terrastorage. These mods can directly manipulate items in the chest on the server side without requiring the player to interact with the chest.

commented

Thank you for your suggestion! I'll consider adding this in a future update.

commented

Agreed on all points. the disabling when holding a bundle, in retrospect, does seem a bit harsh, but being client-sided I understand there aren't many other options. I sadly cannot use terrastorage as I'm trying to setup a vanilla-connect server, however it does have some cool features.

I am closing this and being more mindful of when I press the "pls sort stuff for me" button. :)

commented

as an aside: would it be possible, if datapack is installed, and a bundle is held, to drop the bundle on the ground? it would have a chance of falling in lava/void/etc, but as an unsafe option in settings, it might be worth exploring!