Potion effect damage over time

Started by moratorysky on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Potion effect damage over time

hello, i want to add a potion effect which is bleeding and it would work the same way as posion however i have no idea how the procedure is supposed to look like. im fairly new to mcreator so if anyone could visually show i would be highly grateful

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You do the same thing as…
Wed, 05/06/2026 - 21:31

You do the same thing as poison, deal damage each tick on the effect active tick procedure.

If you want less frequent damage use decimals or use a player lifetime number variable, default 0. On each tick check whether the variable = 20 for damage each second, if it doesn’t = 20 then add 1 to the variable. If it does = 20 then set variable to 0 and deal 1 damage or so.