How to add items in block inventory instead of set items?

Started by СоваСовик on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add items in block inventory instead of set items?
Sun, 05/17/2026 - 08:57 (edited)

I just want to make cobblestone generator block, with gui, but idk how to "generate" instead of set (not closed)

Edited by СоваСовик on Sun, 05/17/2026 - 08:57
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can get the number of…
Fri, 05/01/2026 - 20:30

You can get the number of items from a specific slot in a block's inventory, then set the slot to that many + 1 cobblestone.

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i know this method, but idk…
Sat, 05/02/2026 - 18:07

i know this method, but idk how to do that, can you explain it?