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

Started by tazzan on

Topic category: Help with modding (Java Edition)

Last seen on 19:56, 31. Oct 2022
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I make enchantments that modify attributes such as armor?

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 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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)