How can i make this?

Started by CoolGamez21 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make this?

How can i make a chest that can't have items into it but in the chest, it generates a random item every second inside of it?

BTW it could be rly helpful if there was a video or image

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You make a chest block, then…
Fri, 06/12/2026 - 20:48

You make a chest block, then a gui, assign the gui to the block, within the gui use an output slot, then on the block tick, set a random item into slot 0. Use a tag and add every block and item into it, then spawn a random item from tag:custom_random_item_tag. Also set the item to be air in slot 0 before resetting the item to be a new random one to avoid any issues