{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:crimson_barrel",
			"properties": {
				"medieval:facing_direction": [
					0,
					1,
					2,
					3,
					4,
					5
				],
				"medieval:status": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7,
					8,
					9,
					10,
					11
				]
			}
		},
		"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:status') == 0",
				"components": {
					"minecraft:geometry": "geometry.barrel_model"
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 1",
				"components": {
					"minecraft:geometry": "geometry.barrel_model1",
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 2",
				"components": {
					"minecraft:geometry": "geometry.barrel_apple",
					"minecraft:material_instances": {
						"apple": {
							"texture": "apple_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 3",
				"components": {
					"minecraft:geometry": "geometry.barrel_beetroot",
					"minecraft:material_instances": {
						"beetroot": {
							"texture": "beetroot_food",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"leaf": {
							"texture": "beetroot_leaf",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 4",
				"components": {
					"minecraft:geometry": "geometry.barrel_water",
					"minecraft:material_instances": {
						"fill": {
							"texture": "water",
							"render_method": "blend",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "blend",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 5",
				"components": {
					"minecraft:geometry": "geometry.barrel_carrot",
					"minecraft:material_instances": {
						"carrot": {
							"texture": "carrot_food",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"carrot_leaf": {
							"texture": "carrot_leaf",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 6",
				"components": {
					"minecraft:geometry": "geometry.barrel_cod",
					"minecraft:material_instances": {
						"cod": {
							"texture": "cod_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 7",
				"components": {
					"minecraft:geometry": "geometry.barrel_potato",
					"minecraft:material_instances": {
						"potato": {
							"texture": "potato_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 8",
				"components": {
					"minecraft:geometry": "geometry.barrel_salmon",
					"minecraft:material_instances": {
						"salmon": {
							"texture": "salmon_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 9",
				"components": {
					"minecraft:geometry": "geometry.barrel_apple",
					"minecraft:material_instances": {
						"apple": {
							"texture": "golden_apple_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 10",
				"components": {
					"minecraft:geometry": "geometry.barrel_carrot",
					"minecraft:material_instances": {
						"carrot": {
							"texture": "golden_carrot_food",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"carrot_leaf": {
							"texture": "golden_carrot_leaf",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 11",
				"components": {
					"minecraft:geometry": "geometry.barrel_bamboo",
					"minecraft:material_instances": {
						"bamboo": {
							"texture": "bamboo_food",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"barrel": {
							"texture": "barrel_crimson",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.barrel_model",
			"minecraft:material_instances": {
				"*": {
					"texture": "barrel_crimson",
					"render_method": "opaque"
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:creative_category": {
				"category": "items",
				"group": "itemGroup.name.chest"
			},
			"minecraft:on_interact": {
				"event": "change"
			},
			"minecraft:entity_collision": {
				"origin": [
					-7.5,
					0.0,
					-7.5
				],
				"size": [
					15,
					16,
					15
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-7.5,
					0.0,
					-7.5
				],
				"size": [
					15,
					16,
					15
				]
			},
			"minecraft:flammable": {
				"flame_odds": 5,
				"burn_odds": 5
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#b3244a",
			"minecraft:destroy_time": 1
		},
		"events": {
			"off": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') > 0 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound block.itemframe.remove_item @p ~ ~ ~"
						}
					}
				]
			},
			"change": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'wooden_axe'",
						"set_block_property": {
							"medieval:status": 1
						},
						"run_command": {
							"command": "playsound block.false_permissions @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'apple'",
						"set_block_property": {
							"medieval:status": 2
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'beetroot'",
						"set_block_property": {
							"medieval:status": 3
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'water_bucket'",
						"set_block_property": {
							"medieval:status": 4
						},
						"run_command": {
							"command": "playsound bucket.fill_water @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'carrot'",
						"set_block_property": {
							"medieval:status": 5
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'cod'",
						"set_block_property": {
							"medieval:status": 6
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'potato'",
						"set_block_property": {
							"medieval:status": 7
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'salmon'",
						"set_block_property": {
							"medieval:status": 8
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'golden_apple'",
						"set_block_property": {
							"medieval:status": 9
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'golden_carrot'",
						"set_block_property": {
							"medieval:status": 10
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'bamboo'",
						"set_block_property": {
							"medieval:status": 11
						},
						"run_command": {
							"command": "playsound block.itemframe.add_item @p ~ ~ ~"
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
					"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}