{
	"format_version": "1.16.100",
	"minecraft:block": {
		"description": {
			"identifier": "medieval:acacia_flower_stand",
			"properties": {
				"medieval:facing_direction": [0, 1, 2, 3, 4, 5],
				"medieval:status": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
			}
		},
		"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') == 1",
				"components": {
					"minecraft:geometry": "geometry.flower_stand"
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 2",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_blue_orchid",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 3",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_lily_valley",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 4",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_oxeye_daisy",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 5",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_rose",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 6",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_tulip_orange",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 7",
				"components": {
					"minecraft:geometry": "geometry.flower_stand",
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_tulip_pink",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					}
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 8",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop_empty",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 9",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 10",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_blue_orchid",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 11",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_lily_valley",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 12",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_oxeye_daisy",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 13",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_rose",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 14",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_tulip_orange",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			},
			{
				"condition": "query.block_property('medieval:status') == 15",
				"components": {
					"minecraft:geometry": "geometry.flower_standtop",
					"minecraft:entity_collision": {
						"origin": [-8, 0.0, -8],
						"size": [16, 7, 12]
					},
					"minecraft:material_instances": {
						"flower": {
							"texture": "flower_tulip_pink",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"pots": {
							"texture": "flower_pot",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"dirt_pot": {
							"texture": "dirt",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						},
						"wood": {
							"texture": "stripped_acacia",
							"render_method": "alpha_test",
							"ambient_occlusion": true,
							"face_dimming": true
						}
					},
					"minecraft:on_interact": { "event": "change_top" }
				}
			}
		],
		"components": {
			"minecraft:geometry": "geometry.flower_stand_empty",
			"minecraft:material_instances": {
				"flower": {
					"texture": "flower_dandelion",
					"render_method": "alpha_test",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"pots": {
					"texture": "flower_pot",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"dirt_pot": {
					"texture": "dirt",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				},
				"wood": {
					"texture": "stripped_acacia",
					"render_method": "opaque",
					"ambient_occlusion": true,
					"face_dimming": true
				}
			},
			"minecraft:on_player_placing": {
				"event": "set_facing_direction"
			},
			"minecraft:creative_category": {
				"category": "nature",
				"group": "itemGroup.name.acacia"
			},
			"minecraft:on_interact": {
				"event": "change"
			},
			"minecraft:entity_collision": {
				"origin": [-8, 0.0, -8],
				"size": [16, 16, 12]
			},
			"minecraft:pick_collision": {
				"origin": [-8, 0.0, -8],
				"size": [16, 16, 12]
			},
			"minecraft:flammable": {
				"flame_odds": 5,
				"burn_odds": 5
			},
			"minecraft:block_light_absorption": 0.0,
			"minecraft:explosion_resistance": 1.8,
			"minecraft:map_color": "#f7781e",
			"minecraft:destroy_time": 1
		},
		"events": {
			"change_top": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') < 16 && query.get_equipped_item_name('main_hand') == 'bone_meal'",
						"set_block_property": {
							"medieval:status": "Math.Random(9,15)"
						},
						"run_command": {
							"command": ["playsound item.bone_meal.use @a ~ ~ ~", "particle minecraft:crop_growth_emitter ~ ~ ~"]
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'shears'",
						"set_block_property": {
							"medieval:status": 8
						},
						"run_command": {
							"command": "playsound mob.sheep.shear @a ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 8 && query.get_equipped_item_name('main_hand') == 'wooden_axe'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": ["playsound dig.wood @a ~ ~ ~", "particle minecraft:endrod ~ ~ ~"]
						}
					}
				]
			},		
			"change": {
				"sequence": [
					{
						"condition": "query.block_property('medieval:status') < 8 && query.get_equipped_item_name('main_hand') == 'bone_meal'",
						"set_block_property": {
							"medieval:status": "Math.Random(1,7)"
						},
						"run_command": {
							"command": ["playsound item.bone_meal.use @a ~ ~ ~", "particle minecraft:crop_growth_emitter ~ ~ ~"]
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'shears'",
						"set_block_property": {
							"medieval:status": 0
						},
						"run_command": {
							"command": "playsound mob.sheep.shear @a ~ ~ ~"
						}
					},
					{
						"condition": "query.block_property('medieval:status') == 0 && query.get_equipped_item_name('main_hand') == 'wooden_axe'",
						"set_block_property": {
							"medieval:status": 8
						},
						"run_command": {
							"command": ["playsound dig.wood @a ~ ~ ~", "particle minecraft:endrod ~ ~ ~"]
						}
					}
				]
			},
			"set_facing_direction": {
				"set_block_property": {
				"medieval:facing_direction": "query.cardinal_facing_2d"
				}
			}
		}
	}
}