Started by
theTacocat88
on
Topic category: Help with Minecraft modding (Java Edition)
I am making a mod with a spear in it (a new one, not the one referred to in another one of my forum topics) that you can dash into enemies with when pressing R, but I can't figure out how to make it so you dash forwards, and not in just one direction.
This is how I want the keybind to work:
- Key is pressed
- Key is released
- Player dashes forward
- Enemy player or enemy dashed at takes damage
- Player stops dashing
Edit: So I figured out how to make the player dash, here is the image of my code:
I have the code to damage enemies but it won't work. Any help is appreciated.
Thanks!
Edited by theTacocat88 on Thu, 07/18/2024 - 15:45
Imgur: The magic of the Internet <-clickable
https://imgur.com/a/dbO3W9C <-also clickable
the connected/top one/procedure is for moving and the one below is for the damage i recommend adding multiplication equations to the look vectors if you want to control them more/ make them weaker or stronger.
also I did the [=false] instead of [not] since for some reason the not one doesn't work for me too.
https://imgur.com/a/981st-cat-dbO3W9C
i don't think the other link worked try this one
Thanks! I will try this in my code.
It worked! Thank you!
is there a way to have the dash build up more distance the longer the key is pressed kinda like sonic adventure
spin dash
can someone export the procedure by chance? for some reason afteer i made it, its noting working