Femboy
Member
- Joined
- Nov 2, 2020
- Messages
- 51
- Reaction score
- 10
- Points
- 8
C03 or EntityPlayerSP.onUpdateWalkingPlayer()Trying to make slow rotations clientside but it only works when using mc.thePlayer.rotationYaw/mc.thePlayer.rotationPitch so what do I use instead to get my yaw / pitch on the server and not the client?
View attachment 120
I've tried getting my rotations using C03 but then it just rotates instantlyC03 or EntityPlayerSP.onUpdateWalkingPlayer()
Can i see your rotation code?I've tried getting my rotations using C03 but then it just rotates instantly
And how do I get my "oldRotation" then?Bruh............ updateRotation(oldRotation,NewRotation,Speed)
I've tried changing the "yaw" to mc.thePlayer.prevRotationYaw but then it doesn't aim at all so not sure I understand what you mean or I'm doing it incorrectlyMinecraft give you all what you need. first, update rotation. : https://pastebin.com/CaRc3aNy, the first field is ur current yaw, the second field is the previous yaw, (mc.thePlayer.prevRotationYaw), the third field is the speed.
change it to lastReportedYaw and try that. In theory it should work. But its stupid to do it like thatI've tried changing the "yaw" to mc.thePlayer.prevRotationYaw but then it doesn't aim at all so not sure I understand what you mean or I'm doing it incorrectly
Tried that as well but literally makes no differencechange it to lastReportedYaw and try that. In theory it should work. But its stupid to do it like that
I'm very new to this so sorry if I'm dumb but should this work or is it incorrect also is there an easier way to get yaw and pitch without using C03Hello,
it isnt complicated at all. Just give your method 2 more parameters, the method head should look like this:
getRotationsFromPositions(float prevYaw, float prevPitch, double x, double y, double z) {...}
use prevYaw and prevPitch instead of lastReportedYaw/rotationYaw or whatever u use atm
wherever u use this method u save your last rotations in 2 variables called whatever u want
set them after setting your rotations
and make sure it default value are ur current rotations
or if u have it, u can use your event fields so u can skip it
if u have any questions, feel free to ask
*(this is an optional possibility)
Regards,
eiken
I dont know your code, so there are 2 options:I'm very new to this so sorry if I'm dumb but should this work or is it incorrect also is there an easier way to get yaw and pitch without using C03
Do you have discord? Would make things fasterI dont know your code, so there are 2 options:
1. u send a snippet where you set your rotations
2. or u explain it exactly
Regards,
eiken
Aiming at feet be like: