entity is hurt add effect to player

Started by Gui1332 on

Topic category: Help with modding (Java Edition)

Last seen on 23:13, 22. Nov 2023
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

Last seen on 18:37, 11. May 2024
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.

Last seen on 09:03, 17. Jun 2023
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?