Started by
Just-Guardian-…
on
Topic category: Help with Minecraft modding (Java Edition)
So i Tried to Add A Double Dash Procedure where Keybind R is clicked it lets you dash 2 times (once in air , once on ground) and make cooldown to it but i cant figure out the Cooldown for This procedure (I tried to use wait procedure but it doesn't trigger The motion Vector)
What i could use to do the cooldown for it?
Here is The Screenshot of procedure:
-if not get event target entity custom logic NBT tag "candash" = false
-(your procedure to dash)
-set event target entity custom logic NBT tag "candash" to false
-wait ... ticks
-set event target entity custom logic NBT tag "candash" to true
I think the problem could be that in players the block "Atempt to override motion of Entity" works only in tick updates of the player (there are exceptions but is a bit strange). What i do in this cases is create a potion effect for this action, a potion effect called Dash that in each tick update does "Atempt to override motion of Entity" to the player. And in the dash procedure replace the actual blocks with "Add potion effect dash for 1 (i recommend more) ticks"