minecraft:collision_box
Sets the width and height of the Entity's collision box.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
width | Decimal-100000000 to 100000000 | 0.6 | Width and Depth of the collision box in blocks. A negative value will be assumed to be 0. |
height | Decimal-100000000 to 100000000 | 1.8 | Height of the collision box in blocks. A negative value will be assumed to be 0. |
Example from the game files
This is how vanilla Rabbit uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:collision_box": {
"width": 0.81666666,
"height": 1.0
}
}Used by 124
Vanilla entities with minecraft:collision_box in their definition:
AllayArmadilloArmor StandArrowAxolotlBatBeeBlazeBoatBoggedBreezeWind ChargeCamelCamel HuskCatCave SpiderBoat with ChestMinecart with ChestChickenCodMinecart with Command BlockCopper GolemCowCreakingCreeperCushionDolphinDonkeyDragon FireballDrownedEggElder GuardianEnder CrystalEnder DragonEnder PearlEndermanEndermiteEvokerEye of EnderFireballFirework RocketFishing HookFoxFrogGhastGlow SquidGoatGuardianHappy GhastHoglinMinecart with HopperHorseHuskIron GolemLingering PotionLlamaLlama SpitMagma CubeMinecartMooshroomMuleNautilusNPCOcelotPandaParchedParrotPhantomPigPiglinPiglin BrutePillagerPlayerPolar BearPufferfishRabbitRavagerSalmonSheepShulker 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
physicstype_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