# Гунер 1
tp @e[tag=aj.quest3_goon1.root,limit=1] @e[type=wandering_trader,limit=1,tag=quest3_gooner1_ai]
data merge entity @e[tag=quest3_gooner1_ai,sort=nearest,limit=1] {Offers:{Recipes:[{buy:{id:"minecraft:air"}}]}}
data merge entity @e[type=minecraft:wandering_trader,limit=1,sort=nearest,tag=quest3_gooner1_ai] {wander_target:[I;0,0,0]}
execute as @e[tag=quest3_gooner1_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[0] set from entity @p[sort=nearest] Pos[0]
execute as @e[tag=quest3_gooner1_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[1] set from entity @p[sort=nearest] Pos[1]
execute as @e[tag=quest3_gooner1_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[2] set from entity @p[sort=nearest] Pos[2]

# Гунер 2
tp @e[tag=aj.quest3_goon2.root,limit=1] @e[type=wandering_trader,limit=1,tag=quest3_gooner2_ai]
data merge entity @e[tag=quest3_gooner2_ai,sort=nearest,limit=1] {Offers:{Recipes:[{buy:{id:"minecraft:air"}}]}}
data merge entity @e[type=minecraft:wandering_trader,limit=1,sort=nearest,tag=quest3_gooner2_ai] {wander_target:[I;0,0,0]}
execute as @e[tag=quest3_gooner2_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[0] set from entity @p[sort=nearest] Pos[0]
execute as @e[tag=quest3_gooner2_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[1] set from entity @p[sort=nearest] Pos[1]
execute as @e[tag=quest3_gooner2_ai,sort=nearest,limit=1] at @s run data modify entity @s wander_target[2] set from entity @p[sort=nearest] Pos[2]