Glowstone-Legacy icon indicating copy to clipboard operation
Glowstone-Legacy copied to clipboard

Breaking chests does not drop its contents

Open choyiny opened this issue 10 years ago • 7 comments

Breaking chests does not drop the items inside it. It will be gone forever.

choyiny avatar Sep 21 '14 08:09 choyiny

In creative or survival? It should work in survival, but nothing is dropped in creative

dequis avatar Sep 21 '14 09:09 dequis

Creative mode - It should still drop items in creative mode

choyiny avatar Sep 21 '14 09:09 choyiny

The "problem" is that the current implementation just changes the drop list of a chest to add all items; but since in creative not a single item is dropped, the drop list is ignored.

Tonodus avatar Sep 21 '14 10:09 Tonodus

Maybe change it so that we do dropItemNaturally() on block break, rather than setting the drops? That way the items will be dropped regardless, while the chest itself won't be.

ZephireNZ avatar Sep 21 '14 19:09 ZephireNZ

@ZephireNZ Wouldn't that have the same problem? I don't think Glowstone currently implements item drops, so the items would just disappear just like they do now.

daboross avatar Sep 21 '14 19:09 daboross

Dropping items is possible.

Tonodus avatar Sep 21 '14 19:09 Tonodus

That's a different problem, though. As long as we tell it to drop the right thing, we can fix that later. On 22/09/2014 7:53 am, "Dabo Ross" [email protected] wrote:

@ZephireNZ https://github.com/ZephireNZ Wouldn't that have the same problem? I don't think Glowstone currently implements item drops, so the items would just disappear just like they do now.

Reply to this email directly or view it on GitHub https://github.com/GlowstoneMC/Glowstone/issues/328#issuecomment-56310402 .

ZephireNZ avatar Sep 21 '14 19:09 ZephireNZ