Help with creating a dash ability that works while the user is holding down a button

Started by flamearrows1 on

Topic category: Help with modding (Java Edition)

Last seen on 07:58, 7. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with creating a dash ability that works while the user is holding down a button

My goal is to create a dash ability that propels the user forward in the direction they are facing while they are holding down a specific button, and after they release the button they stop dashing and fall back down and go onto cool down, any help would be appreciated!

Last seen on 04:33, 24. Jul 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First create a variable…
Tue, 07/23/2024 - 20:25

First create a variable logic deafult is off

then a key bind that turns on the logic when pressed and off when key released

then you place this on when key is pressed: https://prnt.sc/LaEurl0v0JKr

Last seen on 04:33, 24. Jul 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
my bad you don't need the…
Tue, 07/23/2024 - 20:34

my bad you don't need the logic variable, just place the procedure when key is pressed