How do I add damage to a weapon that's been enchanted?

Started by ArchangelStyx on Fri, 01/08/2021 - 18:21

Topic category: Help with modding (Java Edition)

Last seen on 20:05, 5. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I add damage to a weapon that's been enchanted?
Fri, 01/08/2021 - 18:21

I'm trying to add a custom enchant with 4 levels called Reaping, I can't figure out how to make the weapon do more damage like Sharpness would. What method should I be using with Procedures? 

Last seen on 20:05, 5. Feb 2021
Joined Jan 2021
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I want to use a formula…
Fri, 01/08/2021 - 20:00

I want to use a formula similar to Sharpness such as (Enchantment Level) * 0.5 + 0.5 + Base Damage = Final Damage. In order to change the attack value, do I have to set the NBT tag for AttributeModifiers and generic.attack_damage to the formula? How do I do that exactly?