{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "dds_camping:snake",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"minecraft:snake_neutral": {
				"minecraft:environment_sensor": {
					"triggers": {
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "is_missing_health",
									"subject": "other",
									"value": true
								}
							]
						},
						"event": "minecraft:become_hostile"
					}
				},
				"minecraft:on_target_acquired": {
					"event": "minecraft:become_angry"
				}
			},
			"minecraft:snake_hostile": {
				"minecraft:environment_sensor": {
					"triggers": {
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "is_missing_health",
									"subject": "other",
									"value": false
								}
							]
						},
						"event": "minecraft:become_neutral"
					}
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 2,
					"must_see": true,
					"attack_interval": 5,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "frog"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "rabbit"
									}
								]
							},
							"max_dist": 16
						}
					]
				},
				"minecraft:behavior.melee_attack": {
					"priority": 3,
					"track_target": true,
					"random_stop_interval": 100,
					"reach_multiplier": 0.8
				}
			},
			"minecraft:snake_angry": {
				"minecraft:angry": {
					"duration": 10,
					"duration_delta": 3,
					"calm_event": {
						"event": "minecraft:on_calm",
						"target": "self"
					}
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 2,
					"must_see": true,
					"attack_interval": 5,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "frog"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "rabbit"
									}
								]
							},
							"max_dist": 16
						}
					]
				},
				"minecraft:behavior.melee_attack": {
					"priority": 3,
					"track_target": true,
					"reach_multiplier": 1.4
				}
			},
			"minecraft:snake_poison_easy": {
				"minecraft:attack": {
					"damage": 2,
					"effect_name": "fatal_poison",
					"effect_duration": 2
				}
			},
			"minecraft:snake_poison_normal": {
				"minecraft:attack": {
					"damage": 2,
					"effect_name": "fatal_poison",
					"effect_duration": 7
				}
			},
			"minecraft:snake_poison_hard": {
				"minecraft:attack": {
					"damage": 2,
					"effect_name": "fatal_poison",
					"effect_duration": 15
				}
			}
		},
		"components": {
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?5:0"
			},
			"minecraft:type_family": {
				"family": [
					"snake",
					"mob"
				]
			},
			"minecraft:loot": {
				"table": "loot_tables/dds/camping/snake.json"
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:nameable": {},
			"minecraft:collision_box": {
				"width": 0.7,
				"height": 0.5
			},
			"minecraft:health": {
				"value": 18,
				"max": 18
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:movement": {
				"value": 0.25
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.float": {
				"priority": 1
			},
			"minecraft:behavior.mount_pathing": {
				"priority": 5,
				"speed_multiplier": 1.25,
				"target_dist": 0,
				"track_target": true
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 7
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"randomize": [
							{
								"weight": 1,
								"randomize": [
									{
										"weight": 80,
										"filters": {
											"all_of": [
												{
													"test": "is_daytime",
													"value": false
												},
												{
													"test": "is_snow_covered",
													"value": true
												},
												{
													"test": "is_underground",
													"value": false
												}
											]
										},
										"remove": {},
										"add": {
											"component_groups": [
												"minecraft:snake_neutral"
											]
										}
									},
									{
										"weight": 20,
										"filters": {
											"any_of": [
												{
													"test": "is_daytime",
													"value": false
												},
												{
													"test": "is_underground",
													"value": true
												}
											]
										},
										"remove": {},
										"add": {
											"component_groups": [
												"minecraft:snake_neutral"
											]
										}
									}
								]
							},
							{
								"weight": 99,
								"remove": {},
								"add": {
									"component_groups": [
										"minecraft:snake_neutral"
									]
								}
							}
						]
					}
				]
			},
			"minecraft:become_hostile": {
				"sequence": [
					{
						"remove": {
							"component_groups": [
								"minecraft:snake_neutral"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_hostile"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "easy"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_hard",
								"minecraft:snake_poison_normal"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_easy"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "normal"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_easy",
								"minecraft:snake_poison_hard"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_normal"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "hard"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_easy",
								"minecraft:snake_poison_normal"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_hard"
							]
						}
					}
				]
			},
			"minecraft:become_neutral": {
				"remove": {
					"component_groups": [
						"minecraft:snake_hostile"
					]
				},
				"add": {
					"component_groups": [
						"minecraft:snake_neutral"
					]
				}
			},
			"minecraft:become_angry": {
				"sequence": [
					{
						"remove": {
							"component_groups": [
								"minecraft:snake_neutral"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_angry"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "easy"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_hard",
								"minecraft:snake_poison_normal"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_easy"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "normal"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_easy",
								"minecraft:snake_poison_hard"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_normal"
							]
						}
					},
					{
						"filters": {
							"test": "is_difficulty",
							"value": "hard"
						},
						"remove": {
							"component_groups": [
								"minecraft:snake_poison_easy",
								"minecraft:snake_poison_normal"
							]
						},
						"add": {
							"component_groups": [
								"minecraft:snake_poison_hard"
							]
						}
					}
				]
			},
			"minecraft:on_calm": {
				"remove": {
					"component_groups": [
						"minecraft:snake_angry"
					]
				},
				"add": {
					"component_groups": [
						"minecraft:snake_neutral"
					]
				}
			}
		}
	}
}