Crash on procedure "Entity attacked"

Started by Squildo on

Topic category: Troubleshooting, bugs, and solutions

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Crash on procedure "Entity attacked"

Hello, I looked before downloading the topic if someone had found a solution to my problem. But nobody.
I am currently making a mod and I would like to create a procedure that can make the thorn effect, that is when a creature attacks a player, this creature will take damage with a certain percentage. 
So far so good but when a creature attacks me, I feel like the procedure activates infinitely and the text that is supposed to be displayed activates infinitely and then the game crashes.

Thank you very much.

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello there, To deal damage…
Thu, 07/07/2022 - 11:32

Hello there,

To deal damage to the attacker, you should change the "event/target entity" to "source entity" in the " deal 1 damage to ,..." like this one

https://ibb.co/FsYXVY4

Anyway, good luck on your mod.

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow, thank you. Everything…
Thu, 07/07/2022 - 12:16

Wow, thank you. Everything works perfectly now. 😆