Sharpness like enchants

Started by FluffiiWolf on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined May 2021
Points:
536

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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?

Active 2 years ago
Joined Feb 2019
Points:
744

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 157
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.

Active 3 years ago
Joined May 2021
Points:
536

User statistics:

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

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

Active 2 years ago
Joined May 2021
Points:
558

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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