{ "format_version": "1.26.0", "minecraft:entity": { "description": { "identifier": "minecraft:creeper", "is_experimental": false, "is_summonable": true, "is_spawnable": true, "spawn_category": "monster" }, "components": { "minecraft:attack": { "damage": 3 }, "minecraft:behavior.avoid_mob_type": { "entity_types": [ { "filters": { "AND": [ { "OR": [ { "test": "is_family", "subject": 1, "operator": 0, "value": "ocelot" }, { "test": "is_family", "subject": 1, "operator": 0, "value": "cat" } ] } ] }, "max_dist": 6, "sprint_speed_multiplier": 1.2 } ], "priority": 3 }, "minecraft:behavior.float": { "priority": 0 }, "minecraft:behavior.hurt_by_target": { "priority": 2 }, "minecraft:behavior.look_at_player": { "look_time": { "min": 1, "max": 2 }, "priority": 6 }, "minecraft:behavior.melee_attack": { "reach_multiplier": 0, // this prevents creepers from ocasionally performing melee attacks while using this goal to chase "speed_multiplier": 1.25, "priority": 4 }, "minecraft:behavior.nearest_attackable_target": { "must_see": true, "entity_types": [ { "filters": { "AND": [ { "test": "is_family", "subject": 1, "operator": 0, "value": "player" } ] } } ], "priority": 1 }, "minecraft:behavior.random_look_around": { "priority": 6 }, "minecraft:behavior.random_stroll": { "priority": 5, "speed_multiplier": 1 }, "minecraft:behavior.swell": { "priority": 2, "start_distance": 2.5, "stop_distance": 6 }, "minecraft:breathable": { "suffocate_time": 0, "total_supply": 15 }, "minecraft:can_climb": {}, "minecraft:collision_box": { "height": 1.8, "width": 0.6 }, "minecraft:conditional_bandwidth_optimization": {}, "minecraft:damage_sensor": { "triggers": { "deals_damage": "no", "on_damage": { "event": "minecraft:become_charged", "filters": { "subject": "other", "test": "is_family", "value": "lightning" } } } }, "minecraft:despawn": { "despawn_from_distance": {} }, "minecraft:experience_reward": { "on_death": "query.last_hit_by_player ? 5 : 0" }, "minecraft:health": { "max": 20, "value": 20 }, "minecraft:hurt_on_condition": { "damage_conditions": [ { "cause": "lava", "damage_per_tick": 4, "filters": { "operator": "==", "test": "in_lava", "subject": "self", "value": true } } ] }, "minecraft:interact": { "interactions": { "hurt_item": 1, "interact_text": "action.interact.creeper", "on_interact": { "event": "minecraft:start_exploding_forced", "filters": { "all_of": [ { "subject": "other", "test": "is_family", "value": "player" }, { "domain": "hand", "subject": "other", "test": "has_equipment", "value": "flint_and_steel" }, { "operator": "!=", "test": "has_component", "value": "minecraft:explode" } ] }, "target": "self" }, "play_sounds": "ignite", "swing": true } }, "minecraft:is_hidden_when_invisible": {}, "minecraft:jump.static": {}, "minecraft:loot": { "table": "loot_tables/entities/creeper.json" }, "minecraft:movement": { "value": 0.2 }, "minecraft:movement.basic": {}, "minecraft:nameable": {}, "minecraft:navigation.walk": { "can_path_over_water": true, "using_door_annotation": true }, "minecraft:on_target_escape": { "event": "minecraft:stop_exploding", "target": "self" }, "minecraft:physics": {}, "minecraft:pushable": { "is_pushable": true, "is_pushable_by_piston": true }, "minecraft:target_nearby_sensor": { "inside_range": 2.5, "on_inside_range": { "event": "minecraft:start_exploding", "target": "self" }, "on_vision_lost_inside_range": { "event": "minecraft:stop_exploding", "target": "self" }, "must_see": true, "on_outside_range": { "event": "minecraft:stop_exploding", "target": "self" }, "outside_range": 6 }, "minecraft:type_family": { "family": [ "creeper", "monster", "mob" ] } }, "component_groups": { "minecraft:charged_creeper": { "minecraft:is_charged": {} }, "minecraft:charged_exploding": { "minecraft:explode": { "causes_fire": false, "fuse_lit": true, "power": 6, "destroy_affected_by_griefing": true, "fuse_length": 1.5 } }, "minecraft:exploding": { "minecraft:explode": { "causes_fire": false, "fuse_lit": true, "power": 3, "destroy_affected_by_griefing": true, "fuse_length": 1.5 } }, "minecraft:forced_charged_exploding": { "minecraft:explode": { "causes_fire": false, "fuse_lit": true, "power": 6, "destroy_affected_by_griefing": true, "fuse_length": 1.5 }, "minecraft:on_target_escape": {}, "minecraft:target_nearby_sensor": {} }, "minecraft:forced_exploding": { "minecraft:explode": { "causes_fire": false, "fuse_lit": true, "power": 3, "destroy_affected_by_griefing": true, "fuse_length": 1.5 }, "minecraft:on_target_escape": {}, "minecraft:target_nearby_sensor": {} } }, "events": { "minecraft:become_charged": { "add": { "component_groups": [ "minecraft:charged_creeper" ] }, "remove": { "component_groups": [ "minecraft:exploding" ] } }, "minecraft:stop_exploding": { "remove": { "component_groups": [ "minecraft: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: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" ] } } ] } } } }