playsound entity.slime.jump hostile @a ~ ~ ~ 1 .5

effect give @e[tag=mega_slime,sort=nearest,limit=1] instant_health

execute store result score #tmp EB_generic run data get entity @e[tag=mega_slime,sort=nearest,limit=1] Size 1
execute if score #tmp EB_generic matches 8 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 9
execute if score #tmp EB_generic matches 7 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 8
execute if score #tmp EB_generic matches 6 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 7
execute if score #tmp EB_generic matches 5 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 6
execute if score #tmp EB_generic matches 4 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 5
execute if score #tmp EB_generic matches 3 run data modify entity @e[tag=mega_slime,sort=nearest,limit=1] Size set value 4

effect give @s invisibility 10
tp @s ~ -30 ~
