My ranged item's projectile is always hit me when I shoot.

Started by KOR_APUcard on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My ranged item's projectile is always hit me when I shoot.

I have created my own ranged item and tried to test. It's like a explosive what I wanted. But it always hits me first. (It's explode myself)

The projectile is correctly working, but it's always hit me first then moving correctly.
But I wanted this projectile to hit the target, not me.

It's very annoying. How to fix it?

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm having the same issue,…
Sun, 10/29/2023 - 15:11

I'm having the same issue, did you happen to find a fix to this? 

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
same issue for me
Mon, 12/23/2024 - 15:23

same issue for me

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I ran into this issue a…
Mon, 12/23/2024 - 16:06

I ran into this issue a while ago, and to fix it, I just removed the procedure that runs when the projectile hits a player, and I had it only set to run when it hits a living entity.

It still seems to hit other players and affect them fine even though it is set to run the procedure on living entities only, instead of also using the trigger for when it hits a player.

I'm not sure why, but the procedure trigger for when the projectile hits a player seems to be what causes the issue.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need to make a condition…
Mon, 12/23/2024 - 16:28

you need to make a condition "if not source entity the same entity as event/target entity"