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? 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You will need to use the…
Wed, 01/21/2026 - 12:37

You will need to use the entity attacked procedure trigger and check if the item in the main hand of the source entity is equal to your sword.

Then whatever condition you have to increase the damage.

Then instead of using the deal damage procedure block, you can use an advanced procedure block to set the total amount of damage for the attack to deal (this aspect of it only works with the entity attacked procedure trigger) It is called something like set dependency or set result of global trigger.

You could set it to number dependency "amount" + 6, but I would recommend instead setting it to number dependency "amount" * 2, that way it doesn't deal an extreme amount of damage when spam clicking.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you show me how this…
Thu, 01/22/2026 - 19:39

Could you show me how this procedure works? I don't entirely get it.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I get it now, but…
Thu, 01/22/2026 - 19:53

Nevermind, I get it now, but I wonder why the mob doesn't always do the death sound when I kill it. Is there a way to fix this?