This method is based on PingiPuck's video
You need to run a command once (or on every /reload
).
scoreboard objectives add falling minecraft.custom:minecraft.time_since_death
You need to run these commands for every player every tick
scoreboard players set @s[nbt={FallDistance:0.0f}] falling 0
effect clear @s[scores={falling=0}] jump_boost
effect give @s[scores={falling=9..}] jump_boost 1 255 true