minecraft:is_hidden_when_invisible
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Allay uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:is_hidden_when_invisible": {}
}Used by 92
Vanilla entities with minecraft:is_hidden_when_invisible in their definition:
AllayArmadilloArmor StandAxolotlBatBeeBlazeBoggedBreezeCamelCamel HuskCatCave SpiderChickenCodCopper GolemCowCreakingCreeperDolphinDonkeyDrownedElder GuardianEnder DragonEndermanEndermiteEvokerFoxFrogGhastGlow SquidGoatGuardianHappy GhastHoglinHorseHuskIron GolemLlamaMagma CubeMooshroomMuleNautilusOcelotPandaParchedParrotPhantomPigPiglinPiglin BrutePillagerPlayerPolar BearPufferfishRabbitRavagerSalmonSheepShulkerSilverfishSkeletonSkeleton HorseSlimeSnifferSnow GolemSpiderSquidStrayStriderSulfur CubeTadpoleTrader LlamaTropical FishTurtleVexVillagerVillagerVindicatorWandering TraderWardenWitchWitherWither SkeletonWolfZoglinZombieZombie HorseZombie NautilusZombified PiglinZombie VillagerZombie Villager
Related components
physicscollision_boxtype_familyconditional_bandwidth_optimizationnameablepushable_by_blockpushable_by_entitylootcan_climbis_babyballoonableambient_sound_intervalvariantpushablepersistentis_tameddimension_boundis_saddledinput_ground_controlledis_shakingmark_variantrenders_when_invisiblecan_flyannotation.break_door