entity is hurt add effect to player

Started by Gui1332 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity is hurt add effect to player

I'm trying to make a sword that when it attacks a mob it gives potion effects to the player who attacked the mob but I can't do the procedure

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use source entity when you…
Sat, 12/24/2022 - 02:01

Use source entity when you apply a potion effect, so when the weapon hits entity, add potion effect to source entity.

Where ofc source entity is you, and event/target entity is the mob.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can i make : when entity…
Sat, 06/17/2023 - 09:04

how can i make : when entity is hurt he's slow and can be blocked , how i can make it?