execute as @e[tag=mob_motion_recording_17] at @s run function koncept:level/17.2
#1718171801 1718171802

execute positioned 6 59 68 if entity @a[distance=..15] unless score 1718171801 timer_an matches 2 run scoreboard players set 1718171801 timer_an 1
execute if score 1718171801 timer_an matches 1 run scoreboard players add 1718171802 timer_an 1

execute if score 1718171802 timer_an matches 1 run execute unless entity @e[tag=mob_motion_recording_17] run summon drowned 7 58 69 {DeathLootTable:"minecraft:entities/air",NoAI:1b,Tags:["mob_motion_recording_17","mob_resistance"],equipment:{legs:{id:"minecraft:stone",Count:1b,tag:{Position:[],Rot:[]}}}}

execute if score 1718171802 timer_an matches 5 run execute as @p at @s run data modify entity @e[tag=mob_motion_recording_17,limit=1,sort=nearest] equipment.legs.components.minecraft:custom_data.Position set from storage kp:motion Position17
execute if score 1718171802 timer_an matches 5 run data modify entity @e[tag=mob_motion_recording_17,limit=1,sort=nearest] equipment.legs.components.minecraft:custom_data.Rotation set from storage kp:motion Rotation17

execute if score 1718171802 timer_an matches 150 run scoreboard players reset 1718171801 timer_an
execute if score 1718171802 timer_an matches 150 run scoreboard players reset 1718171802 timer_an