{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "nicothekid:copper_chain_block",
      "menu_category": {
				"category": "none",
				"group": "none"
			},
      "states": {
				"nicothekid:block_rotation": [
					0,
					1,
					2
				]
			}
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "nicothekid_copper_chain_block",
          "render_method": "alpha_test",
          "ambient_occlusion": false,
					"face_dimming": true
        }
      },
      "minecraft:geometry": "geometry.block.nicothekid_chain",
      "minecraft:map_color": "#E77C56",
      "minecraft:breathability": "air",
      "minecraft:collision_box": {
        "origin": [ -2, 0, -2 ],
        "size": [ 4, 16, 4 ]
      },
      "minecraft:selection_box": {
        "origin": [ -2, 0, -2 ],
        "size": [ 4, 16, 4 ]
      },
      "minecraft:light_dampening": 0,
      "minecraft:light_emission": 0,
      "minecraft:friction": 0.4,
      "minecraft:flammable": false,
      "minecraft:destructible_by_explosion": true,
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 0.3
      },
      "minecraft:loot": "loot_tables/nicos_item_expansion/blocks/nicothekid_copper_chain_block.json",
      "minecraft:on_player_placing": {
				"event": "nicothekid:placing_rotation"
			},
      "minecraft:transformation": {
			  "rotation": [ 0, 0, 0 ]
			},
      
      "tag:copper_chain": {},
      "tag:custom_chain": {},
      "tag:metal": {}
    },
    "permutations": [
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 0",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 0, 0, 0 ]
          }
        }
      },
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 1",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 90, 0, 0 ]
          }
        }
      },
      {
        "condition": "query.block_state('nicothekid:block_rotation') == 2",
        "components": {
          "minecraft:transformation": {
            "rotation": [ 0, 0, 90 ]
          }
        }
      }
    ],
    "events": {
      "nicothekid:placing_rotation": {
				"set_block_state": {
					"nicothekid:block_rotation": "math.floor(query.cardinal_block_face_placed_on/2)"
				}
			}
    }
  }
}
