Keep Potion Effects after death

Started by Jaysonsup on Thu, 06/02/2022 - 04:48

Topic category: Help with modding (Java Edition)

Last seen on 17:37, 11. Aug 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Keep Potion Effects after death
Thu, 06/02/2022 - 04:48

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?

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?

 

Last seen on 17:37, 11. Aug 2022
Joined Jul 2021
Points:

User statistics:

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

ok ill try that

Last seen on 15:17, 6. Jul 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 17:37, 11. Aug 2022
Joined Jul 2021
Points:

User statistics:

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

where is the respawn procedure

Last seen on 15:17, 6. Jul 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 17:37, 11. Aug 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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