How can I make a container to retain its inventory when broken similar to Shulker Boxes

Started by Mymann on

Topic category: Help with modding (Java Edition)

Last seen on 13:18, 7. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a container to retain its inventory when broken similar to Shulker Boxes

I want to make a block that can:

  • Have a GUI with interactable slots 
  • Retain its inventory when broken, like a Shulker box.

Anyone know how feel free to contribute

Last seen on 14:30, 7. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under "block entity", there…
Sat, 07/27/2024 - 13:45

Under "block entity", there is a tickbox saying "Drop items from inventory when block destroyed". Unticking that could likely fix your problem.

Last seen on 13:18, 7. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the answer, but…
Sat, 07/27/2024 - 15:28

Thanks for the answer, but doing that would just make the container void its inventory instead of storing it.