Jump to content

Recommended Posts

Posted

I've been making an ocean themed mod, which includes scuba suits.

Is there anyway you can negate water movement, so that you can walk normally underwater? (like you're on land) I searched though the referenced libraries and found nothing that seemed like could help.

 

Thanks in advance

Posted

You can undo the effects of being pushed by water by making a method to reverse everything done in the handleMaterialAcceleration method (I think that's what it's called anyway) and call your reversal method each applicable tick.

 

The only way I've found to improve walking speed while walking underwater is to check server side if the player is in water and send a packet to the client; on the client, check if player#onGround is true and multiply their motion values by about 1.25 (maybe a little less). If this is going to be a constant effect for all players, then you could probably forgo the packet and just give them all that bonus when #onGround and in water directly on the client side.

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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