advancement revoke @s only lbdm:click/quest4/dog
kill @e[tag=quest4_dog.hitbox]
execute as @e[tag=aj.quest4_dog.root] run function animated_java:quest4_dog/animations/sit_idle/stop
execute as @e[tag=aj.quest4_dog.root] run function animated_java:quest4_dog/animations/stand_up/play
schedule function lbdm:quest4/dog/start_pathfinding 1.5s
playsound minecraft:entity.wolf.ambient master @a ~ ~ ~ 1 2

kill @e[tag=quest4_end]
summon marker 5.0 -60 9.0 {Tags:["quest4_end"]}
execute as @e[tag=aj.npc.root] run function animated_java:npc/remove/all
kill @e[tag=npc.hitbox]

execute positioned 17 -60 5 rotated 70 0 run function lbdm:main/npc/summon {name:"bd_edit",skin:"edrit",arms:"normal"}
execute positioned 19 -60 5 rotated 70 0 run function lbdm:main/npc/summon {name:"bd_adolf",skin:"default",arms:"normal"}

execute positioned 17 -60 12 rotated 110 0 run function lbdm:main/npc/summon {name:"bd_dupolinio",skin:"dupolinio",arms:"normal"}
execute positioned 19 -60 12 rotated 110 0 run function lbdm:main/npc/summon {name:"bd_farmi",skin:"farmi",arms:"thin"}

execute positioned 21 -60 10 rotated 90 0 run function lbdm:main/npc/summon {name:"bd_realistika",skin:"realistika",arms:"thin"}

execute as @e[tag=npc.bd_realistika] run function animated_java:npc/animations/idle/stop
execute as @e[tag=npc.bd_realistika] run function animated_java:npc/animations/idle_end_realistika/play

execute positioned 17 -60 5 rotated 70 0 run function animated_java:raya/summon {args:{}}
execute positioned 17 -60 5 as @n[tag=aj.raya.root] run function animated_java:raya/animations/idle/play

function lbdm:main/quest_ui/remove

item replace entity @e[tag=balloon_white] container.0 with coal[item_model="lbdm:balloon_white"]
item replace entity @e[tag=balloon_red] container.0 with coal[item_model="lbdm:balloon_red"]
item replace entity @e[tag=balloon_blue] container.0 with coal[item_model="lbdm:balloon_blue"]
item replace entity @e[tag=balloon_green] container.0 with coal[item_model="lbdm:balloon_green"]

item replace entity @e[tag=quest4_farmi_props] container.0 with air
item replace entity @e[tag=table_food] container.0 with coal[item_model="lbdm:cake"]
item replace entity @e[tag=table_plate_1] container.0 with coal[item_model="lbdm:plate_1"]
item replace entity @e[tag=table_plate_2] container.0 with coal[item_model="lbdm:plate_2"]
item replace entity @e[tag=table_plate_3] container.0 with coal[item_model="lbdm:plate_3"]
item replace entity @e[tag=table_plate_4] container.0 with coal[item_model="lbdm:plate_4"]
item replace entity @e[tag=table_plate_5] container.0 with coal[item_model="lbdm:cat_on_a_watermelon"]
item replace entity @e[tag=table_plate_6] container.0 with coal[item_model="lbdm:eggdog"]
item replace entity @e[tag=duck_creep4ek] container.0 with coal[item_model="lbdm:ducks/creep4ek"]
kill @e[tag=duck_creep4ek.hitbox]
execute at @e[tag=duck_creep4ek] run summon minecraft:interaction ~ ~-0.4 ~ {width:0.4f,height:0.4f,Tags:["duck_creep4ek.hitbox"],response:true}