Is there a way I could set up Scoreboards so that it shows how many entities, in this case, Sheep, have a certain entity data?
For example, the number of sheep (tagged as trackcolor) with their data color set as white? Or as an alternative, what the colors of certain sheep are?
All the sheep are named and have tags, by the way!
I'm trying to do something like this:
Color Tracker
Red Sheep 12
Blue Sheep 5
or like this:
Color Tracker
SheepOne white (or 0)
SheepTwo orange (or 1)
/execute store result score BlueSheep colorTracker run execute if entity @e[type=sheep,nbt={Color:11b}]
BlueSheep is a "fake player" and colorTracker is a dummy objective. To add more colors, simply duplicate the command, change the fake player and the color value.
/execute store result score BlueSheep colorTracker run execute if entity @e[type=sheep,nbt={Color:11b}]
BlueSheep is a "fake player" and colorTracker is a dummy objective. To add more colors, simply duplicate the command, change the fake player and the color value.
Is there a way I could set up Scoreboards so that it shows how many entities, in this case, Sheep, have a certain entity data?
For example, the number of sheep (tagged as trackcolor) with their data color set as white? Or as an alternative, what the colors of certain sheep are?
All the sheep are named and have tags, by the way!
I'm trying to do something like this:
Color Tracker
Red Sheep 12
Blue Sheep 5
or like this:
Color Tracker
SheepOne white (or 0)
SheepTwo orange (or 1)
Here you go:
BlueSheep is a "fake player" and colorTracker is a dummy objective. To add more colors, simply duplicate the command, change the fake player and the color value.
Command block engineer // Developer // #TeamTrees
Thank you this is perfect!