help with variables/devil fruit

Started by Caiopaco11 on

Topic category: Help with modding (Java Edition)

Last seen on 13:44, 14. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with variables/devil fruit


hello, I'm trying to make a devil's fruit, basically when I eat the fruit a lifetime variable will become 1, and if the player try to eat another fruit he dies, but i dont know how to do that, if the player dies the variable turn to 0 again, any help would be gorgeous. :)

Last seen on 20:44, 4. Jul 2023
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ask chatGPT it knows lots  
Sun, 05/21/2023 - 16:07

ask chatGPT it knows lots

 

Last seen on 18:55, 8. Apr 2024
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a procedure with a…
Fri, 06/23/2023 - 15:46

make a procedure with a global trigger that checks when player is finished using an item or has finished eating food to check what the lifetime variable is whenever it is called. if 2 then kill player

Last seen on 14:56, 20. Dec 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i check if it is 2  
Wed, 11/29/2023 - 17:53

how do i check if it is 2