Started by
Hamio
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, how are you?
I would like to ask two questions about MCREATOR programming.
1st - Is there any method of changing the effects of Vanilla potions?
2nd - I'm thinking about modifying the "Nausea" effect to prevent the player from eating while under this effect. If it is not possible to modify the Vanilla effect, is it possible to create a new effect that does this? If so, could anyone help me with the codes?
Thank you in advance for anyone's contribution.
You don't necessarily need to create new effects to modify the vanilla effects of the player; you can just make a procedure that runs on player update tick, and checks if they have a certain effect. (In this case, Nausea.) For your specific problem, you could try creating a procedure that triggers 'when player finishes using item,' checks if the item is edible and the player has Nausea, and, if both are true, cancels the trigger. (I'm not sure if this will work for eating, if the trigger is actually cancelable, but the basic idea still stands.)