Procedure for player hovering in water?

Started by mcgamerplay on

Topic category: Advanced modding

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure for player hovering in water?

Heya! I'm looking for a way for a player to "hover" while under water. In other words to stay on the same Y cord without sinking. I know it can be kinda done using slow_fall but you still sink just slowly and it also applies on land.

If anyone knows how this would be done i would be forever grateful!

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't you just constantly…
Thu, 02/25/2021 - 09:00

Can't you just constantly set the Y velocity to zero?

Set the x velocity to the x velocity and the z velocity to avoid confusion on the other axis.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm true i'll see if i can…
Fri, 02/26/2021 - 11:42

Hmm true i'll see if i can figure something out from this thanks!