How to make a custom Protection Enchantment?

Started by Real_bizzy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a custom Protection Enchantment?

Hey guys, I wanted to make an enchantment similar to protection but it reduces damage from frost, but I can't seem to find a way to make this, may somebody please help? (Sorry if the answer is obvious i just returned to mcreator after half a year)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
still need help with this
Mon, 02/16/2026 - 05:16

still need help with this

Joined Jan 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem, did…
Wed, 03/11/2026 - 08:47

I have the same problem, did you manage to figure it out?

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for the late reply but…
Tue, 04/28/2026 - 06:07

sorry for the late reply but no sadly

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Other than doing this with…
Tue, 04/28/2026 - 15:39

Other than doing this with custom code I haven't found this out yet. If you would be interested for the code, reply ig

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont know how to use code …
Fri, 05/01/2026 - 23:25

i dont know how to use code :sob: otherwise id take it

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unfortunately, I don't know…
Sat, 05/02/2026 - 14:39

Unfortunately, I don't know how to do it with base mcreator
However, using Snails Plugins, you can easily do this:

 

Make a new procedure and change the global procedure to "entity attacked"

Check if the entity has armor on that has your enchantment (0 is helmet, 1 is chest, 2 is leggings, and 3 is boots)

Then, check if the damage the entity has received is the type of damage you want to be reduced (I have freeze here)

Afterwards, using the set value block in the advanced tab from Snails Plugins, you can set the resulting damage to the "amount" the entity takes divided by the level of the enchantment multiplied by 1+[whatever amount you want it reduced by]
For example, I have it so where every level of said enchantment will reduce the damage by 10% for level 1, but 55% for level 2. If you want these to be more linear, mess around with math procedures to get a specific amount


procedure

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
tysm! idm using plugins so i…
Sun, 05/03/2026 - 06:57

tysm! idm using plugins so i will definetely use this!

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i only just found out its…
Sun, 05/03/2026 - 07:03

i only just found out its not for 2026.1 :sob:

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think you could make a…
Sun, 05/03/2026 - 11:12

i think you could make a procedure to check if the player is being frost damaged, and provide immunity to it or just deal like, 50% damage

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that the ability to…
Sun, 05/03/2026 - 16:00

I think that the ability to set the value of certain global procedure triggers (including damage done) was recently added to core MCreator, so you might not need a plugin with 2026.1 although I could be mistaken.

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i mainly dont know how to do…
Mon, 05/04/2026 - 07:26

i mainly dont know how to do the damage immunity part :p