How to change the run speed of the entity when it set its target?

Started by shaengrewdo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change the run speed of the entity when it set its target?

How do I change the run speed of the entity when it sets its target and revert the run speed back to normal after there's no target for it to set?

It has a walk animation and a charge animation.

  • walk is for when it doesn't have a target
  • charge is for when it has a target, for example, a player
Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NVM, I accidentally solved…
Sun, 10/05/2025 - 09:42

NVM, I accidentally solved it!
There's a [is target/entity aggressive] block that I missed