minecraft:physics

Defines physics properties of an actor, including if it is affected by gravity or if it collides with objects.

Properties

PropertyTypeDefaultWhat it does
has_gravityBooleantrueWhether or not the entity is affected by gravity.
has_collisionBooleantrueWhether or not the entity collides with things.
push_towards_closest_spaceBooleanfalseWhether 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:

Related components