How do i make a procedure when the player or entity is attacked the mob or player that attacked the player.

Started by A Normal Hedgehog on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a procedure when the player or entity is attacked the mob or player that attacked the player.

 How do i make a procedure when the player or entity is attacked the mob or player that attacked the player something happens because i want to make explosive enchantment that does what it says and explodes the opposing player and i know how to check for enchantments and armor slots, but i just cant work out how to check for when the person is attacked it effects the mob or player that has attacked the person with the enchantment.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a new procedure and…
Mon, 12/07/2020 - 13:03

Create a new procedure and from the dropdown of events in the starting procedure block select Entity Attacked. Then, you can use the "source entity" block to target the entity that attacked, and the "target entity" block to target the entity that was attacked.