Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Could it be because it's on the server tick side and not client side

Try simply using (please not you will not be able to jump while walking on water due to the nature of setting the Y to 0 :/)

if(world.getBlock(x, y-1, z).getMaterial() == Material.water){
player.motionY = 0.0D;
}

 

Image(there should atleast be one):

 

HkB5Omr.png

 

If I helped please press the Thank You button.

  • Author

Thank you so much!  So is there absolutely no way to allow me to jump 

Don't tell me to learn the basics of java, I already know.

Thank you so much!  So is there absolutely no way to allow me to jump

 

Not jumping as on land but you can add a check to see if the jump button is pressed and if so temporary disable it while you're pressing the jump keybind just replace player.motionY = 0.0D with this(it will also enable you to get onto land again without any problems(i.e. before you would have to find land at the same height w/o it)):

if(!Minecraft.getMinecraft().gameSettings.keyBindJump.getIsKeyPressed()){
player.motionY = 0.0D;
}

If I helped please press the Thank You button.

The other potential method is to override player's collision function and replace collision bounding boxes of certain blocks. Though it might require bytecode manipulation.

I have added this else if statement to let you jump out of the water

			if(flag && e.motionY < 0.0D){
			if(!Minecraft.getMinecraft().gameSettings.keyBindJump.getIsKeyPressed()){
			e.motionY = 0.0D; 
		}else if(Minecraft.getMinecraft().gameSettings.keyBindJump.getIsKeyPressed()){
			e.motionY = 0.5D;
		}

Been modding for a year now. Not a pro but I know my way around pretty well. As everyone else, I'm learning too.

However, now whenever I walk on water with the boots minecraft gives me an error that says "Illegal stance."

 

I think that means that you have a position outside of the world or something like that.  What is your code for walking on water look like now?  I suspect you're adjusting the Y position to some value outside the world.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.