#blockup vvv
#execute as @e[tag=player,nbt={OnGround:1b}] at @s positioned ~ ~1 ~ if predicate survivalplus:targetinrange2 unless block ~ ~-2 ~ #minecraft:replaceable unless score @s timer matches 1.. if block ~ ~ ~ #minecraft:replaceable run function survivalplus:tools/player/blockup
#execute as @e[tag=player] if score @s timer matches 1.. run scoreboard players remove @s timer 1
#execute as @e[tag=player,nbt=!{AngryAt:UUID}] at @s run data modify entity @s AngryAt set from entity @e[type=player,limit=1,sort=nearest] UUID
#anti-towerup vvv
execute as @e[tag=player,nbt={OnGround:1b},predicate=survivalplus:20chance] at @s positioned ~ ~1 ~ if predicate survivalplus:targetinrange1.5 run data modify entity @s Motion set value [0d,.43d,0d]
execute as @e[tag=player] at @s if block ~ ~.5 ~ water run function survivalplus:tools/player/swim
#jump crit vvv
#execute as @e[tag=player] store result score @s xbounce run data get entity @s Pos[1]
#execute as @e[tag=player,nbt=!{OnGround:1b}] if score @s xbounce > @s ybounce run attribute @s attack_damage modifier add 9b4442a4-5d1b-4236-8a01-a5c0469e0c29 0.5 add_multiplied_base
execute as @e[tag=player,nbt=!{OnGround:1b}] run attribute @s attack_damage modifier add 9b4442a4-5d1b-4236-8a01-a5c0469e0c29 0.5 add_multiplied_base
execute as @e[tag=player,nbt={OnGround:1b}] run attribute @s attack_damage modifier remove 9b4442a4-5d1b-4236-8a01-a5c0469e0c29
#execute as @e[tag=player] store result score @s ybounce run data get entity @s Pos[1]
function survivalplus:tools/player/jump
#execute at @s if entity @e[type=experience_orb,distance=..1] run function survivalplus:tools/player/xp
#die by conversion
execute as @e[type=stray,tag=player] run function survivalplus:tools/player/badbone/froze
execute as @e[type=drowned,tag=player] run function survivalplus:tools/player/zombieman/drowned