信息
Crates Felt Blu 是一个小型、简单的模组,它会强制 Immersive Engineering 中的箱子在被破坏时掉落其内部物品。
制作此模组的原因是,箱子相对容易合成,而一旦你能够获取它们,物品管理就不再是问题。这使得原版潜影盒以及 Wearable Backpacks 等模组中的背包变得毫无用处。移除箱子被破坏时保留其内部物品的能力可以解决这一问题,同时不会阻止箱子作为装饰性存储方块的使用。
我曾尝试通过拉取请求在 Immersive Engineering 中实现将此功能作为配置选项,但被告知该拉取请求会被拒绝,因为这会使箱子变成昂贵的箱子(即储物箱)。我个人认为它们足够便宜,可以作为装饰性存储方块使用;考虑到 Immersive Engineering 中的大多数东西都很昂贵,且主要因其美观的设计而值得使用,我对此回复感到有些讽刺。
如果你关心这个模组是如何工作的,它所做的只是添加一个单一的事件处理器,用于监听方块掉落事件。当木制箱子或加固箱子被破坏时,会从掉落的物品中读取其库存并将其掉落至世界中,同时从原始掉落物中移除其“库存”标签。这非常简单且不具侵入性;没有使用任何肮脏的黑客手段。
特别感谢
BluSunrize 和 Damien Hazard,以及所有为创建如此出色的模组 Immersive Engineering 做出贡献的人。
Information
Crates Felt Blu is a small, simple mod that forces crates from Immersive Engineering to drop their contents when broken.
The reasoning behind making this mod is that crates are fairly easy to craft, and once you have access to them inventory management becomes a total non-issue. This makes vanilla shulker boxes useless, as well as backpacks from mods like Wearable Backpacks. Removing crates' ability to hold their inventory when broken solves this problem without preventing crates from being used as decorative storage blocks.
I had offered to implement this as a config option in Immersive Engineering via a pull request, but I was told that such a pull request would be rejected, since it would make crates nothing more than expensive chests. Personally, I think they're cheap enough to be used as decorative storage blocks, and I found the response a bit ironic considering most things in Immersive Engineering are expensive, and mainly worth using for their aesthetically pleasing design.
In case you care about how the mod works, all it does is add a single event handler that listens for block drop events. When a wooden crate or reinforced crate is broken, it's inventory is read from the dropped item and dropped in the world and the original drop has it's "inventory" tag removed. It's quite simple and non-invasive; no dirty hacks were used.
Special Thanks
BluSunrize and Damien Hazard, as well as all contributors to Immersive Engineering for creating such a nice mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧