{
  "format_version": "1.8.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mobs:endergrade",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:parrot_red": {
        "minecraft:variant": {
          "value": 0
        }
      },
      "minecraft:parrot_blue": {
        "minecraft:variant": {
          "value": 1
        }
      },
      "minecraft:parrot_green": {
        "minecraft:variant": {
          "value": 2
        }
      },
      "minecraft:parrot_cyan": {
        "minecraft:variant": {
          "value": 3
        }
      },
      "minecraft:parrot_silver": {
        "minecraft:variant": {
          "value": 4
        }
      },
      "minecraft:parrot_adult": {
        "minecraft:loot": {
          "table": "loot_tables/entities/parrot.json"
        }
      },
      "minecraft:parrot_wild": {
        "minecraft:type_family": {
          "family": [
            "parrot_wild"
          ]
        },
        "minecraft:tameable": {
          "probability": 0.33,
          "tameItems": [
            "wheat_seeds",
            "pumpkin_seeds",
            "melon_seeds",
            "beetroot_seeds"
          ],
          "tame_event": {
            "event": "minecraft:on_tame",
            "target": "self"
          }
        },
        "minecraft:behavior.random_fly": {
          "priority": 2,
          "xz_dist": 15,
          "y_dist": 1,
          "y_offset": 0,
          "speed_multiplier": 1.0,
          "can_land_on_trees": true,
          "avoid_damage_blocks": true
        },
        "minecraft:behavior.follow_mob": {
          "priority": 3,
          "speed_multiplier": 1.0,
          "stop_distance": 3,
          "search_range": 20
        }
      },
      "minecraft:parrot_tame": {
        "minecraft:type_family": {
          "family": [
            "parrot_tame"
          ]
        },
        "minecraft:is_tamed": {},
        "minecraft:behavior.follow_owner": {
          "priority": 2,
          "speed_multiplier": 1.0,
          "start_distance": 5,
          "stop_distance": 1
        },
        "minecraft:sittable": {},
        "minecraft:behavior.stay_while_sitting": {
          "priority": 1
        },
        "minecraft:behavior.find_mount": {
          "priority": 3,
          "within_radius": 16,
          "avoid_water": true,
          "start_delay": 100,
          "target_needed": false,
          "mount_distance": 2.0
        }
      }
    },
    "components": {
      "minecraft:collision_box": {
        "height": 1.0,
        "width": 0.5
      },
      "minecraft:nameable": {
        "alwaysShow": false,
        "allowNameTagRenaming": false
      },
      "minecraft:health": {
        "value": 23,
        "max": 23
      },
      "minecraft:movement": {
        "value": 0.1
      },
      "minecraft:jump.static": {},
      "minecraft:can_fly": {},
      "minecraft:navigation.fly": {
        "avoid_damage_blocks": true,
        "avoid_portals": true,
        "avoid_sun": true,
        "avoid_water": true,
        "blocks_to_avoid": [],
        "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": false,
        "can_path_over_lava": false,
        "can_path_over_water": true,
        "can_sink": true,
        "can_swim": false,
        "can_walk": true,
        "can_walk_in_lava": false,
        "is_amphibious": false
      },
      "minecraft:movement.fly": {},
      "minecraft:physics": {},
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.panic": {
        "priority": 0,
        "speed_multiplier": 1.25
      },
      "minecraft:behavior.look_at_player": {
        "priority": 1,
        "look_distance": 8.0
      },
      "minecraft:healable": {
        "force_use": true,
        "filters": {
          "test": "is_riding",
          "operator": "!=",
          "value": true
        },
        "items": [
          {
            "item": "cookie",
            "heal_amount": 0,
            "effects": [
              {
                "name": "fatal_poison",
                "chance": 1.0,
                "duration": 1000,
                "amplifier": 0
              }
            ]
          }
        ]
      },
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 2 : 0"
      },
      "minecraft:underwater_movement": {
        "value": 0.02
      },
      "minecraft:flying_speed": {
        "value": 0.01
      },
      "minecraft:type_family": {
        "family": []
      },
      "minecraft:scale": {
        "value": 1
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "family_types": [
          "player"
        ],
        "interact_text": "action.interact.mount",
        "pull_in_entities": true,
        "seats": [
          {
            "position": [
              0.0,
              0.14,
              -0.2
            ]
          }
        ]
      },
      "minecraft:addrider": {
        "entity_type": null
      },
      "minecraft:fire_immune": true,
      "minecraft:tameable": {
        "probability": 0.33,
        "tameItems": [
          "chorus_fruit"
        ],
        "tame_event": {
          "event": "minecraft:on_tame",
          "target": "self"
        }
      },
      "minecraft:behavior.float_wander": {
        "random_reselect": true,
        "priority": 2
      },
      "minecraft:movement.generic": {},
      "minecraft:behavior.circle_around_anchor": {
        "priority": 3,
        "radius_range": [
          5.0,
          15.0
        ],
        "radius_change_chance": 250,
        "height_above_target_range": [
          20.0,
          40.0
        ],
        "height_offset_range": [
          -4.0,
          5.0
        ],
        "height_change_chance": 350,
        "goal_radius": 1.0
      },
      "minecraft:movement.glide": {
        "start_speed": 0.1,
        "speed_when_turning": 0.2
      },
      "minecraft:knockback_resistance": {
        "value": 30.0,
        "max": 43.0
      },
      "minecraft:behavior.follow_owner": {
        "start_distance": 10.0,
        "speed_multiplier": 1.0,
        "stop_distance": 2.0,
        "priority": 6
      },
      "minecraft:behavior.player_ride_tamed": {
        "speed_multiplier": 1.5
      },
      "minecraft:input_ground_controlled": {},
      "minecraft:is_saddled": {}
    },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "minecraft:parrot_red",
                "minecraft:parrot_adult",
                "minecraft:parrot_wild"
              ]
            }
          },
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "minecraft:parrot_blue",
                "minecraft:parrot_adult",
                "minecraft:parrot_wild"
              ]
            }
          },
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "minecraft:parrot_green",
                "minecraft:parrot_adult",
                "minecraft:parrot_wild"
              ]
            }
          },
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "minecraft:parrot_cyan",
                "minecraft:parrot_adult",
                "minecraft:parrot_wild"
              ]
            }
          },
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "minecraft:parrot_silver",
                "minecraft:parrot_adult",
                "minecraft:parrot_wild"
              ]
            }
          }
        ]
      },
      "minecraft:on_tame": {
        "remove": {
          "component_groups": [
            "minecraft:parrot_wild"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:parrot_tame"
          ]
        }
      },
      "on:death": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt_by_player": {
        "run_command": {
          "command": []
        }
      },
      "on:ignite": {
        "run_command": {
          "command": []
        }
      },
      "on:target_acquired": {
        "run_command": {
          "command": []
        }
      },
      "on:target_escape": {
        "run_command": {
          "command": []
        }
      },
      "on:wake_with_owner": {
        "run_command": {
          "command": []
        }
      }
    }
  }
}