Projectile gives the person who shot the projectile a potion effect instead of the entity hit with the projectile.

Started by CharlyMan on

Topic category: Help with modding (Java Edition)

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Projectile gives the person who shot the projectile a potion effect instead of the entity hit with the projectile.

Anybody know how I can fix this issue.

My current procedure is:

[Add potion with level [0] for [20] ticks to [Event/target entity] type [CUSTOM EFFECT]]

It is also on When projectile hits living entity trigger

 

Last seen on 00:46, 5. Jun 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use 'source entity'.
Wed, 06/29/2022 - 04:32

Use 'source entity'.

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey Octave_, This still…
Wed, 06/29/2022 - 17:23

Hey Octave_, This still gives me the effect instead of the entity that I shot the projectile with. 

Last seen on 00:46, 5. Jun 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would you be able to send a…
Wed, 06/29/2022 - 22:29

Would you be able to send a screenshot of the procedure or any other details about what the custom effect is? Currently you are only applying it for 20 ticks which isn't a very long time so you might not even realise it's being applied.

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Heres a couple images from…
Thu, 06/30/2022 - 04:05

Heres a couple images from the workspace: https://imgur.com/a/eorxsik. Also, I know the entity is not being effected because when I hit an entity it gives me the effect and I dont see any particles from the entity.

Last seen on 00:46, 5. Jun 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok so I have set up these…
Thu, 06/30/2022 - 04:31

Ok so I have set up these procedures to test where the issue is coming from - 

1. Triggers from on projectile hits living entity:
procedure

2. Triggers on effect active tick:
procedure

THESE ARE BOTH WORKING FOR ME!

So, your issue is stemming from elsewhere - The most likely suspects for your issue are either how your effect or your projectile/item is set up. For me to be able to figure out your issue I would need to know how these are set up - but beforehand make sure to triple check which triggers you are putting your procedures under. There may also be another element of your mod that is interfering with this, so keep that in mind.

Sidenote - if all you want to do is keep the target in place, just apply slowness with an amplifier of 255. This is a lot better for the performance of your mod too as it will not have to update these three motion vectors 20 times a second.

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks Octave_! I also just…
Thu, 06/30/2022 - 20:32

Thanks Octave_! I also just removed the effect and put it on slowness 255 since performance should be something focused on when making a mod.

Have a good day!

Last seen on 15:17, 31. May 2023
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem. I…
Wed, 05/31/2023 - 15:13

I have the same problem. I created a throwable ranged object that creates particles when it hits someting. But the particles also spawn once emideatly after it is thrown. So for some reason projectiles in mcreator may hit the entity the originate from. Maybe it is thier speed thats the problem?