{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_387_builder",
			"is_summonable": true,
			"is_spawnable": false,
			"is_experimental": false
		},
		"component_groups": {
			"scp387build": {
				"minecraft:transformation": {
					"into": "scpcf:scp_387_building"
				}
			},
			"scp387abletobuild": {
				"minecraft:timer": {
					"looping": true,
					"time": [
						60,
						120
					],
					"time_down_event": {
						"event": "scp387build"
					}
				}
			}
		},
		"components": {
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": false,
				"avoid_portals": false,
				"avoid_sun": false,
				"avoid_water": true,
				"avoid_damage_blocks": false,
				"can_break_doors": false,
				"can_open_doors": false,
				"can_pass_doors": true,
				"can_path_over_water": true,
				"can_path_over_lava": false,
				"can_path_from_air": false,
				"can_sink": false,
				"can_walk_in_lava": false
			},
			"minecraft:behavior.random_stroll": {
				"priority": 2,
				"speed_multiplier": 0.5
			},
			"minecraft:health": {
				"value": 1,
				"max": 1
			},
			"minecraft:jump.static": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:can_climb": {},
			"minecraft:type_family": {
				"family": [
					"scp"
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:behavior.nearest_attackable_target": {
				"entity_types": [
					{
						"filters": {
							"other_with_families": [
								"player",
								"animal",
								"mob",
								"recontainhuman",
								"scp"
							]
						},
						"must_see": true,
						"max_dist": 6
					}
				]
			},
			"minecraft:follow_range": 6,
			"minecraft:scale": {
				"value": 0.4
			},
			"minecraft:interact": {
				"interactions": [
					{
						"on_interact": {
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "has_equipment",
										"domain": "hand",
										"subject": "other",
										"value": "scpcf:scp_387_stop_building_tool"
									}
								]
							},
							"event": "stop387building"
						},
						"interact_text": "Stop 387 From Building Houses.",
						"use_item": false
					}
				]
			},
			"minecraft:collision_box": {
				"width": 0.1,
				"height": 0.5
			},
			"minecraft:behavior.float": {
				"priority": 2
			}
		},
		"events": {
			"scp387build": {
				"add": {
					"component_groups": [
						"scp387build"
					]
				}
			},
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"scp387abletobuild"
					]
				}
			},
			"minecraft:entity_transformed": {
				"add": {
					"component_groups": [
						"scp387abletobuild"
					]
				}
			},
			"stop387building": {
				"remove": {
					"component_groups": [
						"scp387abletobuild"
					]
				}
			}
		}
	}
}