{
    "format_version": "1.18.0",
    "minecraft:entity": {
        "description": {
            "identifier": "ldz:gardener_flower",
            "is_experimental": false,
            "is_spawnable": false,
            "is_summonable": true
        },
        "component_groups": {
            "instant_despawn": {
                "minecraft:instant_despawn": {}
            },
            "sunflower": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
				"minecraft:variant": {
					"value": 1
				}
            },
            "lilac": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
                "minecraft:variant": {
					"value": 2
				}
            },
            "rose": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
                "minecraft:variant": {
					"value": 3
				}
            },
            "peony": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
                "minecraft:variant": {
					"value": 4
				}
            },
            "grass": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
                "minecraft:variant": {
					"value": 5
				}
            },
            "fern": {
				"minecraft:timer": {
					"time": 1.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				},
                "minecraft:variant": {
					"value": 6
				}
            }
        },
        "components": {
            "minecraft:type_family": {
				"family": [ "ender_gardener", "ender_gardener_flower" ]
			},
			"minecraft:nameable": {},
			"minecraft:health": {
				"value": 1,
				"max": 1
			},
			"minecraft:knockback_resistance": {
				"value": 1,
				"max": 1
			},
			"minecraft:collision_box": {
				"width": 0,
				"height": 0
			},
			"minecraft:persistent": {},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false,
				"push_towards_closest_space": false
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": { "test": "has_damage", "value": "void" },
							"event": "despawn",
							"target": "self"
						},
						"deals_damage": false
					},
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			},
            "minecraft:timer": {
                "time": 0.0001,
				"looping": false,
                "time_down_event": {
                    "event": "minecraft:entity_spawned",
                    "target": "self"
                }
            }
        },
        "events": {
            "minecraft:entity_spawned": {
                "randomize": [
                    {
                        "trigger": "sunflower",
                        "weight": 2
                    },
                    {
                        "trigger": "lilac",
                        "weight": 1
                    },
                    {
                        "trigger": "rose",
                        "weight": 2
                    },
                    {
                        "trigger": "peony",
                        "weight": 1
                    },
                    {
                        "trigger": "grass",
                        "weight": 2
                    },
                    {
                        "trigger": "fern",
                        "weight": 1
                    }
                ]
            },
            "despawn": {
                "add": {
                    "component_groups": [
                        "instant_despawn"
                    ]
                }
            },
            "sunflower": {
                "add": {
                    "component_groups": [
                        "sunflower"
                    ]
                }
            },
            "lilac": {
                "add": {
                    "component_groups": [
                        "lilac"
                    ]
                }
            },
            "rose": {
                "add": {
                    "component_groups": [
                        "rose"
                    ]
                }
            },
            "peony": {
                "add": {
                    "component_groups": [
                        "peony"
                    ]
                }
            },
            "grass": {
                "add": {
                    "component_groups": [
                        "grass"
                    ]
                }
            },
            "fern": {
                "add": {
                    "component_groups": [
                        "fern"
                    ]
                }
            }
        }
    }
}