Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-178391

Baby hoglin and baby zoglin collision box is too small

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.60.23 Preview, 1.21.60.21 Preview, 1.21.50.30 Preview, 1.21.50.26 Preview, 1.21.50.25 Preview, 1.21.50.24 Preview, 1.21.50.22 Preview, 1.21.50.20 Preview, 1.21.40.25 Preview, 1.21.40.22 Preview, 1.21.40.21 Preview, 1.21.40.20 Preview, 1.21.20.24 Preview, 1.21.20.23 Preview, 1.21.20.22 Preview, 1.21.20.21 Preview, 1.21.10.21 Preview, 1.21.0.22 Preview, 1.21.0.21 Preview, 1.21.0.20 Preview, 1.20.80.24 Preview, 1.20.80.23 Preview, 1.20.70.24 Preview, 1.20.70.22 Preview, 1.20.70.20 Preview, 1.20.70.21 Preview, 1.20.51 Hotfix, 1.20.61 Switch, 1.20.60, 1.20.62 Hotfix, 1.20.70.25 Preview, 1.20.80.20 Preview, 1.20.80.21 Preview, 1.20.70, 1.20.71 Hotfix, 1.20.80.22 Preview, 1.20.72 Hotfix, 1.20.73 Hotfix, 1.21.0.23 Preview, 1.20.80, 1.21.0.25 Preview, 1.21.0.24 Preview, 1.21.10.20 Preview, 1.21.0.26 Preview, 1.20.81 Hotfix, 1.21.10.24 Preview, 1.21.10.23 Preview, 1.21.0, 1.21.1 Hotfix, 1.21.30.22 Preview, 1.21.30.21 Preview, 1.21.3 Hotfix (PS4), 1.21.2 Hotfix, 1.21.20, 1.21.30.23 Preview, 1.21.21 Hotfix, 1.21.30.25 Preview, 1.21.22 Hotfix, 1.21.23 Hotfix, 1.21.30, 1.21.40.23 Preview, 1.21.31 Hotfix, 1.21.40, 1.21.41 Hotfix, 1.21.43 Hotfix, 1.21.50.28 Preview, 1.21.50.29 Preview, 1.21.44 Hotfix, 1.21.50, 1.21.51 Hotfix
    • None
    • Confirmed
    • Multiple
    • 1174570

      Description:
      Baby hoglins and baby zoglins have collision boxs that are much smaller than their models.

      Steps to Reproduce:

      1. Spawn a baby hoglin or baby zoglin
      2. Use lead to leash it
      3. Move it into 0.5 blocks tall space

      Observed Results:
      Baby hoglin or baby zoglin can enter 0.5 blocks tall space.

      Expected Results:
      Baby hoglin or baby zoglin should not be able to enter 0.5 blocks tall space.

      Screenshot of Issue:

      Code Analysis:
      Baby hoglin behavior definition from behavior_packs/vanilla_1.20.50/entities/hoglin.json:

            "hoglin_baby": {
              "minecraft:scale": {
                "value": 0.5
              },
              "minecraft:collision_box": {
                "width": 0.85,
                "height": 0.85
              }
            }
      

      Baby zoglin behavior definition from behavior_packs/vanilla_1.20.50/entities/zoglin.json:

            "zoglin_baby": {
              "minecraft:scale": {
                "value": 0.5
              },
              "minecraft:collision_box": {
                "width": 0.85,
                "height": 0.85
              }
            }
      

      Can find that there is a minecraft:scaled component in hoglin_baby / zoglin_baby, so baby hoglin and baby zoglin collision box will be scaled by the value of minecraft:scale. After scaled, the collision box is 0.425x0.425, which means that baby hoglins and baby zoglins can enter 0.5 blocks tall space.

      How to Fix:
      Removing the minecraft:scale component in hoglin_baby / zoglin_baby will resolve this issue.

            "zoglin_baby": {
              "minecraft:collision_box": {
                "width": 0.85,
                "height": 0.85
              }
            }
      
            "hoglin_baby": {
              "minecraft:collision_box": {
                "width": 0.85,
                "height": 0.85
              }
            }
      

        1. baby hoglin screenshot.jpg
          729 kB
          agoodday233
        2. baby zoglin screenshot.jpg
          1.44 MB
          agoodday233
        3. mojira_Minecraft Preview 2024-07-03 13-15-57.mp4
          4.83 MB
          X1Crafts

            agoodday233 agoodday233
            Votes:
            9 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: