How to make armour have thorns like fire effect

Started by FerretWithACatHat on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make armour have thorns like fire effect

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)

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can detect when you get…
Mon, 11/09/2020 - 17:11

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.  

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to do this too…
Mon, 01/03/2022 - 16:02

I wanted to do this too. Please update me if anything happens.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the Entity…
Tue, 01/04/2022 - 02:04

You can use the Entity attacked global trigger. And detect if the player has the special armor.