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

Block component Collision Box issue

XMLWordPrintable

    • Unconfirmed
    • Windows

      I'm making some blocks with a vertical slab-like collision box, as well as some quarter half slabs I guess you could say (vertical trapdoor cut in half from bottom to top making it half a block on x, a full 16 on Y and 1 pixel on z). I used this code:

      "minecraft:collision_box":

      {                 "origin": [4, 0, 6.5],                 "size": [8, 16, 1] }

       

      but got this error:

      [Blocks][error]-block_definitions | C:/Users/goose/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/BP Name | blocks/entity_name.json | namespace:entity | components | minecraft:collision_box: min can't be below (-8, 0, -8) and max can't be more than (8, 16, 8)

      I get that 4 + 8 > 8 maybe that is the issue but in blockbench it is clearly within the 16x16x16 space of a regular block.

       

      Update:
      I have made an iron bar like block and the collision box is not where it is shown to be in blockbench. I'll continue testing to find out if blockbench is just displaying the collision box incorrectly or whether this is an issue with the game. Attached there are two more images: one of the iron bar in blockbench where the geometry and collision box match. One in game where the geometry is on my left (the correct spot) but the collision box is on my right.

        1. side.PNG
          side.PNG
          72 kB
        2. Minecraft 21_03_2023 08_50_51.png
          Minecraft 21_03_2023 08_50_51.png
          845 kB
        3. iron_bar2.PNG
          iron_bar2.PNG
          56 kB
        4. iron_bar.PNG
          iron_bar.PNG
          38 kB
        5. front.PNG
          front.PNG
          102 kB

            GooseGoH0NK GooseGoHONK
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: