Player attack detection

Started by CCC_Studio on

Topic category: Advanced modding

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player attack detection

How to detect in a procedure when the player attacks/kills an entity and how to recover this entity and the player. I'd like to create an enchantment based on these features

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Before entity is hurt (never…
Wed, 11/20/2024 - 19:19

Before entity is hurt (never versions just when entity is hurt)

Source entity - attacker

Event/target entity - victim