{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:acacia_bucket",
			"properties": {
				"medieval:facing_direction": [
					0,
					1,
					2,
					3,
					4,
					5
				],
				"medieval:status": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7
				]
			}
		},
		"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.bucket"
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 1",
				"components": {
					"minecraft:geometry": "geometry.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "dirt",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 2",
				"components": {
					"minecraft:geometry": "geometry.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "gravel",
							"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.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "snow",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 4",
				"components": {
					"minecraft:geometry": "geometry.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "blend",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "blend",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "water",
							"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.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "sand",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 6",
				"components": {
					"minecraft:geometry": "geometry.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "basalts",
							"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.bucket_fill",
					"minecraft:material_instances": {
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"line": {
							"texture": "gray_concrete",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"fill": {
							"texture": "blackstones",
							"render_method": "opaque",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": {
						"event": "off"
					}
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.bucket",
			"minecraft:material_instances": {
				"wood": {
					"texture": "stripped_acacia",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"line": {
					"texture": "gray_concrete",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:on_interact": {
				"event": "change"
			},
			"minecraft:entity_collision": {
				"origin": [
					-5.2,
					0.0,
					-5.2
				],
				"size": [
					10.4,
					10.5,
					10.4
				]
			},
			"minecraft:pick_collision": {
				"origin": [
					-5.2,
					0.0,
					-5.2
				],
				"size": [
					10.4,
					10.5,
					10.4
				]
			},
			"minecraft:flammable": {
				"flame_odds": 5,
				"burn_odds": 5
			},
			"minecraft:creative_category": {
				"category": "items",
				"group": "itemGroup.name.basket"
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#f7781e",
			"minecraft:destroy_time": 1
		},
		"events": {
			"off": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') == 1 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.gravel @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 2 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.gravel @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 3 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.snow @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 4 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound bucket.empty_water @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 5 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.sand @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 6 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.basalt @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 7 && query.get_equipped_item_name('main_hand') == 'wooden_shovel'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound dig.stone @p ~ ~ ~"
						}
					}
				]
			},
			"change": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'dirt'",
						"set_block_property": {
							"medieval:status": 1
						},
						"run_command": {
							"command": "playsound dig.gravel @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'gravel'",
						"set_block_property": {
							"medieval:status": 2
						},
						"run_command": {
							"command": "playsound dig.gravel @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'snowball'",
						"set_block_property": {
							"medieval:status": 3
						},
						"run_command": {
							"command": "playsound dig.snow @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') == 'sand'",
						"set_block_property": {
							"medieval:status": 5
						},
						"run_command": {
							"command": "playsound dig.sand @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'basalt'",
						"set_block_property": {
							"medieval:status": 6
						},
						"run_command": {
							"command": "playsound dig.basalt @p ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'blackstone'",
						"set_block_property": {
							"medieval:status": 7
						},
						"run_command": {
							"command": "playsound dig.stone @p ~ ~ ~"
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
					"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}