1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2025-01-31 06:01:26 +00:00
Mike Ammerlaan 5ce65764d3 v1.21.50.7
2024-12-03 08:43:20 -08:00

145 lines
3.8 KiB
JSON

{
"format_version": "1.16.0",
"minecraft:entity": {
"description": {
"identifier": "minecraft:vex",
"spawn_category": "monster",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"minecraft:start_damage_timer": {
"minecraft:timer": {
"looping": false,
"randomInterval": true,
"time": [ 30, 119 ],
"time_down_event": {
"event": "minecraft:add_periodic_damage"
}
}
},
"minecraft:periodic_damage": {
"minecraft:damage_over_time": {
"damage_per_hurt": 1,
"time_between_hurt": 1.0
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {
},
"minecraft:experience_reward": {
"on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
},
"minecraft:nameable": {
},
"minecraft:type_family": {
"family": [ "vex", "monster", "mob" ]
},
"minecraft:equipment": {
"table": "loot_tables/entities/vex_gear.json"
},
"minecraft:health": {
"value": 14,
"max": 14
},
"minecraft:attack": {
"damage": 3
},
"minecraft:collision_box": {
"width": 0.4,
"height": 0.8
},
"minecraft:movement": {
"value": 1.0
},
"minecraft:navigation.walk": {
"can_path_over_water": true
},
"minecraft:movement.basic": {
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:fire_immune": {
},
"minecraft:despawn": {
"despawn_from_distance": {}
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.charge_attack": {
"priority": 4
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 3,
"entity_types": [
{
"filters": {
"any_of" : [
{"test" : "is_family", "subject" : "other", "value" : "player"},
{"test" : "is_family", "subject" : "other", "value" : "irongolem"},
{"test" : "is_family", "subject" : "other", "value" : "wandering_trader"}
]
},
"max_dist": 70
},
{
"filters": {
"all_of": [
{ "test": "is_family", "subject": "other", "value": "villager" },
{ "test": "has_component", "subject": "other", "operator": "!=", "value": "minecraft:is_baby" }
]
},
"max_dist": 70
}
],
"must_see": true
},
"minecraft:behavior.look_at_player": {
"priority": 9,
"look_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.look_at_entity": {
"priority": 9,
"look_distance": 6.0,
"probability": 0.02,
"filters": { "test" : "is_family", "subject" : "other", "value" : "mob"}
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:physics": {
"has_gravity": false,
"has_collision": false
},
"minecraft:conditional_bandwidth_optimization": {
},
"minecraft:game_event_movement_tracking": {
"emit_move": false,
"emit_swim": false
}
},
"events": {
"minecraft:add_damage_timer": {
"add": {
"component_groups": [ "minecraft:start_damage_timer" ]
}
},
"minecraft:add_periodic_damage": {
"add": {
"component_groups": [ "minecraft:periodic_damage" ]
},
"remove": {
"component_groups": [ "minecraft:start_damage_timer" ]
}
}
}
}
}