I am getting into /data modify and /data merge, but I am having trouble with UUID's.
You can get the UUID from a player with /data get entity @p UUID
But how can I use that data in another command?
For example, Summoning an ender pearl and setting a certain player (@p) as the Owner.
/summon ender_pearl ~ ~ ~ {Owner:[UUID]}
Or getting an villager mad at you
/data merge entity @e[type=minecraft:villager,limit=1] {Gossips:[{Target:[UUID],Type"minor_negative",Value:150}]}
Basically, I want to extract data from one point and use it at another.
I hope I explained clearly enough.
Thank you in advance!
1
I think what YMBrothers was trying to say is, you screwed up your example.
You can remember it as: d stands for "distance from" NOT "opposite point of a cuboid"