Files
MinecraftLegends/Win32.DX11.Release/data/behavior_packs/badger/entities/creeper.json
T
2026-03-08 15:34:38 -05:00

655 lines
17 KiB
JSON

{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"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
}
},
"minecraft:exploding": {
"minecraft:explode": {
"fuseLength": 1.5,
"fuseLit": true,
"power": 4,
"causesFire": false,
"destroyAffectedByGriefing": true,
"structureDamageMultiplier": 1,
"depthLimit": 0
}
},
"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:charged_creeper": {
"minecraft:is_charged": {}
},
"minecraft:charged_exploding": {
"minecraft:explode": {
"fuseLength": 1.5,
"fuseLit": true,
"power": 6,
"causesFire": false,
"destroyAffectedByGriefing": true,
"depthLimit": 0
}
},
"minecraft:forced_exploding": {
"minecraft:target_nearby_sensor": {},
"minecraft:explode": {
"fuseLength": 1.5,
"fuseLit": true,
"power": 3,
"causesFire": false,
"destroyAffectedByGriefing": true,
"depthLimit": 0
},
"minecraft:on_target_escape": {}
},
"minecraft:forced_charged_exploding": {
"minecraft:target_nearby_sensor": {},
"minecraft:explode": {
"fuseLength": 1.5,
"fuseLit": true,
"power": 6,
"causesFire": false,
"destroyAffectedByGriefing": true,
"depthLimit": 0
},
"minecraft:on_target_escape": {}
},
"minecraft:horny_for_spiders": {
"minecraft:behavior.combine_with_target": {
"priority": 4,
"structure_types": [{
"filters": { "test": "is_structure_name", "value": "placeable_mob_combiner" }
}],
"entity_types": [{
"filters": { "all_of": [
{"any_of":[
{"all_of":[
{"test": "is_family", "subject": "other", "value": "wolf"},
{"test": "is_on_team", "subject": "self", "value": "blue"},
{"test": "is_on_team", "subject": "other", "value": "blue"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "wolf"},
{"test": "is_on_team", "subject": "self", "value": "wild"},
{"test": "is_on_team", "subject": "other", "value": "wild"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "wolf"},
{"test": "is_on_team", "subject": "self", "value": "red"},
{"test": "is_on_team", "subject": "other", "value": "red"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "slime"},
{"test": "is_on_team", "subject": "self", "value": "blue"},
{"test": "is_on_team", "subject": "other", "value": "blue"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "slime"},
{"test": "is_on_team", "subject": "self", "value": "wild"},
{"test": "is_on_team", "subject": "other", "value": "wild"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "slime"},
{"test": "is_on_team", "subject": "self", "value": "red"},
{"test": "is_on_team", "subject": "other", "value": "red"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "spider"},
{"test": "is_on_team", "subject": "self", "value": "blue"},
{"test": "is_on_team", "subject": "other", "value": "blue"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "spider"},
{"test": "is_on_team", "subject": "self", "value": "wild"},
{"test": "is_on_team", "subject": "other", "value": "wild"}
]},
{"all_of":[
{"test": "is_family", "subject": "other", "value": "spider"},
{"test": "is_on_team", "subject": "self", "value": "red"},
{"test": "is_on_team", "subject": "other", "value": "red"}
]}
]}
]}
}]
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:creeper"
},
"minecraft:structure_sensor": {
"on_proximity": {
"event": "apply_buffs"
},
"on_leave": {
"event": "ignore_buffs"
}
},
"minecraft:type_family": {
"family": [
"creeper",
"monster"
]
},
"minecraft:breathable": {
"totalSupply": 0,
"suffocateTime": 0
},
"minecraft:enlargeable": {
"grow": {
"event": "minecraft:enlargeable_grow",
"target": "self"
},
"shrink": {
"event": "minecraft:enlargeable_shrink",
"target": "self"
}
},
"minecraft:nameable": {},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
},
"minecraft:movement": {
"value": 0.25
},
"minecraft:navigation.walk": {
"avoid_water": true
},
"minecraft:movement.basic": {},
"minecraft:jump.static": {},
"minecraft:can_climb": {},
"minecraft:damage_sensor": [
{
"on_damage": {
"filters": {
"test": "is_family",
"subject": "other",
"value": "lightning"
},
"event": "minecraft:become_charged"
},
"deals_damage": false
}
],
"minecraft:target_nearby_sensor": {
"inside_range": 1.5,
"outside_range": 20.0,
"on_inside_range": {
"event": "minecraft:start_exploding",
"target": "self"
},
"on_outside_range": {
"event": "minecraft:stop_exploding",
"target": "self"
}
},
"minecraft:interact": {
"on_interact": {
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "has_equipment",
"domain": "hand",
"subject": "other",
"value": "flint_and_steel"
},
{
"test": "has_component",
"operator": "!=",
"value": "minecraft:explode"
}
]
},
"event": "minecraft:start_exploding_forced",
"target": "self"
},
"hurt_item": 1,
"swing": true,
"play_sounds": "ignite",
"interact_text": "action.interact.creeper"
},
"minecraft:loot": {
"table": "loot_tables/entities/creeper.json"
},
"minecraft:behavior.desire_position": {
"priority": 7
},
"minecraft:behavior.hurt_by_target": {
"priority": 0,
"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": "spider"
},
{
"test": "is_family",
"subject": "other",
"value": "skeleton"
},
{
"test": "is_family",
"subject": "other",
"value": "creeper"
},
{
"test": "is_family",
"subject": "other",
"value": "wolf"
},
{
"test": "is_family",
"subject": "other",
"value": "zombie"
}
]
}
}
]
},
"minecraft:behavior.panic": {
"priority": 1,
"speed_multiplier": 1.0
},
"minecraft:behavior.swell": {
"start_distance": 1.5,
"stop_distance": 6.0,
"priority": 2
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 6,
"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": 2.5
},
"minecraft:behavior.desire_direction": {
"priority": 8
},
"minecraft:behavior.target_structures": {
"priority": 5,
"within_radius": 10,
"speed_multiplier": 1.15,
"structure_types": [
{
"filters": [
{
"any_of": [
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "blue"
},
{
"test": "has_structure_tag",
"operator": "not",
"value": "do_not_target",
"subject": "other"
},
{
"any_of": [
{
"test": "is_structure_on_team",
"subject": "other",
"value": "red"
},
{
"test": "is_structure_on_team",
"subject": "other",
"value": "wild"
}]
}
]
},
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "red"
},
{
"test": "has_structure_tag",
"operator": "not",
"value": "do_not_target",
"subject": "other"
},
{
"any_of": [
{
"test": "is_structure_on_team",
"subject": "other",
"value": "blue"
},
{
"test": "is_structure_on_team",
"subject": "other",
"value": "wild"
}]
}
]
},
{
"all_of": [
{
"test": "is_on_team",
"subject": "self",
"value": "wild"
},
{
"test": "has_structure_tag",
"operator": "not",
"value": "do_not_target",
"subject": "other"
},
{
"any_of": [
{
"test": "is_structure_on_team",
"subject": "other",
"value": "red"
},
{
"test": "is_structure_on_team",
"subject": "other",
"value": "blue"
}]
}
]
}
]
}
]
}
]
},
"minecraft:behavior.melee_attack": {
"priority": 3,
"speed_multiplier": 1.15,
"track_target": false
},
"badger:behavior.idle": {
"priority": 1000,
"probability": 0.99,
"max_dist": 8,
"speed_multiplier": 0.8
},
"minecraft:physics": {},
"minecraft:on_target_escape": {
"event": "minecraft:stop_exploding",
"target": "self"
}
},
"events": {
"apply_buffs": {
"add":{ "component_groups": [
"check_for_buffs",
"minecraft:horny_for_spiders"
]}
},
"ignore_buffs": {
"remove":{ "component_groups": [
"check_for_buffs"
]}
},
"apply_magmablood": {
"add": { "component_groups": [
"magmablood"
]}
},
"minecraft:get_horny": {
"add": { "component_groups": [
"minecraft:horny_for_spiders"
]}
},
"minecraft:turn_off": {
"remove": { "component_groups": [
"minecraft:horny_for_spiders"
]}
},
"minecraft:start_exploding_forced": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_charged"
},
"add": {
"component_groups": [
"minecraft:forced_exploding"
]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_charged"
},
"add": {
"component_groups": [
"minecraft:forced_charged_exploding"
]
}
}
]
},
"minecraft:start_exploding": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_charged"
},
"add": {
"component_groups": [
"minecraft:exploding"
]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_charged"
},
"add": {
"component_groups": [
"minecraft:charged_exploding"
]
}
}
]
},
"minecraft:stop_exploding": {
"remove": {
"component_groups": [
"minecraft:exploding"
]
}
},
"minecraft:become_charged": {
"remove": {
"component_groups": [
"minecraft:exploding"
]
},
"add": {
"component_groups": [
"minecraft:charged_creeper"
]
}
},
"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"
]
}
}
}
}
}