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

Duplicate blocks, block.json problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.18.30.21 Preview, 1.18.30.20 Beta, 1.18.12 Hotfix
    • None
    • Unconfirmed
    • Windows

      As I understand it, this error appears if the texture id is from block.json is sent to a block that already has a texture id and the geometry replaces it with another one with the same functions.

      According to the idea, the first block (scm_block:ston_kirpichi_a) should be a block, the second (scm_block_zip:ston_kirpichi_a) should use geometry

      One Block

      {
      	"format_version": "1.18.0",
      	"minecraft:block": {
      		"description": {
      			"identifier": "scm_block:ston_kirpichi_a"
      		},
      		"components": {
                  "minecraft:creative_category": { "category": "construction" }
      		}
      	}
      }
      

      Two Block

      {
      	"format_version": "1.18.0",
      	"minecraft:block": {
      		"description": {
      			"identifier": "scm_block_zip:ston_kirpichi_a",
      			"properties": { "decor:face": [ 0, 1, 2, 3 ] },
      			"is_experimental": true
      		},
      		"components": {
                  "minecraft:creative_category": { "category": "construction" },
      			"minecraft:material_instances": { "*": { "texture": "ston_kirpichi_a", "render_method": "alpha_test", "ambient_occlusion": false } },
      			"minecraft:geometry": "geometry.scm_zip_block",
      			"minecraft:pick_collision": { "origin": [-8, 0, 7], "size": [16, 16, 1] },
      			"minecraft:entity_collision": { "origin": [-8, 0, 7], "size": [16, 16, 1] },
      			"minecraft:block_light_absorption": 2,
      			"minecraft:on_player_placing": { "event": "decor:face" }
      		},
      		"permutations": [
      			{ "condition": "query.block_property('decor:face') == 0", "components": { "minecraft:rotation": [ 0, 180, 0 ] } },
      			{ "condition": "query.block_property('decor:face') == 1", "components": { "minecraft:rotation": [ 0, 0, 0 ] } },
      			{ "condition": "query.block_property('decor:face') == 2", "components": { "minecraft:rotation": [ 0, 270, 0 ] } },
      			{ "condition": "query.block_property('decor:face') == 3", "components": { "minecraft:rotation": [ 0, 90, 0 ] } }
      		],
      		"events": {
      			"decor:face": { "set_block_property": { "decor:face": "query.cardinal_facing_2d-2" } }
      		}
      	}
      }
      

      Block.json

      {
          "ston_kirpichi_a": { "textures": "ston_kirpichi_a", "sound": "stone" }
      }
      

        1. Screenshot_1.png
          12 kB
          Dima Sever
        2. Screenshot_11.png
          13 kB
          Dima Sever
        3. Screenshot_4.png
          150 kB
          Dima Sever
        4. Screenshot_3.png
          174 kB
          Dima Sever

            Cken Dima Sever
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: