Started by
Le_thibi
on
Topic category: Help with Minecraft modding (Java Edition)
Good morning. First of all, I would like to apologize for my English, because I am a lousy translator. That’s one problem I would like to create object that when I eat it would allow me to give powers (other than potion effects) but I can’t and so I would like to know if you knew how to achieve this? T
hank you for taking the time to read good day.
What "powers" are you talking about?
Powers as for the power of the devil fruit of the mod "mine mine no mi".
Add a variable to every player called "DFPID" then set it to 0 by default and when the player eats it set it to the Devil Fruit's power ID (maybe 1) then add the triggers for your power and then surround the power ability code with an if statement to check for the "DFPID" and see if it equals the powers ID (Say 'DFPID == <PowerID>' where <PowerID> is replaced with the Powers ID)
Ok thank you very much for your help. Have a good day.