{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:pot_3",
			"properties": {
				"medieval:facing_direction": [0,1,2,3,4,5],
				"medieval:color_1": [0, 1, 2, 3, 4, 5, 6, 7, 8],
				"medieval:color_2": [0, 1, 2, 3, 4, 5, 6, 7, 8]
			}
		},
		"permutations": [
			{
				"condition": "query.block_property('medieval:facing_direction') == 2",
				"components": {
					"minecraft:rotation": [0,0,0]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 3",
				"components": {
					"minecraft:rotation": [0,180,0]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 4",
				"components": {
					"minecraft:rotation": [0,90,0]
				}
			},
			{
				"condition": "query.block_property('medieval:facing_direction') == 5",
				"components": {
					"minecraft:rotation": [0,-90,0]
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 0",
				"components": {
					"minecraft:geometry": "geometry.pot_3"
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 1",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"texture": "pot_3_black",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 2",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_blue",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 3",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_brown",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 4",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_cyan",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 5",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_gray",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 6",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_green",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 7",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_light_blue",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_1') == 8",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_light_gray",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 1",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_lime",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 2",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_magenta",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 3",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_orange",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 4",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_pink",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 5",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_purple",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 6",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_red",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 7",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_white",
							"render_method": "opaque"
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:color_2') == 8",
				"components": {
				"minecraft:material_instances": {
					"*": {
							"texture": "pot_3_yellow",
							"render_method": "opaque"
						}
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.pot_3",
			"minecraft:material_instances": {
				"*": {
					"texture": "pot_3",
					"render_method": "opaque"
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:on_interact": {
				"event": "change"
			},
			"minecraft:creative_category": {
				"category": "construction",
				"group": "itemGroup.name.stainedClay"
			},
			"minecraft:entity_collision": {
				"origin": [-5, 0.0, -5],
				"size": [10, 16, 10]
			},
			"minecraft:pick_collision": {
				"origin": [-5, 0.0, -5],
				"size": [10, 16, 10]
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 4.2,
			"minecraft:map_color": "#f7781e",
			"minecraft:destroy_time": 1
		},
		"events": {
			"change": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'black_dye'",
						"set_block_property": {
							"medieval:color_1": 1,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'blue_dye'",
						"set_block_property": {
							"medieval:color_1": 2,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'brown_dye'",
						"set_block_property": {
							"medieval:color_1": 3,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'cyan_dye'",
						"set_block_property": {
							"medieval:color_1": 4,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'gray_dye'",
						"set_block_property": {
							"medieval:color_1": 5,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'green_dye'",
						"set_block_property": {
							"medieval:color_1": 6,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'light_blue_dye'",
						"set_block_property": {
							"medieval:color_1": 7,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'light_gray_dye'",
						"set_block_property": {
							"medieval:color_1": 8,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'lime_dye'",
						"set_block_property": {
							"medieval:color_2": 1,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'magenta_dye'",
						"set_block_property": {
							"medieval:color_2": 2,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'orange_dye'",
						"set_block_property": {
							"medieval:color_2": 3,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'pink_dye'",
						"set_block_property": {
							"medieval:color_2": 4,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'purple_dye'",
						"set_block_property": {
							"medieval:color_2": 5,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'red_dye'",
						"set_block_property": {
							"medieval:color_2": 6,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'white_dye'",
						"set_block_property": {
							"medieval:color_2": 7,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'yellow_dye'",
						"set_block_property": {
							"medieval:color_2": 8,
							"medieval:color_1": 0
						},
						"run_command": {
							"command": "playsound copper.wax.on @a ~ ~ ~"
						},
						"decrement_stack": {
						}
					},
					{
						"condition": "(query.block_property('medieval:color_1') > 0 || query.block_property('medieval:color_2') > 0) && query.get_equipped_item_name('main_hand') == 'water_bucket'",
						"set_block_property": {
							"medieval:color_1": 0,
							"medieval:color_2": 0
						},
						"run_command": {
							"command": "playsound bucket.empty_water @a ~ ~ ~"
						},
						"decrement_stack": {},
						"spawn_loot": { "table": "loot_tables/drops/bucket.json"
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
				"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}