Keep Potion Effects after death

Started by Jaysonsup on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keep Potion Effects after death

Hey how do I keep potion effects after death? I have an item where when I right click it gives me strength 1, When I die it goes away. So can somebody tell me how i can make it stay?

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe creating a loop on…
Thu, 06/02/2022 - 09:44

Maybe creating a loop on give potion effect until another right click on item would help?

 

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok ill try that
Thu, 06/02/2022 - 19:40

ok ill try that

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a player_persistent…
Thu, 06/02/2022 - 21:31

create a player_persistent variable, then when you right click the item it sets your variable to true

create a procedure that activates when the player respawns, then it checks if the variable is true, and if so, it gives the effect

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where is the respawn…
Fri, 06/03/2022 - 18:16

where is the respawn procedure

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it's a global trigger, click…
Fri, 06/03/2022 - 20:19

it's a global trigger, click the dropdown on the green event block when you first create the procedure

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks so much man I've been…
Fri, 06/03/2022 - 21:16

Thanks so much man I've been wanting to this for so long