Get inventory size

Started by Alvieris2002@gā€¦ on Wed, 01/05/2022 - 01:23

Topic category: Help with modding (Java Edition)

Last seen on 03:36, 24. May 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Get inventory size
Wed, 01/05/2022 - 01:23

How can I verify the size of the inventory? If that element is there to add a number variable but when passing the maximum number of slots the game closes at the moment of activating the procedure, I want to make a block like the hopper that can extract elements from any block with inventory. If anyone can help me thanks