{
	"format_version": "1.21.40",
	"minecraft:block": {
		"description": {
			"identifier": "rc:quarry",
			"menu_category": {
				"category": "items",
				"is_hidden_in_commands": false
			},
			"traits": {
				"minecraft:placement_direction": {
					"enabled_states": [
						"minecraft:cardinal_direction"
					],
					"y_rotation_offset": 180
				}
			},
			"states": {
				"rc:is_activated": [
					false,
					true
				],
				"rc:is_assembled": [
					false,
					true
				],
				"rc:is_breaking_block": [
					false,
					true
				],
				"rc:speed_upgrade": [
					false,
					true
				]
			}
		},
		"components": {
			"tag:minecraft:is_pickaxe_item_destructible": {},
"minecraft:custom_components": [
				"fluffyalien_energisticscore:machine",
				"rc:quarry"
			],
			"tag:fluffyalien_energisticscore:machine": {},
			"tag:fluffyalien_energisticscore:io.type.energy": {},
			"tag:fluffyalien_energisticscore:consumer.type.energy": {},
			"minecraft:geometry": "minecraft:geometry.full_block",
			"minecraft:material_instances": {
				"*": {
					"texture": "rc.quarry_bottom"
				},
				"up": {
					"texture": "rc.quarry_top"
				},
				"north": {
					"texture": "rc.quarry_front.off"
				},
				"east": {
					"texture": "rc.quarry_sides"
				},
				"south": {
					"texture": "rc.quarry_back"
				},
				"west": {
					"texture": "rc.quarry_sides"
				}
			},
			"minecraft:destructible_by_explosion": false,
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 1
			},
			"minecraft:tick": {
				"interval_range": [
					40,
					40
				]
			}
		},
		"permutations": [
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							270,
							0
						]
					}
				}
			},
			{
				"condition": "query.block_state('rc:is_activated') == true",
				"components": {
					"minecraft:light_emission": 10,
					"minecraft:material_instances": {
						"*": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_bottom"
						},
						"up": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_top"
						},
						"north": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_front.on"
						},
						"east": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_sides"
						},
						"south": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_back"
						},
						"west": {
							"ambient_occlusion": false,
							"texture": "rc.quarry_sides"
						}
					}
				}
			}
		]
	}
}