{
  "format_version": "1.16.100",
  "minecraft:block": {
    "description": {
      "identifier": "darkgato:ginger_pillar",
      "properties": {
        "block:rotation": [ 0, 1, 2, 3, 4, 5 ]
      }
    },
    "components": {
      "minecraft:creative_category": {
        "group": "construction",
        "category": "construction"
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "ginger_pillar_side",
          "render_method": "opaque"
        },
        "up": {
          "texture": "ginger_pillar_top",
          "render_method": "opaque"
        },
        "down": {
          "texture": "ginger_pillar_top",
          "render_method": "opaque"
        }
      },
      "minecraft:unit_cube": {},
      "minecraft:loot": "loot_tables/blocks/ginger_pillar",
      "minecraft:destroy_time": 0.5,
      "minecraft:explosion_resistance": 0.2,
      "minecraft:on_player_placing": {
        "event": "update_rotation"
      }
    },
    "permutations": [
      {
        "condition": "query.block_property('block:rotation') == 0",
        "components": {
          "minecraft:rotation": [ 180, 0, 0 ]
        }
      },
      {
        "condition": "query.block_property('block:rotation') == 1",
        "components": {
          "minecraft:rotation": [ 0, 0, 0 ]
        }
      },
      {
        "condition": "query.block_property('block:rotation') == 2",
        "components": {
          "minecraft:rotation": [ 90, 180, 0 ]
        }
      },
      {
        "condition": "query.block_property('block:rotation') == 3",
        "components": {
          "minecraft:rotation": [ 90, 0, 0 ]
        }
      },
      {
        "condition": "query.block_property('block:rotation') == 4",
        "components": {
          "minecraft:rotation": [ 90, 270, 0 ]
        }
      },
      {
        "condition": "query.block_property('block:rotation') == 5",
        "components": {
          "minecraft:rotation": [ 90, 90, 0 ]
        }
      }
    ],
    "events": {
      "update_rotation": {
        "set_block_property": {
          "block:rotation": "query.block_face"
        }
      }
    }
  }
}