How to make a dash?

Started by Jacko22 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a dash?

I want to give the rapier weapon class in my mod a dash that launches the player in the direction they're looking at the cost of a very small amount of xp while also dealing damage to any monsters in the way of the dash, and finally having a cooldown of 15 seconds. So far, I've been able to launch the player in a fixed direction, but that's it. Please offer any advice you can.

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i know how to do this! but…
Sun, 01/04/2026 - 12:34

i know how to do this! but idk how to make so you can damage the monsters tho you could spam click while you're dashing as an alternativehere's the procedure! you can tweak the numbers to your liking

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can tweak the numbers…
Sun, 01/04/2026 - 12:35

you can tweak the numbers too!

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Sun, 01/04/2026 - 18:30

Thank you!

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To have it deal damage, do…
Sun, 01/04/2026 - 18:34

To have it deal damage, do you think I could have it launch a projectile that moves at the same speed as the player with the hatbox that I want the dash to have? I haven't messed around with projectiles much yet.

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
idk about that but it could…
Mon, 01/05/2026 - 14:01

idk about that but it could work probably!

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or if it's possible to make…
Mon, 01/05/2026 - 18:02

Or if it's possible to make to add an "if / then" clause to detect then deal damage to any entity?

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If there is a specific time…
Mon, 01/05/2026 - 23:55

If there is a specific time on how long the dash lasts, you could make a "When tool in hand tick" procedure, possible in the tool's procedures tab, to check for nearby mobs and damage them by the "rapier" tool user until the dash ends. The simplest way to do it is probably with an invisible "dash attack" potion effect, because it already has a countdown and is detectable by procedures.