Power food

Started by Le_thibi on Fri, 09/16/2022 - 16:53

Topic category: Help with modding (Java Edition)

Last seen on 13:35, 27. Sep 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Power food
Fri, 09/16/2022 - 16:53

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.

Last seen on 16:00, 27. Nov 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What "powers" are you…
Fri, 09/16/2022 - 18:50

What "powers" are you talking about?

 

Last seen on 13:35, 27. Sep 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Powers as for the power of…
Sun, 09/18/2022 - 15:20

Powers as for the power of the devil fruit of the mod "mine mine no mi".

Last seen on 13:34, 25. Sep 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add a variable to every…
Sun, 09/18/2022 - 22:51

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)

Last seen on 13:35, 27. Sep 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok thank you very much for…
Mon, 09/19/2022 - 06:37

Ok thank you very much for your help. Have a good day.