{
  "format_version": "1.16.100",
  "minecraft:block": {
    "description": {
      "identifier": "darkgato:placed_christmas_star",
      "register_to_creative_menu": false,
      "properties": {
        "block:mode": [ 0, 1, 2, 3 ]
      }
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "christmas_star",
          "render_method": "alpha_test",
          "ambient_occlusion": false,
          "face_dimming": false
        }
      },
      "minecraft:geometry": "geometry.christmas_star",
      "minecraft:loot": "loot_tables/blocks/christmas_star",
      "minecraft:destroy_time": 1,
      "minecraft:explosion_resistance": 0,
      "minecraft:block_light_absorption": 0,
      "minecraft:block_light_emission": 1,
      "minecraft:on_interact": {
        "event": "change_mode_OnDevelopment"
      },
      "minecraft:pick_collision": {
        "origin": [ -6, 0, -6 ],
        "size": [ 12, 14, 12 ]
      },
      "minecraft:entity_collision": false
    },
    "permutations": [
      {
        "condition": "query.block_property('block:mode') == 1",
        "components": {
          "minecraft:material_instances": {
            "*": {
              "texture": "christmas_star_on",
              "render_method": "alpha_test"
            }
          },
          "minecraft:block_light_emission": 0.8
        }
      },
      {
        "condition": "query.block_property('block:mode') == 2",
        "components": {
          "minecraft:material_instances": {
            "*": {
              "texture": "christmas_star_on_fast",
              "render_method": "alpha_test"
            }
          },
          "minecraft:block_light_emission": 0.8
        }
      },
      {
        "condition": "query.block_property('block:mode') == 3",
        "components": {
          "minecraft:material_instances": {
            "*": {
              "texture": "christmas_star_on_slow",
              "render_method": "alpha_test"
            }
          },
          "minecraft:block_light_emission": 0.8
        }
      }
    ],
    "events": {
      "change_mode": {
        "sequence": [
          {
            "condition": "query.block_property('block:mode') == 0",
            "set_block_property": {
              "block:mode": 1
            }
          },
          {
            "condition": "query.block_property('block:mode') == 1",
            "set_block_property": {
              "block:mode": 2
            }
          },
          {
            "condition": "query.block_property('block:mode') == 2",
            "set_block_property": {
              "block:mode": 3
            }
          },
          {
            "condition": "query.block_property('block:mode') == 3",
            "set_block_property": {
              "block:mode": 0
            }
          }
        ]
      }
    }
  }
}