Started by
moratorysky
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.