How do I add the increased damage effect on a mob?

Started by weezl on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I add the increased damage effect on a mob?

I'm trying to create an effect that is located on the mob increases the damage to it regardless of the item in his hand, how to implement this? I honestly searched the entire forum before creating this thread.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want to increase the…
Sun, 02/05/2023 - 14:13

If you want to increase the amount of damage the mob deals, then have your effect constantly give the mob strength.

If you want to increase the amount of damage the mob receives, then it's a bit more complicated.

Create a procedure with global trigger "entity damaged."

Global trigger: entity damaged
If ((event/target entity) has effect <your effect>)
Then deal <whatever number you want> damage
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What if I want the damage to…
Sun, 02/05/2023 - 14:52

What if I want the damage to increase only from a tool like a sword?

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The procedure you described…
Sun, 02/05/2023 - 15:04

The procedure you described crashes my Minecraft