Started by
CharlyMan
on
Topic category: Help with Minecraft modding (Java Edition)
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
Use 'source entity'.
Hey Octave_, This still gives me the effect instead of the entity that I shot the projectile with.
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.
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.
Ok so I have set up these procedures to test where the issue is coming from -
1. Triggers from on projectile hits living entity:
2. Triggers on effect active tick:
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.
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!
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?