Procedure for player hovering in water?

Started by mcgamerplay on Thu, 02/25/2021 - 04:58

Topic category: Advanced modding

Last seen on 19:28, 28. Feb 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure for player hovering in water?
Thu, 02/25/2021 - 04:58

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 19:28, 28. Feb 2021
Joined Mar 2020
Points:

User statistics:

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

bump

Last seen on 20:35, 11. Apr 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 19:28, 28. Feb 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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!