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

Started by tazzan on

Topic category: Help with Minecraft modding (Java Edition)

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!

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

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)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'd just uploaded a video…
Wed, 08/28/2024 - 17:21

I'd just uploaded a video explaining my methods of achieving a usable Attribute Affecting enchantment system.

I know this is necroposting, but I'm sure there are others prowling the Forums looking for a solution, haha.