Removing an object by condition when dropped

Started by Raspad on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removing an object by condition when dropped

Tell me how to remove an item at the moment of throwing it out if the condition is met, and otherwise the usual fall. Since the “remove 1 item from this stack” node does not work.

 

Basically, I want to make sure that a certain item is charged when it is in the second hand, and the desired item is thrown out through Q . I made a throw trigger on a resource item, checking to see if there was anything charging in the alternate hand. But I don’t understand how to remove an item without it falling to the ground as loot until, for example, the condition for the number of “absorbed items” is met.