It works in 1.20.4, I used /gamerule maxEntityCramming 1000 then summoned 100 cows in 1x1 hole, height for 3, bottom with water.
The scoreboard I used:
execute store result score all show if entity @e[type=cow]
execute as @e[type=cow] store result score @s age run data get entity @s Age
execute store result score adult show if entity @e[scores={age=0..}]
execute store result score baby show if entity @e[scores={age=..-1}]
My attachment cutted the middle, the result shows "baby" is 39 instead of 32.
can confirm in 1.20.4
the rest can be confirm in 1.20.4
this code is not supported, see MC-231467
Can confirm in 1.20.4
It works in 1.20.4, I used /gamerule maxEntityCramming 1000 then summoned 100 cows in 1x1 hole, height for 3, bottom with water.
The scoreboard I used:
execute store result score all show if entity @e[type=cow]
execute as @e[type=cow] store result score @s age run data get entity @s Age
execute store result score adult show if entity @e[scores={age=0..}]
execute store result score baby show if entity @e[scores={age=..-1}]
My attachment cutted the middle, the result shows "baby" is 39 instead of 32.