{
    "format_version":"1.21.10",
    "minecraft:entity":{
        "description":{
            "identifier":"sgs_farm:region_seed",
            "is_spawnable":false,
            "is_summonable":true,
            "is_experimental":false,
            "animations":{
                "init":"animation.sgs_farm.region_seed"
            },
            "scripts":{
                "animate":[
                    "init"
                ]
            },
            "properties":{
                "sgs_farm:biome":{
                    "type":"int",
                    "client_sync":true,
                    "default":0,
                    "range":[
                        0,
                        6
                    ]
                }
            }
        },
        "component_groups":{
            "sgs_farm:despawn":{
                "minecraft:instant_despawn":{
                    
                }
            },
            "sgs_farm:transform_into_despawn":{
                "minecraft:transformation":{
                    "into":"sgs_farm:region_seed<sgs_farm:despawn>",
                    "drop_equipment":true
                }
            }
        },
        "components":{
            "minecraft:scale":{
                "value":1.0
            },
			"minecraft:timer": {
				"looping": false,
				"time": 3,
				"time_down_event": {
				  "event": "sgs_farm:despawn",
				  "target": "self"
				}
			},
            "minecraft:collision_box":{
                "width":0.0,
                "height":0.0
            },
            "minecraft:pushable":{
                "is_pushable":false,
                "is_pushable_by_piston":false
            },
            "minecraft:knockback_resistance":{
                "value":1.0
            },
            "minecraft:type_family":{
                "family":[
                    "sgs_farm_region_seed",
                    "inanimate"
                ]
            },
            "minecraft:inventory":{
                "inventory_size":1
            },
            "minecraft:health":{
                "value":100,
                "max":100
            },
            "minecraft:nameable":{
                "always_show":true,
                "allow_name_tag_renaming":false
            },
            "minecraft:movement":{
                "value":0
            },
            "minecraft:navigation.walk":{
                "can_float":false,
                "avoid_water":true,
                "avoid_damage_blocks":true
            },
            "minecraft:movement.basic":{
                
            },
            "minecraft:fire_immune":false,
            "minecraft:damage_sensor":{
                "triggers":[
                    {
                        "deals_damage":false
                    }
                ]
            }
        },
        "events":{
            "minecraft:entity_spawned":{
                "sequence":[
                    {
                        "filters":{
                            "all_of":[
                                {
                                    "test":"has_biome_tag",
									"operator": "equals",
                                    "value":"forest"
                                },
                                {
                                    "test":"has_biome_tag",
									"operator": "not",
                                    "value":"taiga"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 1
						}
                    },
					{
                        "filters":{
                            "any_of":[
                                {
                                    "test":"has_biome_tag",
                                    "value":"jungle"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 2
						}
                    },
					{
                        "filters":{
                            "any_of":[
                                {
                                    "test":"has_biome_tag",
                                    "value":"swamp"
                                },
								{
                                    "test":"has_biome_tag",
                                    "value":"mangrove_swamp"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 3
						}
                    },
					{
                        "filters":{
                            "any_of":[
                                {
                                    "test":"has_biome_tag",
                                    "value":"savanna"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 4
						}
                    },
					{
                        "filters":{
                            "any_of":[
                                {
                                    "test":"has_biome_tag",
                                    "value":"taiga"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 5
						}
                    },
					{
                        "filters":{
                            "any_of":[
                                {
                                    "test":"has_biome_tag",
                                    "value":"plains"
                                },
								{
                                    "test":"has_biome_tag",
                                    "value":"river"
                                }
                            ]
                        },
                        "set_property":{
						   "sgs_farm:biome": 6
						}
                    }
                ]
            },
            "sgs_farm:transform":{
                "add":{
                    "component_groups":[
                        "sgs_farm:transform_into_despawn"
                    ]
                }
            },
            "sgs_farm:despawn":{
                "add":{
                    "component_groups":[
                        "sgs_farm:despawn"
                    ]
                }
            }
        }
    }
}