data merge storage lbdm:main {quest:"the_end"}
execute as @e[tag=quest4_dog.ai] at @s run tp @s ~ ~20 ~
kill @e[tag=quest4_dog.ai]
execute as @n[tag=quest4_dog] run function animated_java:quest4_dog/remove/this
tp @a 11.5 -60 9.0 -90 0

execute positioned 19 -60 12 rotated 110 0 run function animated_java:quest4_dog/summon {args:{}}
execute positioned 19 -60 12 as @n[tag=aj.quest4_dog.root] run function animated_java:quest4_dog/animations/idle_end_farmi/play
execute as @e[tag=npc.bd_farmi] run function animated_java:npc/animations/idle/stop
execute as @e[tag=npc.bd_farmi] run function animated_java:npc/animations/idle_end_farmi/play

execute positioned 3 -60 10 rotated -110 0 run function lbdm:main/npc/summon {name:"bd_vladi",skin:"vladi",arms:"normal"}
execute positioned 3 -60 7 rotated -70 0 run function lbdm:main/npc/summon {name:"bd_xekyt",skin:"xekyt",arms:"normal"}
execute as @e[tag=npc.bd_xekyt] run function animated_java:npc/animations/idle/stop
execute as @e[tag=npc.bd_xekyt] run function animated_java:npc/animations/idle_end_xekyt/play
execute as @e[tag=npc.bd_vladi] run function animated_java:npc/animations/idle/stop
execute as @e[tag=npc.bd_vladi] run function animated_java:npc/animations/idle_end_vladi/play

fill -24 -58 8 -24 -60 9 barrier
data merge entity @n[tag=the_end_portal] {text:'{"text":"\\uA001","font":"extra"}'}

function lbdm:main/quest_ui/init {title:"Поздравляем!","task":"Поговори с персонажами"}

give @a firework_star[consumable={consume_seconds:0.0f,sound:"minecraft:block.wool.break",on_consume_effects:[{type:"apply_effects",effects:[{id:"luck",duration:5,amplifier:1,show_icon:false,show_particles:false}]}]},item_model="lbdm:gift_box",item_name='{"text":"Коробка с подарком"}',lore=['{"text":"Открой меня!","color": "gray","italic":false}']]