Crates Felt Blu - Modification for Immersive Engineering
This small modification changes the behavior of crates from the Immersive Engineering mod, forcing them to drop their contents when broken.
The main idea behind this change is that standard Immersive Engineering crates are too easy to craft, making inventory management overly simple. This devalues many other storage systems, including standard shulker boxes from vanilla game and backpacks from various mods. With the new mechanics, crates can still be used as decorative storage blocks, but when broken, all items inside will drop into the world.
The mod author initially offered to add this function as a setting in Immersive Engineering itself, but the developers refused, arguing that it would turn crates into just expensive chests. However, considering that many elements of Immersive Engineering are valued precisely for their aesthetic design, such a solution seems quite logical.
Technically, the modification works very simply - it adds an event handler that tracks the moment when wooden and reinforced crates are broken. When destroyed, the inventory is read from the dropped item, items are thrown into the world, and the "inventory" tag is removed from the original drop. The implementation is clean and unobtrusive, without using dirty hacks.