Topic category: Help with Minecraft modding (Java Edition)
MCreator 2022.2 / Minecraft Java Edition 1.18.2 / Forge 40.1.0
For context, my mod is based on Darkest Dungeon, and one of the first things I'm implementing is the Collect Bounty skill. Knowledge of the game is not necessary to understand my problem, but it explains some names.
I have a procedure (Stress Heal) that plays a sound, lights up the player for a second, changes the value of a player lifetime number variable and spawns a particle on the player's head, by just increasing the Y value. I made a test item that calls the procedure when right-clicked and it works perfectly.
However, when I call Stress Heal from a different procedure - Crit Effects, which has a chance to be called by the Collect Bounty procedure, which in turn happens whenever the player attacks with a weapon I added, - every effect listed above happens as usual, except that the particle does not spawn, at all. All this time, that test item works just fine. As far as I can tell, all the parameters are sent properly, unless I happen to have missed something.
Feel free to ask for any sections of the code or logs if needed.