Started by
rainbow_horse
on
Topic category: Help with Minecraft modding (Java Edition)
Hello everyone. Not so long ago I begin making my mod what will be add guns in minecraft. I dealt with many aspects,but I dont now how I can to make a knockback after shooting.I mean that the players crosshair goes up a bit.With out it automate becomes a cheating weapon.So i need your help guys.If anyone knows how to do this, pls write. Thanks in advance))))
You can set the players pitch to itself + a certain amount.
Set rotation of [Event/target entity] yaw: (Direction (yaw) in deg. relative to S of [Event/target entity]) pitch: (Head pitch of [Event/target entity] in degrees) + 10)
Hope this helps!