How to make an entity deal a certain amount of damage

Started by ImSeyo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity deal a certain amount of damage

I recently ran into a problem when I'm trying to get an entity to deal damage
to an enemy several times more than usual. In the game, when an entity attacks, minecraft crashes.
When using the "deal damage" block (but without caused by entity), the game does not crash. But in order for something in my mod to work, I need to use the "deal damage caused by entity" block

procedure

I already realized that this procedure returns a null result, but I don't understand how to get around it.

(I'm sorry if this is a duplicate of another forum, I couldn't find the original forum)