Started by
Caiopaco11
on
Topic category: Help with Minecraft modding (Java Edition)
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. :)
ask chatGPT it knows lots
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
how do i check if it is 2