My custom projectile collides with its shooter, where it's not supposed to.

Started by ScattTheCat on

Topic category: Help with modding (Java Edition)

Last seen on 16:07, 20. Aug 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My custom projectile collides with its shooter, where it's not supposed to.

Basically, when I use an item to fire a custom projectile, it seems to collide with its shooter in a way where it produces the sound and particle, but doesn't deal any damage, and the projectile still flies even though its pierce is set to 0. It's irritating to have the shooting and hitting sound play at once and the particle show up in the shooter's face. Any way to fix this?
 


Projectile's statsProcedures for the projectile (all 3 the same)Procedure called when the projectile hits anythingProcedure that's called when the Item is right clicked (shoots projectile)
Last seen on 16:07, 20. Aug 2024
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fixed it! For anyone else…
Thu, 06/27/2024 - 14:24

Fixed it! For anyone else having a similar problem, this is the procedure I put in the When Hitting Player trigger of the projectile:
The procedure I had to put when the projectile was hitting a player