{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "nicothekid:firefly",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false 
    },
    "component_groups": {},
    "components": {
      "minecraft:can_fly": {},
      "minecraft:collision_box": {
        "width": 0.4,
        "height": 0.2
      },
      "minecraft:flying_speed": {
        "value": 0.16
      },
      "minecraft:health": {
        "value": 2,
        "max": 2
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:movement": {
        "value": 0.30
      },
      "minecraft:scale": {
        "value": 0.6
      },
      "minecraft:type_family": {
        "family": [
          "firefly",
          "arthropod",
          "mob"
        ]
      },
      
      "minecraft:breathable": {
        "breathes_air": true,
        "breathes_lava": false,
        "breathes_solids": false,
        "breathes_water": false,
        "generates_bubbles": false,
        "inhale_time": 0,
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "cause": "fall",
            "deals_damage": false,
						"damage_modifier": 0.0,
						"damage_multiplier": 1.0
          }
        ]
      },
      "minecraft:despawn": {
        "despawn_from_chance": true,
        "despawn_from_inactivity": true,
        "despawn_from_simulation_edge": true,
        "remove_child_entities": false,
        "min_range_inactivity_timer": 30,
        "min_range_random_chance": 800,
        "despawn_from_distance": {
          "max_distance": 128,
          "min_distance": 32
        }
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:jump.static": {
        "jump_power": 0.42
      },
      "minecraft:movement.hover": {
        "max_turn": 30.0
      },
      "minecraft:nameable": {
        "allow_name_tag_renaming": true,
        "always_show": false
      },
      "minecraft:navigation.hover": {	
        "avoid_damage_blocks": true,
        "avoid_portals": false,
        "avoid_sun": true,
        "avoid_water": true,
        "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": true,
        "can_path_over_lava": false,
        "can_path_over_water": true,
        "can_sink": false,
        "can_swim": false,
        "can_walk": true,
        "can_walk_in_lava": false,
        "is_amphibious": false,
        "blocks_to_avoid": [
          "minecraft:fire",
          "minecraft:flowing_lava",
          "minecraft:lava",
          "minecraft:magma",
          "minecraft:soul_fire"
        ]
      },
      "minecraft:physics": {
        "has_collision": true,
        "has_gravity": false
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true 
      },
      
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.panic": {
        "priority": 1,
        "force": false,
        "ignore_mob_damage": false,
        "prefer_water": false,
        "speed_multiplier": 1.10
      },
      "minecraft:behavior.random_hover": {
        "priority": 2,
        "hover_height": [ 1, 4 ],
        "interval": 1,
        "xz_dist": 8,
        "y_dist": 7,
        "y_offset": 0
      },
      
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 1 + (query.equipment_count * Math.Random(1,3)) : 0"
      },
      "minecraft:conditional_bandwidth_optimization": {
      }
    },
    "events": {}
  }
}
