Started by
TetheredToEarth
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a function where if you attack a creature a certain amount of time it will play a particle effect and do a percentage base amount of damage except when i do it it does not work I have no idea what to do and very confused on the matter. if you have any idea how to do this (which im sure someone will im not the brightest) if you want to know what its supposed to be like im taking reference from the dark souls series in particular Elden ring (patch 1.6 and lower) please help with the matter.
I dont play Elden ring but i can help with a max health precentage damage bleed. If i understand right you mean all damage from the player will bleed the target. The procedures will be the same but if you only want specific weapons to apply it then you need a different procedure. Anyways, here is the procedures:
Basicly, make a [potion effect] [particle] [potion tick] and [global trigger]
The potion effect, in this case a bleeding debuff that deals percentage max health damage.
As you can see, this deals 5% max health damage, use 10 instead of 20 to deal 10% max health. This is very overpowered so i recommend a lower % and lower bleed duration.
Then the global trigger.
So, all attacks deals max health over time damage, the debuff stacks duration but not damage, this would be a bit more complicated.
Hope this helps you out!
This is somewhat of what im talking about (the percentile based dmg) but im also trying to make it where the bleed build up where it doesnt effect you until it is fully built up
Oh i see, it is possible to cheat around it by adding a potion effect that has multiple versions, so when target is hit add this effect, then check if they have this hidden potion effect and add the next removing the old one, finnaly for the last one, check that they have that one and apply the bleed if the target has the last hidden potion effect.
I find that potion effect is ussualy the easiest way to add hidden debuffs or buffs to entites.
Is it possible to make this only happen with a certain weapon? I've been fiddling around for a while, but nothing is working.