how to make it so when i hit an enemy with a weapon, i get faster instead of them?

Started by Pottyyyto on

Topic category: General Minecraft forum

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make it so when i hit an enemy with a weapon, i get faster instead of them?

i am making a minecraft mod for the first time, and i made it so when i swing a weapon i get slowness for half a second and when i hit an enemy i get speed for a full second. when i tried it, the enemy got speed instead. how do i make it so I get the effect instead of the enemy?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use source entity instead of…
Sun, 12/15/2024 - 21:23

use source entity instead of target entity in the procedure block that gives speed.