so the longer it has been on the lower the max health, it needs to reset to normal max health ofcourse after, I know I can grab the entity age but that's not exactly the age of the effect.
event.create('redsmod:withdrawal')
.modifyAttribute('minecraft:generic.movement_speed',
"b80f8b5e-1b28-11f0-9cd2-0242ac120002",
-0.1, 'multiply_total').color(Color.RED)
.effectTick((entity, lvl) => {
})
I want it to be capped at like 3 hearts at maximum time. (which will be a fixed number)