{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "furnicraft:sapling_gray_block"
		},
		"components": {
			"minecraft:geometry": "geometry.sapling",
			"minecraft:material_instances": {
				"*": {
					"texture": "grays",
					"ambient_occlusion": false,
					"face_dimming": false,
					"render_method": "alpha_test"
				}
			},
	        "minecraft:creative_category": {
            "group": "itemGroup.name.monsterStoneEgg",
            "category": "nature"
	        },
			"minecraft:destroy_time": 0,
			"minecraft:block_light_absorption": 0,
			"minecraft:breathability": "air",
			"minecraft:entity_collision": false,
			"minecraft:loot": "loot_tables/blocks/tree/gray/sapling.json",
			"minecraft:pick_collision": {
				"origin": [
					-6,
					0,
					-6
				],
				"size": [
					12,
					13,
					12
				]
			},
			"minecraft:ticking": {
				"looping": false,
				"range": [
					2000,
					2500
				],
				"on_tick": {
					"event": "furnicraft:grow",
					"target": "self"
				}
			},
	        "minecraft:placement_filter": {
		        "conditions": [
			        {
				        "block_filter": ["minecraft:grass","minecraft:dirt","minecraft:podzol","minecraft:mycelium"],
				        "allowed_faces": ["up"]
                    }
                ]
            },
			"minecraft:on_interact": {
				"event": "furnicraft:grow",
				"target": "self",
				"condition": "query.get_equipped_item_name('main_hand') == 'bone_meal'"
			}
		},
		"events": {
			"furnicraft:grow": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'bone_meal'",
						"run_command": {
							"command": [
								"particle minecraft:crop_growth_emitter ~ ~ ~",
								"playsound item.bone_meal.use @a ~ ~ ~"
							]
						},
						"trigger": {
							"event": "furnicraft:random",
							"target": "self"
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') != 'bone_meal'",
						"run_command": {
							"command": [
								"structure load graytree ~-2 ~ ~-2"
							]
						}
					}
				]
			},
			"furnicraft:random": {
				"randomize": [
					{
						"weight": 75,
						"decrement_stack": {}
					},
					{
						"weight": 25,
						"decrement_stack": {},
						"run_command": {
							"command": [
								"structure load graytree ~-2 ~ ~-2"
							]
						}
					}
				]
			}
		}
	}
}