How would I make enchantments that modify attributes such as armor?

Started by tazzan on Tue, 06/28/2022 - 02:58

Topic category: Help with modding (Java Edition)

Last seen on 03:22, 16. Jul 2022
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would I make enchantments that modify attributes such as armor?
Tue, 06/28/2022 - 02:58

Hey there MCreator community! I'm a long-time user but I've never really delved into making enchantments with the software before. As I understand it, enchants that don't directly affect damage taken (similar to protection) need to be activated via global procedures. There's only one issue: I wanted to make an enchantment that is applicable to shields and gives the player extra armour points when held in their main-hand/off-hand, but I can't figure out a way to make it so. One solution I had was to modify the shield's attributes directly so that it simply gave armor when held in the main-hand/off-hand, but like I said before I can't figure out a way to do it.

Any help with this would be greatly appreciated!

Last seen on 04:03, 14. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
just give absorption or…
Wed, 07/27/2022 - 08:28

just give absorption or health boost to the event/target entity

Last seen on 23:07, 16. Aug 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I recommend checking out…
Wed, 07/27/2022 - 14:12

I recommend checking out Azzier's Attributes plugin(https://mcreator.net/plugin/88645/azziers-tools). If you're using 1.16 tho, check out the comments and go to the github so you can download it. (The 1.16 file is currently not working)