blob: 87c577795bc8b28ffc99ff1c0f866fa3d68e17bb (
plain) (
blame)
1
2
3
4
5
6
7
|
execute as @e[type=minecraft:trader_llama,distance=..8,limit=2,sort=nearest] run data modify entity @s Leash set value {}
summon minecraft:wandering_trader ~ ~ ~
data modify entity @s Silent set value 1
kill @s
# original @s no longer valid
execute as @e[type=minecraft:wandering_trader,limit=1,sort=nearest] at @s run data modify entity @s DespawnDelay set from entity @e[type=minecraft:trader_llama,distance=..8,limit=1,sort=nearest] DespawnDelay
execute as @e[type=minecraft:trader_llama,distance=..8,limit=2,sort=nearest] run data modify entity @s Leash.UUID set from entity @e[type=minecraft:wandering_trader,limit=1,sort=nearest] UUID
|