Started by
The Administrator
on
Topic category: Help with MCreator software
Hello, Ive been trying to create a procedure that makes it so that certain armor pieces that I have made reduce incoming damage by a percentage, but am stuck on the part where it reduces the damage. So far I have:
Event trigger - triggered by external call or when (global trigger): Entity Attacked
If : Get item from armor slot 0 of event/target entity = (helmet i created)
do :
But as I said before I don't get how to actually reduce the incoming damage, I couldn't even find any tutorials about it. Any help is appreciated thanks.
Hello, you can adjust the incoming damage in the armor settings.
By "Toughness" and "Damage Value"
Hello, thank you for your reply, but the Toughness and Damage Value are only capable of reducing damage by set numbers like reducing a 10 attack damage hit to a 5 by having a certain amount of armor. But if you were to get hit by say a 20 attack damage hit, it would only reduce to 15. What I'm hoping to do is actually reduce damage by a percentage. So for example, you can get hit with a 50 attack damage hit and it become 25, then in the very next second if you get hit by a 200 attack damage hit it become 100. (I know normally your Minecraft character wouldn't survive any of these hits but it's for a mod I'm making, just roll with it.)
Closest thing I can think of is giving the player a specific level of resistance just before damage is applied. Resistance reduces damage for 20% per level. Level 1 reduces 20%, level 2 reduces 40% etc.
Hello, thank you for your reply as well, that's a good idea. But unfortunately it doesn't help with the percentages i want to be able to do such as 4% and 50% reduction. Its a good idea thought and I will try and see if I can get something like that to work while waiting for more replies.
Ah true. I wonder if you can check the amount of incoming damage, cancel the damage, and instead deal a percentage of the source damage to the player.