Started by
Adi_MC
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
on boots update, make entity fly == true
I've experimented a while ago, and on vanilla you could use a level of levitation for slow falling.
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
second of all slow falling will still make you fall, so no
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
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.
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."