I can't use the detect hit block function on my projectile

Started by domadex on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't use the detect hit block function on my projectile

I'm currently making a sword that allows you to throw it. However, in order to make sure it properly returns to the player after it's thrown, even if it hits a block, i need to detect if the projectile hits a block.

It uses a custom model, more specifically, this one: https://www.planetminecraft.com/texture-pack/oathbringer-shardblade/, however, through block bench, i have converted it to a java entity model as is necessary with custom projectile models.

Thanks for any help.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why can't you use the When…
Thu, 10/09/2025 - 15:22

Why can't you use the When projectile hits block trigger?