Removing amount of items from chest, replace with other item

Started by R_XclusiveNL on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removing amount of items from chest, replace with other item

Hi,

 

Im making a mod where if theres more than 9 items in a specific chest,

it removes those 9 specific items, and adds a new item in it.

Lets say if theres more than 9 iron, it will remove 9 iron, and replace it will 1 iron block.

Ive tested this procedure > https://prnt.sc/24yhjad

And also the Slot & GUI versions of these.

Nothing works? can someone help me out?

Much appreciated

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where does the procedure…
Wed, 06/29/2022 - 10:27

Where does the procedure triggers? It should be on the Update tick trigger of the chest block.

Also, waht is the Moditemtime variable? if it isn't 0, the if block won't proceed. Maybe you should use the "send in chat to all players" block and print this variable.

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also keep in mind that based…
Thu, 06/30/2022 - 07:38

Also keep in mind that based on the procedure you have linked, it will only check if the slot with ID 0 (which should be the top left slot) has a total of 9 items in it's stack.