{
	"format_version": "1.19.30",
	"minecraft:entity": {
		"description": {
			"identifier": "dds_camping:camping_npc",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dds:despawn": {
				"minecraft:spawn_entity": {
					"entities": [
						{
							"single_use": true,
							"min_wait_time": 0,
							"max_wait_time": 0,
							"spawn_item": "dds_camping:camping_npc_spawn_egg"
						}
					]
				},
				"minecraft:instant_despawn": {}
			},
			"dds:update":{
				"minecraft:transformation": {
					"drop_equipment": false,
					"drop_inventory": false,
					"into": "dds_camping:camping_npc",
					"keep_level": false,
					"keep_owner": false,
					"preserve_equipment": false
				}
			}
		},
		"components": {
			"minecraft:behavior.trade_with_player": {
				"priority": 0
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"cause": "all",
					"deals_damage": false
				}
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6.0,
				"probability": 0.02
			},
			"minecraft:knockback_resistance": {
				"value": 100,
				"max": 100
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:behavior.random_look_around": {
				"priority": 9
			},
			"minecraft:type_family": {
				"family": [
					"inanimate"
				]
			},
			"minecraft:interact": {
                "interactions": [
                    {
                        "on_interact": {
                            "filters": [
                                {
                                    "all_of": [
                                        {
                                            "test": "is_sneaking",
                                            "subject": "other",
                                            "value": true
                                        }
                                    ]
                                }
                            ],
                            "event": "dds:despawn"
                        },
                        "cooldown": 0.6,
                        "use_item": false,
                        "interact_text": "action.interact.structure_demolish"
                    }
                ]
            },
			"minecraft:fire_immune": {},
			"minecraft:movement": {
				"value": 0.0
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 2.1
			},
			"minecraft:nameable": {
				"allow_name_tag_renaming": true,
				"always_show": true
			},
			"minecraft:physics": {},
			"minecraft:health": {
				"value": 10,
				"min": 1
			},
			"minecraft:trade_table": {
				"convert_trades_economy": false,
				"display_name": "Park Ranger",
				"new_screen": true,
				"persist_trades": false,
				"table": "trading/dds/camping/camping_npc.trades.json"
			}
		},
		"events": {
			"dds:despawn": {
				"add": {
					"component_groups": [
						"dds:despawn"
					]
				}
			},
			"dds:update": {
				"add": {
					"component_groups": [
						"dds:update"
					]
				}
			}
		}
	}
}