Is it possible to detect when any projectile hits a block?

Started by NamelessKat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to detect when any projectile hits a block?

I'm trying to make something happen when any projectile like an arrow or a snowballs hits a block. I know how to do it with projectiles I've made myself but I would like it to work with anything that is classified as a projectile.

Any help is appreciated, thanks in advance!