Sharpness like enchants

Started by FluffiiWolf on

Topic category: Help with modding (Java Edition)

Last seen on 15:54, 17. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sharpness like enchants

I have an issue with a mod I am currently working on.

I'm making a D&D esc mod with Dice based combat. Everytime you hit an entity you will roll the die and do random damage.

Right now I'm trying to add Bonus damage with a Sharpness style enchant. However whenever I add the enchant to my weapon it simply overwrites the procedure of the weapon itself, it's meant to "add 5 damage" but instead it only does 5 damage and completely ignores the damage roll.

Anyone know what I'm doing wrong here?

Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think the "deal damage"…
Fri, 05/07/2021 - 20:42

I think the "deal damage" replaces damage
maybe you could create a potion effect, and the potion effect is who does the additional damage.
Each time it hits with your enchantment it will deal additional instant damage.

Last seen on 15:54, 17. Jun 2021
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's actually a clever…
Sat, 05/08/2021 - 00:20

That's actually a clever work around. I will try that, thank you! :)

Last seen on 14:14, 9. Oct 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So did it work? I am having…
Tue, 06/01/2021 - 00:56

So did it work? I am having a similar issue with a strength-like effect