Procedure for player hovering in water?

Started by mcgamerplay on

Topic category: Advanced modding

Active 1 year ago
Joined Mar 2020
Points:
646

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
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!

Active 1 year ago
Joined Mar 2020
Points:
646

User statistics:

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

bump

Active 3 years ago
Joined Nov 2018
Points:
978

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 571
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.

Active 1 year ago
Joined Mar 2020
Points:
646

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
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!