execute positioned ^ ^ ^-1 align xyz positioned ~.5 ~1 ~.5 unless entity @e[tag=cobweb_decay,distance=..0.1,limit=1] run function attacks:spit_cobweb/place

particle block cobweb ^ ^.5 ^ 0.1 0.1 0.1 0 3 force

execute if predicate entity/on_ground run kill @s
