How do I add Permanent buffs to my potion?

Started by Pixel_PedroYT on Wed, 06/09/2021 - 18:32

Topic category: Help with modding (Java Edition)

Last seen on 18:05, 28. Feb 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I add Permanent buffs to my potion?
Wed, 06/09/2021 - 18:32

Hi! I'm new to these forums but I already use MCreator for quite some time. I'm currently working on a mod in which I'm trying to add a potion that gives you permanent buffs such as 60 max health (3 health bars), deal 3 damage with your hand, be a bit quicker and take less damage, all of these things have effects for them (health boost, strength, speed and resistance) but I want it so even after dying you keep these buffs. Can anybody help me?

Last seen on 18:05, 28. Feb 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
pls?
Wed, 06/23/2021 - 12:57

pls?

Last seen on 12:05, 19. Jul 2022
Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Your Effect - Triggers - On…
Wed, 06/30/2021 - 18:53

Your Effect - Triggers - On Potion active tick.

Last seen on 18:05, 28. Feb 2023
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hi, sorry for the late…
Fri, 07/02/2021 - 23:01

Hi, sorry for the late response but by doing that the effects wont keep after you die, I want it so when you die you still keep them.

The best thing I could find is that after drinking the potion, the game would keep running /effect commands, but  then it wouldn't work for health boost as it would keep setting your health do the value in the command, not letting you to heal.