The Lost Cities

The Lost Cities

58M Downloads

[Question] Random damaged blocks?

strubium opened this issue ยท 2 comments

commented

Is it possible to tweak the damaged property so the block that's damaged can be randomly picked from a list? If so, how would I implement this?

Palette code for reference:

  {
    "type": "palette",
    "name": "bricks_standard",
    "palette": [
      {
        "char": "X",
        "block": "minecraft:monster_egg@2",
        "damaged": "minecraft:iron_bars"
      },
      {
        "char": "$",
        "block": "minecraft:double_stone_slab",
        "damaged": "minecraft:iron_bars"
      },
      {
        "char": "#",
        "blocks": [
          {
            "random": 9,
            "block": "minecraft:stonebrick@2"
          },
          {
            "random": 8,
            "block": "minecraft:stonebrick@1"
          },
          {
            "random": 1000,
            "block": "minecraft:stonebrick"
          }
        ],
        "damaged": "minecraft:iron_bars"
      }
    ]
  }
commented

Have the same question too @McJty

commented

Would this work?

{
        "char": "#",
        "blocks": [
          {
            "random": 9,
            "block": "minecraft:stonebrick@2"
          },
          {
            "random": 8,
            "block": "minecraft:stonebrick@1"
          },
          {
            "random": 1000,
            "block": "minecraft:stonebrick"
          }
        ],
        "damaged": [
         {
          "random": 1000,
          "block": "minecraft:iron_bars"
         },
         {
          "random": 75,
          "block": "minecraft:stoneslab"
         }
        ]
      }