# --- Coarse dirt clear -------
execute if entity @s[tag=coarse_dirt_clear] run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 air replace coarse_dirt
execute if entity @s[tag=oak_wood_clear] run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 air replace oak_wood

# --------- Attacks -------------
# Arrow based
execute if entity @s[tag=arrow_based] run function attacks:0_generic/arrow_based/main

# Arrow based old
execute if entity @s[tag=attk_stone] run function attacks:stone/0_main
execute if entity @s[tag=attk_stone_visual] if predicate entity/on_ground run kill @s
execute if entity @s[tag=p_spit] run function attacks:spit_poison/0_main
execute if entity @s[tag=spider_egg] run function attacks:spider_egg/0_main
execute if entity @s[tag=spit_lock_o] run function attacks:spit_lock/0_main

# Armor stand based
execute if entity @s[tag=spit_cobweb_o] run function attacks:spit_cobweb/0_main
execute if entity @s[tag=cobweb_decay] run function attacks:spit_cobweb/decay/0_main
execute if entity @s[tag=planted_mandragora] run function attacks:planted_mandragora/0_main
execute if entity @s[tag=st_player] run function attacks:spinning_stones/player_track
execute if entity @s[tag=ent_summon] if predicate entity/on_ground run function attacks:ent_summon/0_main
execute if entity @s[tag=water_mine] run function attacks:water_mine/0_main

# Ray based
execute if entity @s[tag=multiple_wave] run function attacks:multiple_wave/0_main
execute if entity @s[tag=root_wave] run function attacks:root_wave/0_main
execute if entity @s[tag=bullet] run function attacks:bullet/0_main
execute if entity @s[tag=cannon_ball] run function attacks:cannon_ball/0_main
execute if entity @s[tag=slime_bounce] run function attacks:slime_bounce/0_main
execute if entity @s[tag=multiple_root] run function attacks:multiple_roots/0_main

# Mob based
execute if entity @s[tag=chase_wave] run function attacks:chase_wave/0_main

# Pther
execute if entity @s[tag=st_center] run function attacks:spinning_stones/0_main
