Entity Documentation - minecraft:physics
minecraft:physics
defines physics properties of an entity, including if it is affected by gravity or if it collides with objects.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
has_collision | True | Boolean | Whether or not the entity collides with things. |
has_gravity | True | Boolean | Whether or not the entity is affected by gravity. |
push_towards_closest_space | False | Boolean | Whether or not the entity should be pushed towards the nearest open area when stuck inside a block. |
Example
"minecraft:physics":{
"has_collision": true,
"has_gravity": true
}
Vanilla entities examples
player
"minecraft:physics": {
}
Vanilla entities using minecraft:physics
- area_effect_cloud
- armor_stand
- arrow
- axolotl
- bat
- bee
- blaze
- boat
- cat
- cave_spider
- chest_minecart
- chicken
- command_block_minecart
- cow
- creeper
- dolphin
- donkey
- dragon_fireball
- drowned
- egg
- elder_guardian
- ender_crystal
- ender_dragon
- ender_pearl
- enderman
- endermite
- evocation_illager
- eye_of_ender_signal
- fireball
- fireworks_rocket
- fish
- fishing_hook
- fox
- ghast
- glow_squid
- goat
- guardian
- hoglin
- hopper_minecart
- horse
- husk
- iron_golem
- lingering_potion
- llama_spit
- llama
- magma_cube
- minecart
- mooshroom
- mule
- npc
- ocelot
- panda
- parrot
- phantom
- pig
- piglin_brute
- piglin
- pillager
- player
- polar_bear
- pufferfish
- rabbit
- ravager
- salmon
- sheep
- shulker_bullet
- shulker
- silverfish
- skeleton_horse
- skeleton
- slime
- small_fireball
- snow_golem
- snowball
- spider
- splash_potion
- squid
- stray
- strider
- thrown_trident
- tnt_minecart
- tnt
- tripod_camera
- tropicalfish
- turtle
- vex
- villager_v2
- villager
- vindicator
- wandering_trader
- witch
- wither_skeleton
- wither_skull_dangerous
- wither_skull
- wither
- wolf
- xp_bottle
- xp_orb
- zoglin
- zombie_horse
- zombie_pigman
- zombie_villager_v2
- zombie_villager
- zombie
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for