Started by
TheCatalystGaming
on
Topic category: Advanced modding
I'm trying to create an item that allows the player to "dash" horizontally in the direction they are looking. I was thinking of using the procedure blocks that change an entities vx/vz but I don't know how to make that change to reflect the direction the player is looking.
This is what you are looking for although you may want to play with the velocity, KEEP IN MIND THIS ALLOWS THE PLAYER TO FLY SO ADD A CHECK TO SEE IF THE PLAYER IS ON GROUND. I.e. if (playerIn.onGround = true)
Thanks for the help!
or you can just use the procedure raytrace direction implemented in Mcreator
Sure the could! But the code I provided is very good and works perfectly. And you can copy and paste (Although I really do not condone that, MCreator is about not coding so when I help out on the forums here I tend to just "give" code) it. Also, you can do a lot more complex things with this code. For instance, in my mod (not on MCreator) I add more y motion with a modifier (like a charging system).
what the point of control c+v?
How can people learn from that?
I also use this code with double jump and it works really well. But if MCreator has that sort of functionality go for it!
The point none, but if you like people learning code why do you condone using MCreator? I didn't read your last post when I posted my last post.
Also like again, did you read what I put in the parenthesis....
When i first started html and css, i used graphic editors, i suppose you learned java in one day?
you can never stop learning and Mcreator is a good Tool for beginners/intermediate modders
I can't disagree more because I started on MCreator :D and will take the loss on this one. Even though when I said this, "you may want to play with the velocity..." I think I encouraged learning. But I have lots of respect for you and am sorry, I don't want to be obnoxious. I am leaving this thread
thanks 😊 i appreciate you
Could you tell me the exact name of this procedure? I want to make an item which let me dash forward when I right click with it, but I can't find the measure to do it.