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 Sat, 11/28/2020 - 09:41

Topic category: Help with modding (Java Edition)

Last seen on 09:33, 22. May 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make a procedure when the player or entity is attacked the mob or player that attacked the player.
Sat, 11/28/2020 - 09:41

 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.

Last seen on 08:22, 14. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.