{
	"format_version": "1.17.0",
	"minecraft:block": {
		"description": {
			"identifier": "furnicraft:cyan_leaves"
		},
		"components": {
            "minecraft:random_ticking": {
              "on_tick": {
                "event": "furnicraft:active",
                "target": "self"
              }
            },
			"minecraft:destroy_time": 0.3,
			"minecraft:flammable": {
				"burn_odds": 5,
				"flame_odds": 5
			},
			"minecraft:breathability": "air",
			"minecraft:material_instances": {
				"*": {
					"texture": "cyanl",
					"render_method": "alpha_test",
					"ambient_occlusion": true,
					"face_dimming": true
				}
			},
            "minecraft:block_light_absorption": 0.5,
            "minecraft:block_light_emission": 0.2,
			"minecraft:loot": "loot_tables/empty.json",
            "minecraft:geometry": "geometry.leaves2",
			"minecraft:on_player_destroyed": {
				"event": "furnicraft:spawn_loot",
				"target": "self"
			},
			"minecraft:creative_category": {
				"category": "Nature",
				"group": "itemGroup.name.leaves"
			}
		},
		"events": {
            "furnicraft:active": {
                "run_command": {
                  "command": [ "particle furnicraft:cyanp ~-1 ~-0.5 ~-1" ]
               }
            },
			"furnicraft:spawn_loot": {
				"sequence": [
					{
						"condition": "query.get_equipped_item_name('main_hand') == 'shears'",
						"spawn_loot": {
							"table": "loot_tables/blocks/tree/cyan/leaves_block.json"
						}
					},
					{
						"condition": "query.get_equipped_item_name('main_hand') != 'shears'",
						"trigger": {
							"event": "furnicraft:random_loot",
							"target": "self"
						}
					}
				]
			},
			"furnicraft:random_loot": {
				"randomize": [
					{
						"weight": 25,
						"spawn_loot": {
							"table": "loot_tables/blocks/tree/cyan/sapling.json"
						},
						"set_block": {
							"block_type": "minecraft:air"
						}
					},
					{
						"weight": 75,
						"spawn_loot": {
							"table": "loot_tables/empty.json"
						},
						"set_block": {
							"block_type": "minecraft:air"
						}
					}
				]
			}
		}
	}
}