{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "twot:copper_golem",
			"is_summonable": true,
			"is_spawnable": true
		},
		"component_groups": {
			"twot:def": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:movement": {
					"value": 0.6
				},
				"minecraft:timer": {
					"time_down_event": {
						"event": "twot:ox1",
						"target": "self"
					},
					"time": [
						1800,
						2400
					],
					"looping": true
				},
				"minecraft:interact": {
					"interactions": {}
				}
			},
			"twot:ox1": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:movement": {
					"value": 0.4
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"event": "twot:ox0",
								"filters": {
									"all_of": [
										{
											"test": "has_component",
											"subject": "self",
											"operator": "!=",
											"value": "twot:wax"
										},
										{
											"any_of": [
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:wooden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:stone_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:iron_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:golden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:diamond_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:netherite_axe"
												}
											]
										}
									]
								}
							},
							"hurt_item": 1,
							"swing": true,
							"interact_text": "twot.logcode.golem_axe_interract"
						}
					]
				},
				"minecraft:timer": {
					"time_down_event": {
						"event": "twot:ox2",
						"target": "self"
					},
					"time": [
						1800,
						2400
					],
					"looping": true
				}
			},
			"twot:ox2": {
				"minecraft:variant": {
					"value": 2
				},
				"minecraft:movement": {
					"value": 0.2
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"event": "twot:ox1",
								"filters": {
									"all_of": [
										{
											"test": "has_component",
											"subject": "self",
											"operator": "!=",
											"value": "twot:wax"
										},
										{
											"any_of": [
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:wooden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:stone_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:iron_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:golden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:diamond_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:netherite_axe"
												}
											]
										}
									]
								}
							},
							"hurt_item": 1,
							"swing": true,
							"interact_text": "twot.logcode.golem_axe_interract"
						}
					]
				},
				"minecraft:timer": {
					"time_down_event": {
						"event": "twot:ox3",
						"target": "self"
					},
					"time": [
						1800,
						2400
					]
				}
			},
			"twot:ox3": {
				"minecraft:variant": {
					"value": 3
				},
				"minecraft:movement": {
					"value": 0
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"event": "twot:ox2",
								"filters": {
									"all_of": [
										{
											"test": "has_component",
											"subject": "self",
											"operator": "!=",
											"value": "twot:wax"
										},
										{
											"any_of": [
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:wooden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:stone_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:iron_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:golden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:diamond_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:netherite_axe"
												}
											]
										}
									]
								}
							},
							"hurt_item": 1,
							"swing": true,
							"interact_text": "twot.logcode.golem_axe_interract"
						}
					]
				}
			},
			"twot:wax": {
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "has_component",
											"subject": "self",
											"value": "twot:wax"
										},
										{
											"any_of": [
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:wooden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:stone_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:iron_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:golden_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:diamond_axe"
												},
												{
													"test": "has_equipment",
													"domain": "hand",
													"subject": "other",
													"value": "minecraft:netherite_axe"
												}
											]
										}
									]
								},
								"event": "twot:anwax"
							},
							"hurt_item": 1,
							"swing": true,
							"interact_text": "twot.logcode.golem_axe_interract"
						}
					]
				}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:health": {
				"value": 36
			},
			"minecraft:type_family": {
				"family": [
					"mob",
					"coppergolem"
				]
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
        "minecraft:loot": {
          "table": "loot_tables/entities/ad+/copper_golem.json"
      },
			"minecraft:collision_box": {
				"width": 0.55,
				"height": 1.2
			},
			"minecraft:nameable": {
				"allow_name_tag_renaming": true,
				"always_show": false
			},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_path_over_water": true,
				"can_pass_doors": true,
				"can_open_doors": true,
				"can_pass_iron_doors": true,
				"can_open_iron_doors": true,
				"can_walk": true,
				"avoid_water": true
			},
			"minecraft:annotation.open_door": {},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:persistent": {},
			"minecraft:behavior.move_indoors": {
				"priority": 4,
				"speed_multiplier": 0.5
			},
			"minecraft:behavior.avoid_mob_type": {
				"priority": 1,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "axolotl"
								}
							]
						},
						"must_see": true,
						"max_dist": 16,
						"walk_speed_multiplier": 0.6,
						"sprint_speed_multiplier": 0.7
					}
				]
			},
			"minecraft:behavior.restrict_open_door": {
				"priority": 4
			},
			"minecraft:behavior.open_door": {
				"priority": 8,
				"close_door_after": true
			},
			"minecraft:behavior.random_stroll": {
				"priority": 11,
				"speed_multiplier": 0.3
			},
			"minecraft:behavior.look_at_player": {
				"priority": 12,
				"look_distance": 8,
				"probability": 0.02
			},
			"minecraft:physics": {
				"has_collision": true,
				"has_gravity": true
			},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:attack": {
				"damage": 5
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 1,
				"must_see": true,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "silverfish"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "endermite"
								}
							]
						}
					}
				],
				"within_radius": 30
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:knockback_resistance": {
				"value": 0.9
			},
			"minecraft:behavior.melee_attack": {
				"priority": 0
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"twot:def"
					]
				}
			},
			"twot:ox1": {
				"remove": {
					"component_groups": [
						"twot:def",
						"twot:ox2"
					]
				},
				"add": {
					"component_groups": [
						"twot:ox1"
					]
				}
			},
			"twot:wax_ev": {
				"add": {
					"component_groups": [
						"twot:wax"
					]
				},
				"run_command": {
					"command": [
						"tag @s add wax.copper_golem"
					]
				}
			},
			"twot:anwax": {
				"remove": {
					"component_groups": [
						"twot:wax"
					]
				},
				"run_command": {
					"command": [
						"tag @s remove wax.copper_golem"
					]
				}
			},
			"twot:ox0": {
				"add": {
					"component_groups": [
						"twot:def"
					]
				},
				"remove": {
					"component_groups": [
						"twot:ox1"
					]
				}
			},
			"twot:ox2": {
				"remove": {
					"component_groups": [
						"twot:ox1",
						"twot:ox3"
					]
				},
				"add": {
					"component_groups": [
						"twot:ox2"
					]
				}
			},
			"twot:ox3": {
				"remove": {
					"component_groups": [
						"twot:ox2"
					]
				},
				"add": {
					"component_groups": [
						"twot:ox3"
					]
				}
			}
		}
	}
}