Need Help with Procedure: Throw Item That Returns to Player or Adds to Inventory

Started by Foooootball on

Topic category: Advanced modding

Joined Jul 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need Help with Procedure: Throw Item That Returns to Player or Adds to Inventory

I'm trying to make a procedure in MCreator and I'm stuck. I want to create an item that, when thrown:

  • If it hits a mob or player: it adds a specific item to the thrower's inventory.
  • If it hits a block or misses: it returns to the player who threw it (like a boomerang or trident).

Does anyone know how to make this kind of procedure work?

I'm not sure how to detect what the projectile hits and then handle different outcomes. Any help or example procedures would be awesome.

Thanks in advance!