{
	"file_type": "entity",
	"display_name": "Tameable",
	"template": {
		"force_default_scope": true,
		"data_path": "minecraft:entity",
		"data": {
			"components": {
				"minecraft:tameable": {
					"probability": 0.2,
					"tame_items": [
						"minecraft:apple"
					],
					"tame_event": {
						"target": "self",
						"event": "bridge:on_tame"
					}
				}
			},
			"events": {
				"bridge:on_tame": {
					"add": {
						"component_groups": [
							"bridge:tamed"
						]
					}
				}
			},
			"component_groups": {
				"bridge:tamed": {
					"minecaft:is_tamed": {},
					"minecraft:behavior.follow_owner": {
						"priority": 6,
						"speed_multiplier": 1,
						"start_distance": 10,
						"stop_distance": 2
					},
					"minecraft:behavior.owner_hurt_target": {
						"priority": 2
					},
					"minecraft:behavior.owner_hurt_by_target": {
						"priority": 1
					},
					"minecraft:behavior.melee_attack": {
						"priority": 5
					}
				}
			}
		}
	}
}