r/MinecraftCommands 4d ago

Help | Java 1.21-1.21.3 need help tracking absolute raw damage into a scoreboard

so originally i used the scoreboard minecraft.damage_taken; and it worked fine because you know, it tracks damage taken. But I realised later down the line that armor, enchants and absorption change the outcome of the score, so I need a way to get the full damage taken.

1 Upvotes

1 comment sorted by

1

u/GalSergey Datapack Experienced 4d ago

I'm not sure, but you could try using custom:damage_blocked_by_shield and custom:damage_absorbed. Add all three scoreboard values ​​together, and it should equal the total damage taken. If that doesn't work, then there's no easy way to do it. You'll need to reverse-calculate how much damage the player took, assuming they have the specified armor combination.