-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swimming #3988
base: 1.19.4
Are you sure you want to change the base?
Conversation
@@ -730,6 +731,11 @@ public final class Settings { | |||
*/ | |||
public final Setting<Boolean> sprintInWater = new Setting<>(true); | |||
|
|||
/** | |||
* Attempt to enter the underwater swimming state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aka California after the big earthquake hits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so true
The fact that this works is kinda stupid. Why doesn't looking up make you bob out of the water like pressing space does? Anyway, |
Yeah I agree that this is stupid and badly written I just wanted to see if it would work. I picked pitch -30 because in my testing, that pitch always gets the player's head out of the water so that they don't drown, but never ends swimming by going too high. Once brady's (@ZeroMemes 's) recent PRs are merged up, this could use the movement freelook from there. But for now, I found that the pitch was not freelookable. Meaning, if I just set the pitch as a movement target with force=false, it actually did not affect swimming direction sadly. IDK if this is a 1.13+ thing or what. Yes, the same logic should be added to MovementDiagonal to begin swimming. |
Perhaps the RotationMoveEvent change from |
Actually, I didn't mean the code. I meant this2023-06-16.01-51-04.mp4Even looking straight up won't stop it. The only thing that happens if you look too far up is that momentum can carry you out of the water so starting can take a second or third attempt.
Ok. In progress. |
I tried this on out 1.16 with all of current master merged in and some changes to accommodate for changes in swimming mechanics (you need to press space to get high enough). |
someone else test this i am TOO TIRED and i hate swimming mechanics (this is why i have put this off even though swimming was added to minecraft before baritone even started)