So I'm making a PvE map, and I want to use wolves, polar bears, and bees at some point in the map. The problem is I need them to be hostile.
I noticed that you can give them the UUID of a player to be mad at, but wouldn't the UUID of each player who eventually plays the map be different?
So I figured I could somehow store the UUID of the player in a scoreboard, and then merge that number to the mob somehow, but when I have a command block store my UUID it ends up saving the number 4, which isn't a valid UUID.
I've also heard of some snowball method or something before, but I'm not sure how that would work. I noticed that the snowball can also use a player UUID but I don't know how to fetch that UUID off of the player. If I can figure that out, then I could just modify the data of the polar bear/wolf/bee to be angry at that UUID. Does anyone know what commands I would use for this?
So I'm making a PvE map, and I want to use wolves, polar bears, and bees at some point in the map. The problem is I need them to be hostile.
I noticed that you can give them the UUID of a player to be mad at, but wouldn't the UUID of each player who eventually plays the map be different?
So I figured I could somehow store the UUID of the player in a scoreboard, and then merge that number to the mob somehow, but when I have a command block store my UUID it ends up saving the number 4, which isn't a valid UUID.
I've also heard of some snowball method or something before, but I'm not sure how that would work. I noticed that the snowball can also use a player UUID but I don't know how to fetch that UUID off of the player. If I can figure that out, then I could just modify the data of the polar bear/wolf/bee to be angry at that UUID. Does anyone know what commands I would use for this?
Any help would be appreciated!
The /data command can fetch the whole UUID array at once from a player.
Use /data modify entity
Perseverance always pays. Sooner or later.