{
	"format_version": "1.20.30",
	"minecraft:block": {
		"description": {
			"identifier": "farmersdelight:red_mushroom_colony",
			"is_experimental": true,
			"states": {
				"farmersdelight:age": [
					0,
					1,
					2,
					3,
					4,
					5,
					6,
					7
				]
			}
		},
		"components": {
			"tag:mushroom_colony": {},
			"minecraft:geometry": "geometry.crop.x_wild",
			"minecraft:map_color": "#00ff00",
			"minecraft:material_instances": {
				"*": {
					"render_method": "alpha_test",
					"ambient_occlusion": false,
					"face_dimming": false,
					"texture": "mushroom_red"
				}
			},
			"minecraft:flammable": {
				"flame_odds": 0,
				"burn_odds": 0
			},
			"minecraft:loot": "loot_tables/one_mushroom.json",
			"minecraft:destructible_by_mining": {
				"seconds_to_destroy": 0
			},
			"minecraft:destructible_by_explosion": {
				"explosion_resistance": 10
			},
			"minecraft:collision_box": false,
			"minecraft:selection_box": {
				"origin": [
					-3,
					0,
					-3
				],
				"size": [
					6,
					6,
					6
				]
			},
			"minecraft:random_ticking": {
				"on_tick": {
					"event": "grow"
				}
			},
			"minecraft:placement_filter": {
				"conditions": [
					{
						"block_filter": [
							"farmersdelight:rich_soil"
						],
						"allowed_faces": [
							"up"
						]
					}
				]
			},
			"minecraft:light_dampening": 0
		},
		"permutations": [
			{
				"condition": "query.block_state('farmersdelight:age')==1",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"render_method": "alpha_test",
							"ambient_occlusion": false,
							"face_dimming": false,
							"texture": "red_mushroom_colony_stage0"
						}
					},
					"minecraft:loot": "loot_tables/two_mushroom.json",
					"minecraft:selection_box": {
						"origin": [
							-4,
							0,
							-4
						],
						"size": [
							8,
							8,
							8
						]
					}
				}
			},
			{
				"condition": "query.block_state('farmersdelight:age')==2",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"render_method": "alpha_test",
							"ambient_occlusion": false,
							"face_dimming": false,
							"texture": "red_mushroom_colony_stage1"
						}
					},
					"minecraft:loot": "loot_tables/three_mushroom.json",
					"minecraft:selection_box": {
						"origin": [
							-5,
							0,
							-5
						],
						"size": [
							10,
							10,
							10
						]
					}
				}
			},
			{
				"condition": "query.block_state('farmersdelight:age')==3",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"render_method": "alpha_test",
							"ambient_occlusion": false,
							"face_dimming": false,
							"texture": "red_mushroom_colony_stage2"
						}
					},
					"minecraft:loot": "loot_tables/four_mushroom.json",
					"minecraft:selection_box": {
						"origin": [
							-6,
							0,
							-6
						],
						"size": [
							12,
							12,
							12
						]
					}
				}
			},
			{
				"condition": "query.block_state('farmersdelight:age')==4",
				"components": {
					"minecraft:material_instances": {
						"*": {
							"render_method": "alpha_test",
							"ambient_occlusion": false,
							"face_dimming": false,
							"texture": "red_mushroom_colony_stage3"
						}
					},
					"minecraft:loot": "loot_tables/five_mushroom.json",
					"minecraft:selection_box": {
						"origin": [
							-7,
							0,
							-7
						],
						"size": [
							14,
							14,
							14
						]
					}
				}
			}
		],
		"events": {
			"grow": {
				"randomize": [
					{
						"weight": 0.2,
						"sequence": [
							{
								"set_block_state": {
									"farmersdelight:age": "math.min(query.block_state('farmersdelight:age') + 1, 4)"
								}
							}
						]
					},
					{
						"weight": 0.8
					}
				]
			}
		}
	}
}