minecraft:physics
Defines physics properties of an actor, including if it is affected by gravity or if it collides with objects.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
has_gravity | Boolean | true | Whether or not the entity is affected by gravity. |
has_collision | Boolean | true | Whether or not the entity collides with things. |
push_towards_closest_space | Boolean | false | Whether or not the entity should be pushed towards the nearest open area when stuck inside a block. |
Example from the game files
This is how vanilla Ender Dragon uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:physics": {
"has_collision": false,
"has_gravity": false
}
}Used by 125
Vanilla entities with minecraft:physics in their definition:
AllayArea Effect CloudArmadilloArmor StandArrowAxolotlBatBeeBlazeBoatBoggedBreezeWind ChargeCamelCamel HuskCatCave SpiderBoat with ChestMinecart with ChestChickenCodMinecart with Command BlockCopper GolemCowCreakingCreeperDolphinDonkeyDragon FireballDrownedEggElder GuardianEnder CrystalEnder DragonEnder PearlEndermanEndermiteEvokerEye of EnderFireballFirework RocketFishing HookFoxFrogGhastGlow SquidGoatGuardianHappy GhastHoglinMinecart with HopperHorseHuskIron GolemLingering PotionLlamaLlama SpitMagma CubeMinecartMooshroomMuleNautilusNPCOcelotPandaParchedParrotPhantomPigPiglinPiglin BrutePillagerPlayerPolar BearPufferfishRabbitRavagerSalmonSheepShulkerShulker BulletSilverfishSkeletonSkeleton HorseSlimeSmall FireballSnifferSnow GolemSnowballSpiderPotionSquidStrayStriderSulfur CubeTadpoleTridentBlock of TNTMinecart with TNTTrader LlamaTripod CameraTropical FishTurtleVexVillagerVillagerVindicatorWandering TraderWardenWind ChargeWitchWitherWither SkeletonWither SkullWither SkullWolfBottle o' EnchantingExperience OrbZoglinZombieZombie HorseZombie NautilusZombified PiglinZombie VillagerZombie Villager
Related components
collision_boxtype_familyconditional_bandwidth_optimizationnameableis_hidden_when_invisiblepushable_by_blockpushable_by_entitylootcan_climbis_babyballoonableambient_sound_intervalvariantpushablepersistentis_tameddimension_boundis_saddledinput_ground_controlledis_shakingmark_variantrenders_when_invisiblecan_flyannotation.break_door