"Entity Attacked" Trigger no longer triggers on damage without source-entity

Started by EthanHakker1 on

Topic category: Troubleshooting, bugs, and solutions

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Entity Attacked" Trigger no longer triggers on damage without source-entity

My mod relies on damage modification, and without the ability to modify or cancel damage that has no source-entity, any world-based damage, like fall damage or temperature damage, just goes right through to the player. This is an essential aspect of my mod. I understand that damage triggers were altered with the new Neoforge update, but there should still be a cancellable trigger that responds to damage of any source. If there is any workaround for this, it would be greatly appreciated.

To replicate: 

  • Make a damage trigger that responds to and reduces a certain damage type like freeze or fall damage by a certain amount. Make sure to include a debug marker to see if the procedure is triggered. You may use any of the "entity hurt" or "entity attacked" triggers, as it does not function for any of them.
  • Run the test client in debug mode and go take damage of that type from an entity source.
  • The damage will be reduced, and the debug marker will ping.
  • Go take damage of that type from a non-entity source.
  • The damage will not be reduced, and the debug marker will not ping.

Any workaround, including modifying the source code, would be greatly appreciated. For the devs: in future MCreator updates, I recommend adding an additional trigger for damage from any source, including non-entity sources, if possible.