Procedure for player hovering in water?

Started by mcgamerplay on

Topic category: Advanced modding

Last seen on 01:02, 21. Oct 2023
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!

Last seen on 01:02, 21. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Thu, 02/25/2021 - 08:40

bump

Last seen on 14:43, 2. Aug 2022
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.

Last seen on 01:02, 21. Oct 2023
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!