Storage Drawers: Natura Pack

Storage Drawers: Natura Pack

9M Downloads

[Suggestion] Have a configuration option that would prevent drawers from spilling inventory if they are broken by an explosion

mahldcat opened this issue ยท 4 comments

commented

It would be nice if there were some config option that would make drawers "auto tape" themselves in the event that they get broken by an explosion (TNT, Creeper, etc)

Use Case:
0. Player is on a server

  1. Player has a storage drawer with 7 emerald upgrades is in the world. (If my math is correct this drawer now holds 13 ^7 * 32 *64 items.
  2. This drawer is part of an automation that runs nonstop and hits the full capacity
  3. Disaster strikes and a creeper takes out the drawer network

Impact:
128,508,962,816 items now get dumped into a single chunk all at once...which may degrade sever performance slightly

Better Impact:
The drawer gets autotaped and a single item drops.

Further idea:
Make this "automatic tape" something that does not get removed by replacing the drawer, and instead needs an admin to do (perhaps a creative only "box cutter" item)?

commented

For comparison, GregTech's item barrels will never drop more than 512 item entities worth of items when broken, deleting excess items when the barrel is broken instead.

commented

For 1.13 I might just have these start dropping with their items by default. Trying to selectively auto-tape something also provides ways to exploit and bypass taping anyway. Unless players consider significant value in being able to still spill the contents everywhere.

commented

Deleting excess items seems... not great, particularly if it's, say, Neutronium (Avaritia). Auto-tape sounds good, but not the admin/creative only part, because then someone's gotta cheat to get them back, just for a feature implemented under the reason of saving lag.

commented

Sorry for the semi-necropost here, but I recently moved to 1.14.4 and the updated Storage Drawers for that version and noticed the auto-taping when breaking drawers. An option to have it spill the contents, perhaps Shift+Right-Click while holding a key, would be helpful on occasion. i.e. - I was putting item X into a two-drawer drawer before realizing I was going to have a lot of it and wanted to put it into a single-drawer drawer.