#Check damage recived without resistance

1 messages · Page 1 of 1 (latest)

static swallow
#

I wanna give player resistance and when it runs out all the resisted damage will be dealt to the player or applied as unclensable withering

rain tusk
#

Not feasible for a datapack. Sorry

#

Mostly because you want to know the exact amounts and sum them.

There is an extremely clunky way to do this but it won't be fool proof.

static swallow
#

ah if its not feasible I'm just gona count every hit as half a heart and it would still work

#

I'm guessing the uncurable withering would be easiest with scoreboard

rain tusk
#

An advancement with entiry_hurt_player can detect any amount of damage, but you can't easily tell how much damage was dealt or reduced with ease.

#

It detects all damage, even fall damage (despite the name)

#

If you need amounts of damage taken, a scoreboard tracking statistics might be more useful but I don't recall if we have stats tracking both

static swallow
#

wait doesnt resistance just reduce damage taken by 20% per level

rain tusk
#

It does and I just check the wiki for be sure, there are statistics for these values

#

So you can use scoreboards to track damage taken and resisted

#

Just make the objectives track the right statistics

#
Minecraft Wiki

Statistics is a game feature that allows players to track certain tasks in the form of numerical data.
Statistics are present only in Java Edition. Bedrock Edition has no equivalent of statistics in-game, but a part of statistics can be viewed on the player's profile screen.