Code block for detecting how many slots a block's inventory has

Started by QbertGuyGo on

Topic category: Feature requests and ideas for MCreator

Active 6 months ago
Joined Dec 2015
Points:
749

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Code block for detecting how many slots a block's inventory has

If you try to access a block entity's slot in that does not exist (for instance, slot 12 in a hopper) the game can crash. It would be great to detect how many slots a block entity has with a code block, or even check if a block has an inventory at all!

Active 6 months ago
Joined Dec 2015
Points:
749

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Also... a "first open slot…
Sun, 01/14/2024 - 07:25

Also... a "first open slot of block at xyz" and "does block at xyz have open slots" would be super handy

Active 1 year ago
Joined Mar 2023
Points:
307

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
but im very much so backing…
Wed, 02/14/2024 - 21:44

but im very much so backing this idea, this is the type of procedure block that makes life so much easier !!!