Calling for "Source Entity" anywhere in an "Entity is attacked" trigger prevents it from detecting non entity sources.

Started by NyxYoru on

Topic category: Troubleshooting, bugs, and solutions

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Calling for "Source Entity" anywhere in an "Entity is attacked" trigger prevents it from detecting non entity sources.

(Mcreator 2026.1 for Neoforge 1.21.1)
2 proceedures in question.
Proceedure 1 detects all damage sources, proceedure 2 does not detect all damage despite the print being outside of the if statement checking the source entity.

This does not seem to leave me with a way to seperately act on damage sources that do not come directly from entities as proceedure 1 will detect all damage including damage from entities without a proper way to distinguish (Im aware falling specifically has its own global trigger, but most other enviromental damage seems to not fall under anything other than this or "Entity is hurt" and that trigger cant be canceled.)

Image above is just an example, but this has been consistent across multiple proceedures, the "Source Entity" block being included anywhere breaks the rest if there is no source entity provided.