{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:merchant_cured",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:nameable": {
				"always_show": true
			},
			"minecraft:type_family": {
				"family": [
					"merchant_cured"
				]
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_pass_doors": true,
				"can_walk": true,
				"can_break_doors": true
			},
			"minecraft:annotation.break_door": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0,
				"breathes_air": true,
				"breathes_water": true
			},
			"minecraft:attack": {
				"damage": 3
			},
			"minecraft:behavior.melee_attack": {
				"priority": 3,
				"speed_multiplier": 1,
				"track_target": false
			},
			"minecraft:behavior.move_towards_restriction": {
				"priority": 5,
				"speed_multiplier": 1
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 1
			},
			"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:trade_table": {
				"new_screen": true,
				"display_name": "Disciple Historian",
				"table": "trading/merchant.json",
				"persist_trades": true,
				"hero_demand_discount": 0.7
			},
			"minecraft:movement": {
				"value": 0.25
			},
			"minecraft:behavior.trade_interest": {
				"priority": 4,
				"within_radius": 10,
				"cooldown": 0
			},
			"minecraft:behavior.trade_with_player": {
				"priority": 3
			},
			"minecraft:timer": {
				"looping": false,
				"time": 30,
				"time_down_event": {
					"target": "self",
					"event": "dotvi:despawn"
				}
			}
		},
		"events": {
			"minecraft:entity_spawned": {},
			"dotvi:despawn_event": {
				"add": {
					"component_groups": [
						"dotvi:despawn"
					]
				}
			},
			"dotvi:despawn": {
				"run_command": {
					"target": "self",
					"command": [
						"particle dotvi:heritickill_one",
						"playsound misc.ghost.poof @a[r=15]",
						"event entity @s dotvi:despawn_event"
					]
				}
			}
		}
	}
}