Remove gravity for player

Started by Adi_MC on Fri, 02/19/2021 - 12:32

Topic category: Help with modding (Java Edition)

Last seen on 08:43, 11. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Remove gravity for player
Fri, 02/19/2021 - 12:33 (edited)

I want to make it so if you wear some kind of boots your gravity is disabled, meaning you don't fall down and go up.
I tried applying levitation 255 (which basically does that) but that doesn't work and zooms me into the air. If I run that levitation with a command I get the right thing.

Please help and thank you

Edited by Adi_MC on Fri, 02/19/2021 - 12:33
Last seen on 17:58, 19. Apr 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think you have confused …
Sun, 02/28/2021 - 03:32

I think you have confused "levitation" for "slow falling" Of course levitation 255 will zoom you into the air when levitation 1 already makes you float up. Anyways, I have no clue and I have been wondering this too. If I figure it out I will tell you.

Last seen on 15:12, 24. Apr 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
on boots update, make entity…
Sun, 02/28/2021 - 11:26

on boots update, make entity fly == true

Last seen on 06:24, 22. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I've experimented a while…
Wed, 03/03/2021 - 12:07

I've experimented a while ago, and on vanilla you could use a level of levitation for slow falling.

Last seen on 08:43, 11. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
first of all no because if u…
Thu, 04/15/2021 - 10:37

first of all no because if u do /effect levitation bla bla with 255 it will make you fly straight and not levitate you down or up, but i found a solution - just set levitation effect to -1 in the code

Last seen on 08:43, 11. May 2021
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
second of all slow falling…
Thu, 04/15/2021 - 10:38

second of all slow falling will still make you fall, so no

Last seen on 06:24, 22. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
He did write that a command…
Fri, 04/16/2021 - 11:17

He did write that a command in-game (not run by the mod) does the thing he wants with levitation, but the same doesn't happen when he runs the command using his mod, he didn't confuse them

Last seen on 17:58, 19. Apr 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah, the idea of levitation…
Mon, 04/19/2021 - 17:58

Yeah, the idea of levitation is that you go up continuously until the effect ends, it was added in 1.9, with the only way to get it being hit by a projectile from a shulker.

Last seen on 06:24, 22. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
https://minecraft.fandom.com…
Thu, 04/22/2021 - 06:24

https://minecraft.fandom.com/wiki/Levitation#Effect

"level 0 (amplifier 255) makes falling, jumping and ascending stairs impossible"

https://minecraft.fandom.com/wiki/Levitation#Notes

"If a player is given a levitation level over 127, they instead fall down at a fast or slow rate, depending on the value.‌"