guide > bp > entities > ghost.json
{
"format_version": "1.21.90",
"minecraft:entity": {
"description": {
"identifier": "wiki:ghost",
"spawn_category": "monster",
"is_summonable": true,
"is_spawnable": true
},
"components": {
"minecraft:type_family": {
"family": ["ghost", "monster"]
},
"minecraft:jump.static": {},
"minecraft:can_climb": {},
"minecraft:physics": {},
"minecraft:movement.basic": {},
"minecraft:loot": {
"table": "loot_tables/entities/ghost.json"
},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:collision_box": { "width": 1, "height": 2 },
"minecraft:movement": { "value": 0.2 },
"minecraft:behavior.delayed_attack": {
"priority": 0,
"attack_once": false,
"track_target": true,
"require_complete_path": false,
"random_stop_interval": 0,
"reach_multiplier": 1.5,
"speed_multiplier": 1,
"attack_duration": 0.75,
"hit_delay_pct": 0.5
},
"minecraft:navigation.walk": {
"can_walk": true,
"avoid_sun": true,
"can_pass_doors": true,
"can_open_doors": true
},
"minecraft:attack": {
"damage": 3
},
"minecraft:behavior.random_look_around": {
"priority": 7
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"within_radius": 25,
"reselect_targets": true,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
}
]
},
"max_dist": 35
}
]
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6,
"probability": 0.02
}
}
}
}