Started by
FerretWithACatHat
on
Topic category: Help with Minecraft modding (Java Edition)
I am making an elemental mod and would like to make it so that when you are hit whilst wearing a special armour, the enemy that hit you gets set on fire. The time that they would burn for would be correlated with how much of the armour, (helm = 5 points, chestplate = 8 points, leggings = 7 points, boots = 4 points. Do calculations with these points to get the time)
you can detect when you get hit with the armor on, but I don't think you can detect what entity hit you. You might need custom code for this.
I wanted to do this too. Please update me if anything happens.
You can use the Entity attacked global trigger. And detect if the player has the special armor.