{
	"format_version": "1.21.50",
	"minecraft:block": {
		"description": {
			"identifier": "vatonage:conveyer_belt",
			"menu_category": {
			  "category": "items"
			},
			"traits": {
				"minecraft:placement_direction": {
					"enabled_states": [
						"minecraft:cardinal_direction"
					]
				}
			},
			"states": {
				"vatonage:direction": [
					"north",
					"south",
					"east",
					"west"
				],
				"vatonage:type": [
					"single",
					"angle_up",
					"angle_down",
					"corner_left",
					"corner_right"
				]
			}
		},
		"components": {
			"tag:minecraft:is_pickaxe_item_destructible": {},
"minecraft:collision_box": {
				"origin": [
					-8,
					0,
					-6
				],
				"size": [
					16,
					4,
					12
				]
			},
			"minecraft:selection_box": {
				"origin": [
					-8,
					0,
					-6
				],
				"size": [
					16,
					4,
					12
				]
			},
			"minecraft:display_name": "%vatonage.conveyor_belt.name\n§8§oStone Factory§r",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0.6
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 30
			},
			"minecraft:geometry": "geometry.conveyer_belt_single",
			"minecraft:material_instances": {
				"*": {
					"texture": "conveyer_belt",
					"render_method": "alpha_test",
					"face_dimming": false,
					"ambient_occlusion": false
				}
			},
			"minecraft:map_color": "#ffffff",
			"minecraft:loot": "loot_tables/stone_factory/conveyer_belt.json",
			"tag:conveyor_connect": {},
			"minecraft:custom_components": [
				"vatonage:conveyor_belt_tick",
			   	"vatonage:conveyor_belt_interacted"
			],
			"minecraft:tick": {
				"interval_range": [
					2,
					2
				],
				"looping": true
			}
		},
		"permutations": [
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'north' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'south' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							270,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'east' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('minecraft:cardinal_direction') == 'west' ",
				"components": {
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'angle_up'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_angle_up"
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'angle_down' && q.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_angle_down",
					"minecraft:transformation": {
						"rotation": [
							0,
							270,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'angle_down' && q.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_angle_down",
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'angle_down' && q.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_angle_down",
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'angle_down' && q.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_angle_down",
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_left' && q.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_left",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_right' && q.block_state('minecraft:cardinal_direction') == 'north'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_right",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							0,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_left' && q.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_left",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_right' && q.block_state('minecraft:cardinal_direction') == 'south'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_right",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							180,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_right' && q.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_right",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_left' && q.block_state('minecraft:cardinal_direction') == 'west'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_left",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							90,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_left' && q.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_left",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							270,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			},
			{
				"condition": "q.block_state('vatonage:type') == 'corner_right' && q.block_state('minecraft:cardinal_direction') == 'east'",
				"components": {
					"minecraft:geometry": "geometry.conveyer_belt_corner_right",
					"minecraft:material_instances": {
						"*": {
							"texture": "conveyer_belt_corner",
							"render_method": "alpha_test",
							"face_dimming": false,
							"ambient_occlusion": false
						}
					},
					"minecraft:transformation": {
						"rotation": [
							0,
							270,
							0
						]
					},
					"minecraft:collision_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					},
					"minecraft:selection_box": {
						"origin": [
							-8,
							0,
							-8
						],
						"size": [
							16,
							4,
							16
						]
					}
				}
			}
		]
	}
}