Minecraft wiki entry for Panda, associated text: The only way to directly observe the hidden gene of a panda is to use the command : /data get entity @e[type=minecraft:panda,limit=1] HiddenGene‌[Java Edition only] or using third-party NBT editors.