{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:gargolye",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {
					"remove_child_entities": true
				}
			},
			"tiempo": {
				"minecraft:timer": {
					"time": 0.1,
					"looping": false,
					"time_down_event": {
						"event": "desaparecer",
						"target": "self"
					}
				}
			},
			"efecto1": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 60,
					"mob_effect": "slowness",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto2": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 60,
					"mob_effect": "jump_boost",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto3": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 120,
					"mob_effect": "speed",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto4": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 60,
					"mob_effect": "nausea",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto5": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 40,
					"mob_effect": "blindness",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto6": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 40,
					"mob_effect": "hunger",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto7": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 30,
					"mob_effect": "levitation",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto8": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 120,
					"mob_effect": "haste",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto9": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 60,
					"mob_effect": "strength",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			},
			"efecto10": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"effect_time": 10,
					"mob_effect": "regeneration",
					"entity_filter": [
						{
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						}
					]
				}
			}
		},
		"components": {
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:nameable": {},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:interact": {
				"interactions": [
					{
						"interact_text": "action.interact.gargolye.effect",
						"on_interact": {
							"event": "efecto"
						}
					}
				]
			}
		},
		"events": {
			"desaparecer": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"efecto": {
				"randomize": [
					{
						"add": {
							"component_groups": [
								"efecto1",
								"tiempo"
							]
						},
						"weight": 10
					},
					{
						"add": {
							"component_groups": [
								"efecto2",
								"tiempo"
							]
						},
						"weight": 20
					},
					{
						"add": {
							"component_groups": [
								"efecto3",
								"tiempo"
							]
						},
						"weight": 30
					},
					{
						"add": {
							"component_groups": [
								"efecto4",
								"tiempo"
							]
						},
						"weight": 20
					},
					{
						"add": {
							"component_groups": [
								"efecto5",
								"tiempo"
							]
						},
						"weight": 30
					},
					{
						"add": {
							"component_groups": [
								"efecto6",
								"tiempo"
							]
						},
						"weight": 20
					},
					{
						"add": {
							"component_groups": [
								"efecto7",
								"tiempo"
							]
						},
						"weight": 10
					},
					{
						"add": {
							"component_groups": [
								"efecto8",
								"tiempo"
							]
						},
						"weight": 30
					},
					{
						"add": {
							"component_groups": [
								"efecto9",
								"tiempo"
							]
						},
						"weight": 20
					},
					{
						"add": {
							"component_groups": [
								"efecto10",
								"tiempo"
							]
						},
						"weight": 20
					}
				]
			}
		}
	}
}