Mekanism Tools

Mekanism Tools

77M Downloads

Personal chests don't drop their contents when destroyed by creepers

KirikaAetheria opened this issue ยท 4 comments

commented

Issue description

Tested with no mods other than Mekanism and JEI Installed

When Personal Chests are placed in the world, Creeper explosions will cause them to be deleted, and none of their contents will drop.

Steps to reproduce

  1. Get a Personal Chest
  2. Spawn a Creeper next to it
  3. Creeper explodes, causing the chest and its contents to vanish

Minecraft version

1.16.5 (Latest)

Forge version

36.2.0

Mekanism version

10.0.21 (Latest)

Other relevant versions

No response

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

No response

commented

that's a pretty good solution, even more so if it fits the vanilla game's handling of this sort of situation. should save a lot of frustration in the long run, thank you for your time and for looking into it

commented

I wouldn't consider it a bug either, but thought I'd report it since it felt like unintended behaviour. Otherwise it'd be quite a punishing mechanic for seemingly no reason, especially given how large their inventories are. As it stands, a creeper in the wrong place might cause players to lose a few hours of progress

commented

Personal chests keep their contents when broken so I don't think this is technically a bug, but I will think about making the chests potentially immune to explosions/not be able to have the item destroyed by the initial explosion given the fact that a normal chest would then drop the contents instead.

commented

The solution I ended up going with as I don't think there is an easy way to only drop the contents into the world if there are some and it would get destroyed is that I made all our blocks that store things (so personal chest, machines, etc) not be able to be destroyed from the initial explosion. Now if a second explosion goes off before you can pick up the item... it will still be able to be lost but at least it should be a bit more forgiving and handled the same way vanilla handles shulker boxes.