execute store result score @s maxhp run attribute @s max_health get
execute store result score @s siphon run data get entity @s Health
execute run scoreboard players operation @s maxhp -= @s siphon
execute store result entity @s attributes.[{id:"minecraft:max_health"}].base int 1 run data get entity @s Health 1
#summon slime ~ ~ ~ {Size:0,Tags:[splitspawn,plussed],DeathLootTable:"survivalplus:entities/slime"}
execute if score @s maxhp matches 2.. run summon zombie ~ ~ ~ {Tags:[splitspawn,plussed,splitter],attributes:[{id:scale,base:.5}],equipment:{head:{id:slime_block}}}
execute as @e[tag=splitspawn] run data modify entity @s Motion set from entity @n[tag=splitter] Motion
execute as @n[tag=splitspawn] store result entity @s attributes.[{id:"minecraft:max_health"}].base int 1 run scoreboard players get @n[tag=splitter] maxhp
execute as @n[tag=splitspawn] store result entity @s Health double 1 run scoreboard players get @n[tag=splitter] maxhp
tag @e remove splitspawn

scoreboard players reset @s maxhp
scoreboard players reset @s siphon