{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:mud_golem",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"golem_salvaje": {
				"minecraft:type_family": {
					"family": [
						"mud_golem",
						"mob",
						"monster"
					]
				},
				"minecraft:tameable": {
					"probability": 0.7,
					"tame_items": [
						"minecraft:poppy",
						"cc_fairytales:mud_flower"
					],
					"tame_event": {
						"event": "minecraft:on_tame",
						"target": "self"
					}
				}
			},
			"golem_tame": {
				"minecraft:type_family": {
					"family": [
						"mud_golem",
						"mob"
					]
				},
				"minecraft:is_tamed": {},
				"minecraft:behavior.owner_hurt_by_target": {
					"priority": 1
				},
				"minecraft:behavior.nearest_attackable_target": {
					"attack_owner": false,
					"must_reach": false,
					"must_see": true,
					"must_see_forget_duration": 3,
					"persist_time": 3,
					"reselect_targets": true,
					"scan_interval": 10,
					"set_persistent": true,
					"target_invisible_multiplier": 0.5,
					"target_search_height": -1,
					"target_sneak_visibility_multiplier": 0.8,
					"entity_types": [
						{
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "monster"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "irongolem"
									}
								]
							},
							"max_dist": 30
						}
					]
				}
			}
		},
		"components": {
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 10"
			},"minecraft:collision_box": {
				"height": 2.7,
				"width": 2.7
			},
			"minecraft:pushable": {
				"is_pushable": true
			},
			"minecraft:type_family": {
				"family": [
					"mob",
					"mud_golem",
					"monster"
				]
			},
			"minecraft:nameable": {},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 160
			},
			"minecraft:navigation.walk": {},
			"minecraft:movement": {
				"value": 0.2
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 0.6
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:behavior.nearest_attackable_target": {
				"attack_owner": false,
				"must_reach": false,
				"must_see": true,
				"must_see_forget_duration": 3,
				"persist_time": 3,
				"reselect_targets": true,
				"scan_interval": 10,
				"set_persistent": true,
				"target_invisible_multiplier": 0.5,
				"target_search_height": -1,
				"target_sneak_visibility_multiplier": 0.8,
				"entity_types": [
					{
						"filters": {
							"test": "is_family",
							"subject": "other",
							"operator": "!=",
							"value": "irongolem"
						},
						"max_dist": 30
					}
				]
			},
			"minecraft:knockback_resistance": {
				"value": 0.8
			},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/mud_golem.json"
			},
			"minecraft:attack": {
				"damage": {
					"range_min": 7,
					"range_max": 21
				}
			},
			"minecraft:behavior.melee_box_attack": {
				"cooldown_time": 1,
				"priority": 0,
				"track_target": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"golem_salvaje"
					]
				}
			},
			"minecraft:on_tame": {
				"remove": {
					"component_groups": [
						"golem_salvaje"
					]
				},
				"add": {
					"component_groups": [
						"golem_tame"
					]
				}
			}
		}
	}
}