Add an item to a slot when the GUI is not open

Started by MahyAss on Sat, 04/23/2022 - 18:02

Topic category: Help with modding (Java Edition)

Last seen on 15:14, 30. Apr 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add an item to a slot when the GUI is not open
Sat, 04/23/2022 - 18:02

I would like to make that if an entity collides with the block, it adds an item in a slot when the GUI is not open but the problem is that I should not use itemstack. How can I solve the problem ?

Procedure

Last seen on 15:14, 30. Apr 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I found the correct block
Sat, 04/23/2022 - 19:03

I found the correct block