{ "minecraft:entity": { "format_version": "1.2.0", "component_groups": { "check_for_buffs": { "minecraft:structure_prox_trigger": { "structure_filters": { "all_of": [{ "test": "is_structure_same_team", "subject": "other" },{ "test": "is_structure_name", "subject": "other", "value": "placeable_magmablood" }] }, "opeartor": "and", "filters": { "all_of": [{ "test": "has_component", "operator": "not", "subject": "self", "value": "magmablood" }] }, "event": "apply_magmablood" } }, "magmablood": { "minecraft:behavior.spawn_block_on_death": { "block_name": "flowing_lava", "offset": [0.0, 0.0, 0.0], "duration": 5.0 } }, "minecraft:stats_normal": { "minecraft:scale": { "value": 1.0 }, "minecraft:health": { "value": 16, "max": 16 }, "minecraft:attack": { "damage": 3 } }, "minecraft:stats_giant": { "minecraft:scale": { "value": 4.0 }, "minecraft:health": { "value": 48, "max": 48 }, "minecraft:attack": { "damage": 9 } } }, "components": { "minecraft:identifier": { "id": "minecraft:spider" }, "minecraft:nameable": { }, "minecraft:type_family": { "family": ["spider", "monster", "arthropod"] }, "minecraft:breathable": { "totalSupply": 0, "suffocateTime": 0 }, "minecraft:enlargeable": { "grow": { "event": "minecraft:enlargeable_grow", "target": "self" }, "shrink": { "event": "minecraft:enlargeable_shrink", "target": "self" } }, "minecraft:collision_box": { "width": 1.4, "height": 0.9 }, "minecraft:movement": { "value": 0.27 }, "minecraft:navigation.climb": { "can_float": true, "avoid_water": true }, "minecraft:movement.basic": { }, "minecraft:jump.static": { }, "minecraft:can_climb": { }, "minecraft:loot": { "table": "loot_tables/entities/spider.json" }, "minecraft:structure_sensor": { }, "minecraft:rideable": { "seat_count": 1, "family_types": [ "zombie", "Creeper", "witch", "skeleton" ], "seats": { "position": [ 0.0, 0.54, 0.0 ] } }, "minecraft:behavior.float": { "priority": 0 }, "minecraft:behavior.desire_position": { "priority": 7 }, "minecraft:behavior.hurt_by_target": { "priority": 1, "entity_types": [{ "filters": { "any_of": [{ "test": "is_family", "subject": "other", "value": "player" }, { "test": "is_family", "subject": "other", "value": "villager" }, { "test": "is_family", "subject": "other", "value": "player" }, { "test": "is_family", "subject": "other", "value": "skeleton" }, { "test": "is_family", "subject": "other", "value": "witch" }, { "test": "is_family", "subject": "other", "value": "zombie" }] } }] }, "minecraft:behavior.nearest_attackable_target": { "priority": 1, "within_radius": 20, "entity_types": [ { "filters": { "any_of": [ { "all_of": [ { "test": "is_on_team", "subject": "self", "value": "wild" }, { "test": "is_on_team", "subject": "other", "operator": "not", "value": "wild" } ] }, { "all_of": [ { "test": "is_on_team", "subject": "self", "value": "red" }, { "test": "is_on_team", "subject": "other", "operator": "not", "value": "red" } ] }, { "all_of": [ { "test": "is_on_team", "subject": "self", "value": "blue" }, { "test": "is_on_team", "subject": "other", "operator": "not", "value": "blue" } ] } ] }, "max_dist": 20 } ], "must_see": true, "must_see_forget_duration": 0.0 }, "minecraft:behavior.leap_at_target": { "priority": 2, "yd": 0.4, "must_be_on_ground": false }, "minecraft:behavior.melee_attack": { "priority": 3, "speed_multiplier": 1.0, "track_target": true, "random_stop_interval": 100, "reach_multiplier": 1.4 }, "minecraft:behavior.panic": { "priority": 5, "speed_multiplier": 1 }, "minecraft:behavior.desire_direction": { "priority": 8 }, "minecraft:behavior.target_structures": { "priority": 6, "within_radius": 10, "structure_types": [{ "filters": [{ "any_of": [ { "all_of": [ { "test": "has_structure_tag", "operator": "not", "value": "do_not_target", "subject": "other" }, { "test": "has_structure_tag", "operator": "not", "value": "do_not_target_wall", "subject": "other" }, { "test": "is_on_team", "subject": "self", "value": "blue" }, { "any_of": [ { "test": "is_structure_on_team", "subject": "other", "value": "red" }, { "test": "is_structure_on_team", "subject": "other", "value": "wild" }] } ] }, { "all_of": [ { "test": "has_structure_tag", "operator": "not", "value": "do_not_target", "subject": "other" }, { "test": "has_structure_tag", "operator": "not", "value": "do_not_target_wall", "subject": "other" }, { "test": "is_on_team", "subject": "self", "value": "red" }, { "any_of": [ { "test": "is_structure_on_team", "subject": "other", "value": "blue" }, { "test": "is_structure_on_team", "subject": "other", "value": "wild" }] } ] }, { "all_of": [ { "test": "has_structure_tag", "operator": "not", "value": "do_not_target", "subject": "other" }, { "test": "has_structure_tag", "operator": "not", "value": "do_not_target_wall", "subject": "other" }, { "test": "is_on_team", "subject": "self", "value": "wild" }, { "any_of": [ { "test": "is_structure_on_team", "subject": "other", "value": "red" }, { "test": "is_structure_on_team", "subject": "other", "value": "blue" }] } ] } ] }] }] }, "badger:behavior.idle": { "priority": 1000, "probability": 0.99, "speed_multiplier": 0.8, "max_dist": 10 }, "minecraft:physics": { }, "minecraft:structure_sensor": { "on_proximity": { "event": "apply_buffs" }, "on_leave": { "event": "ignore_buffs" } } }, "events": { "apply_buffs": { "add":{ "component_groups": [ "check_for_buffs" ]} }, "ignore_buffs": { "remove":{ "component_groups": [ "check_for_buffs" ]} }, "apply_magmablood": { "add": { "component_groups": [ "magmablood" ]} }, "minecraft:entity_spawned": { "add": { "component_groups": [ "minecraft:stats_normal" ] } }, "minecraft:enlargeable_grow": { "remove": { "component_groups": [ "minecraft:stats_normal" ] }, "add": { "component_groups": [ "minecraft:stats_giant" ] } }, "minecraft:enlargeable_shrink": { "remove": { "component_groups": [ "minecraft:stats_giant" ] }, "add": { "component_groups": [ "minecraft:stats_normal" ] } } } } }