I saw #1305585292954177566But just need a little help understanding it a little, if this is still the way it would work.
I have all my entities stored in a scoreboard, lets say entity.ID
For example, a pig and sheep have the same score, 1.
As the pig, I want to teleport the the nearest sheep with the same score as itself.
The commands and predicate posted by theblackswitchᴰᵉᵛ;
[35mscoreboard [34mplayers operation [36m.entity_1 [0mscore [34m= [36m@s [0mscore
[35mtp [36m@s @n[33m[[37mpredicate[34m=[32mmatches_score[33m]
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"score": {
"min": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": ".entity_1"
},
"score": "score"
},
"max": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": ".entity_1"
},
"score": "score"
}
}
}
}```
...looks exactly like what I want.
But I need help using it in my system.
What parts do I need to change to use `entity.ID` as my objective name, over `score`?
I tried figuring it out but nothing worked