execute if entity @s[nbt={active_effects:[{id:jump_boost,amplifier:3b}]}] run effect give @s jump_boost 2 3 true
execute if entity @s[nbt={active_effects:[{id:jump_boost,amplifier:2b}]}] run effect give @s jump_boost 2 3 true
execute if entity @s[nbt={active_effects:[{id:jump_boost,amplifier:1b}]}] run effect give @s jump_boost 1 2 true
execute if entity @s[nbt={active_effects:[{id:jump_boost,amplifier:0b}]}] run effect give @s jump_boost 1 1 true
execute if entity @s[nbt=!{active_effects:[{id:jump_boost}]}] run effect give @s jump_boost 1 0 true