Increased Damage Won't Work

Started by BryAstro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increased Damage Won't Work

2025.3 (Neoforge 1.21.8)

Hello, I'm trying to make it so that if a mob is on fire, my custom sword can do extra damage.

Here is the procedure.

Now, the problem is, the supposed extra damage isn't actually extra damage, instead, it REPLACES the attack damage of the sword, which is why the damage block is so high (12), because if I were to make it 6 damage instead, there would be no difference, there is no damage bonus, only a replacement.

In addition to that, it renders crits and enchantments like Sharpness completely useless, as the damage will ALWAYS be replaced by the damage block in the procedure (The procedure is the "When living entity is hit with tool" procedure for the item btw).

How can I fix this problem?