Started by
Pwdell
on
Topic category: Help with MCreator software
I am making this gun that inflicts poison effect whenever it hits entity or player, but it always gives the poison effect to the shooter as well. Can i do something about this?
Don't use when projectile hits player trigger. When projectile hits living entity will still affect other players, so I don't know why when projectile hits player exists.
edit: when projectile hits player is what is affecting the shooter.
ty
edit: thanks for help
i removed the "player hit" procedure and it works just fine, however, if i shott and walk forward at the same time, then it still hits me, I guess I can not do anything about that, but when the effects wears off, there is still the poison icon in my inv at it says: poison 0:00. Is that problem with my game or the mod? ty again
the poison 0:00 is a bug that can be fixed if you put your entire procedure inside of an if block with the condition (not(is provided world client-side))
okay, that will not affect my game or server in any way right?
It won't affect your game or server, I use it for almost all of my procedures. The only possible problem is if your procedure tries to do something that needs to be client-side, but even then it just won't do anything.