{
"format_version":"1.21.90",
"minecraft:entity":{
"description":{
"identifier":"summon:magic_skull",
"spawn_category":"monster",
"is_spawnable":false,
"is_summonable":false
},
"components":{
"minecraft:is_hidden_when_invisible":{

},
"minecraft:experience_reward":{
"on_death":"query.last_hit_by_player?3:0"
},
"minecraft:fire_immune":{

},
"minecraft:health":{
"value":10,
"max":10
},
"minecraft:collision_box":{
"height":0.5,
"width":0.5
},
"minecraft:movement":{
"value":0.02
},
"minecraft:navigation.float":{
"can_path_over_water":true,
"avoid_damage_blocks":false,
"avoid_portals":false,
"avoid_sun":false,
"avoid_water":false,
"blocks_to_avoid":[

],
"can_breach":false,
"can_break_doors":false,
"can_jump":true,
"can_open_doors":false,
"can_open_iron_doors":false,
"can_pass_doors":true,
"can_path_from_air":false,
"can_path_over_lava":false,
"can_sink":true,
"can_swim":false,
"can_walk":true,
"can_walk_in_lava":false,
"is_amphibious":false
},
"minecraft:behavior.float_wander":{
"priority":2,
"must_reach":true,
"random_reselect":true,
"float_duration":[
0,
2
],
"float_wander_has_move_control":false,
"additional_collision_buffer":true,
"allow_navigating_through_liquids":false,
"navigate_around_surface":false,
"surface_xz_dist":3,
"surface_y_dist":3,
"use_home_position_restriction":true,
"xz_dist":10,
"y_dist":10,
"y_offset":0.0
},
"minecraft:can_fly":{

},
"minecraft:shooter":{
"def":"projectile:manaorbv2",
"magic":false,
"power":1.25
},
"minecraft:type_family":{
"family":[
"pet",
"misc",
"summon",
"custom_mob"
]
},
"minecraft:damage_sensor":{
"triggers":[
{
"cause":"fall",
"deals_damage":"no"
}
]
},
"minecraft:despawn":{
"despawn_from_distance":{

}
},
"minecraft:behavior.float":{
"priority":0,
"sink_with_passengers":false
},
"minecraft:behavior.ranged_attack":{
"priority":1,
"attack_radius":30.0,
"charge_shoot_trigger":2.5,
"charge_charged_trigger":1.0,
"attack_interval_max":2.0,
"attack_interval_min":0.0,
"attack_radius_min":6.0,
"burst_interval":0.0,
"burst_shots":1,
"ranged_fov":90.0,
"set_persistent":true,
"speed_multiplier":1.0,
"swing":false,
"target_in_sight_time":0.5,
"x_max_rotation":30.0,
"y_max_head_rotation":30.0
},
"minecraft:follow_range":{
"value":64,
"max":64
},
"minecraft:behavior.hurt_by_target":{
"priority":1,
"alert_same_type":true,
"hurt_owner":false
},
"minecraft:behavior.nearest_attackable_target":{
"priority":2,
"entity_types":[
{
"filters":{
"any_of":[
{
"test":"is_family",
"subject":"other",
"value":"monster"
},
{
"test":"is_family",
"subject":"other",
"value":"illager"
}
]
},
"must_see":true,
"max_dist":30.0
}
],
"must_see":true,
"attack_owner":false,
"must_reach":false,
"must_see_forget_duration":3.0,
"persist_time":5.0,
"reselect_targets":true,
"scan_interval":11,
"set_persistent":true,
"target_invisible_multiplier":0.7,
"target_search_height":-1.0,
"target_sneak_visibility_multiplier":0.8,
"within_radius":0
},
"minecraft:physics":{
"has_collision":true,
"has_gravity":true,
"push_towards_closest_space":false
},
"minecraft:pushable":{
"is_pushable":true,
"is_pushable_by_piston":true
},
"minecraft:conditional_bandwidth_optimization":{

},
"minecraft:cannot_be_attacked":{

},
"minecraft:flying_speed":{
"value":0.02
},
"minecraft:movement.hover":{
"max_turn":30.0
},
"minecraft:behavior.follow_owner":{
"can_teleport":true,
"ignore_vibration":false,
"max_distance":60.0,
"post_teleport_distance":false,
"speed_multiplier":1.0,
"start_distance":6.0,
"stop_distance":5.0
},
"minecraft:tameable":{
"probability":1.0,
"tame_items":[
"fish"
]
},
"minecraft:behavior.owner_hurt_by_target":{

},
"minecraft:behavior.owner_hurt_target":{

}
},
"events":{
"tamedV2":{
"sequence":[
{
"queue_command":{
"command":[
"spreadplayers ~~ 1 4 @s ~",
"tag @s add iframes"
]
}
},
{
"add":{
"component_groups":[
"tamed",
"despawn_timer",
"evil"
]
}
}
]
},
"despawn":{
"add":{
"component_groups":[
"despawn"
]
}
},
"tamed":{
"sequence":[
{
"queue_command":{
"command":[
"spreadplayers ~~ 1 4 @s ~",
"tag @s add iframes"
]
}
},
{
"add":{
"component_groups":[
"tamed",
"despawn_timer",
"notevil"
]
}
}
]
}
},
"component_groups":{
"notevil":{
"minecraft:behavior.nearest_attackable_target":{
"priority":2,
"entity_types":[
{
"filters":{
"any_of":[
{
"test":"is_family",
"subject":"other",
"value":"monster"
},
{
"test":"is_family",
"subject":"other",
"value":"illager"
}
]
},
"must_see":true,
"max_dist":30.0
}
],
"must_see":true,
"attack_owner":false,
"must_reach":false,
"must_see_forget_duration":3.0,
"persist_time":5.0,
"reselect_targets":true,
"scan_interval":11,
"set_persistent":true,
"target_invisible_multiplier":0.7,
"target_search_height":-1.0,
"target_sneak_visibility_multiplier":0.8,
"within_radius":0
}
},
"evil":{
"minecraft:behavior.nearest_attackable_target":{
"priority":3,
"must_see":true,
"reselect_targets":true,
"within_radius":30,
"must_see_forget_duration":100.0,
"entity_types":[
{
"filters":{
"any_of":[
{
"any_of":[
{
"test":"is_family",
"subject":"other",
"operator":"==",
"value":"player"
},
{
"test":"is_family",
"subject":"other",
"operator":"==",
"value":"villager"
},
{
"test":"is_family",
"subject":"other",
"operator":"==",
"value":"irongolem"
},
{
"test":"is_family",
"subject":"other",
"operator":"==",
"value":"undead"
}
]
}
]
},
"max_dist":50
}
]
}
},
"despawn":{
"minecraft:instant_despawn":{}
},
"despawn_timer":{
"minecraft:timer":{
"looping":true,
"time":[5,15],
"time_down_event":{
"event":"despawn"
}
}
},
"tamed":{
"minecraft:damage_over_time":{
"damage_per_hurt":10,
"time_between_hurt":15
},
"minecraft:timer":{
"looping":true,
"time":[15,5],
"time_down_event":{
"event":"despawn"
}
},
"minecraft:is_tamed":{
},
"minecraft:behavior.teleport_to_owner":{
"priority":1,
"filters":{
"all_of":[
{
"test":"owner_distance",
"operator":">",
"value":10
},
{
"test":"has_target",
"value":false
}
]
}
},
"minecraft:behavior.owner_hurt_by_target":{
"priority":1
},
"minecraft:behavior.owner_hurt_target":{
"priority":2
},
"minecraft:behavior.follow_owner":{
"priority":6,
"speed_multiplier":1.0,
"start_distance":6,
"stop_distance":5,
"filters":{
"all_of":[
{
"test":"has_target",
"value":false
}
]
}
}
}
}
}
}
