Started by
A Normal Hedgehog
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.