{
  "format_version": "1.18.20",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:player",
      "is_spawnable": false,
      "is_summonable": false,
      "is_experimental": false,
                "scripts": {
        "animate": [
          "display",
          "flashlight",
          "scope",
          "p2",
          "ar23",
          "ar23p",
          "mg43",
          "eat17",
          "stimulator",
          "dive",
          "handshakes"
        ]
      },
      "animations": {
        "handshakes":"controller.animation.handshakes",
        "high-five":"animation.high-five",
        "high-five_tp":"animation.high-five_tp",
        "display":"controller.animation.ammo_display",
        "flashlight":"controller.animation.flashlight",
        "flashnorth":"animation.flashnorth",
        "flashsouth":"animation.flashsouth",
        "flashwest":"animation.flashwest",
        "flasheast":"animation.flasheast",
        "flashup":"animation.flashup",
        "flashdown":"animation.flashdown",
        "stim":"animation.stim",
        "stimulator":"controller.animation.stim",
        "dive":"controller.animation.dive",
        "divenorth":"animation.divenorth",
        "divesouth":"animation.divesouth",
        "divewest":"animation.divewest",
        "diveeast":"animation.diveeast",
        "scope":"controller.animation.scope",
        "p2":"controller.animation.p2",
        "p2fire":"animation.p2fire",
        "p2fire_aimed":"animation.p2fire_aimed",
        "p2reload_full":"animation.p2reload_full",
        "p2reload_empty":"animation.p2reload_empty",
        "ar23":"controller.animation.ar23",
        "ar23fire":"animation.ar23fire",
        "ar23fire_aimed":"animation.ar23fire_aimed",
        "ar23fireburst":"animation.ar23fireburst",
        "ar23fireburst_aimed":"animation.ar23fireburst_aimed",
        "ar23reload_full":"animation.ar23reload_full",
        "ar23reload_empty":"animation.ar23reload_empty",
        "ar23p":"controller.animation.ar23p",
        "ar23pfire":"animation.ar23pfire",
        "ar23pfire_aimed":"animation.ar23pfire_aimed",
        "ar23pfireburst":"animation.ar23pfireburst",
        "ar23pfireburst_aimed":"animation.ar23pfireburst_aimed",
        "ar23preload_full":"animation.ar23preload_full",
        "ar23preload_empty":"animation.ar23preload_empty",
        "mg43":"controller.animation.mg43",
        "mg43fire":"animation.mg43fire",
        "mg43fire_aimed":"animation.mg43fire_aimed",
        "mg43fire630":"animation.mg43fire630",
        "mg43fire630_aimed":"animation.mg43fire630_aimed",
        "mg43reload_full":"animation.mg43reload_full",
        "mg43reload_empty":"animation.mg43reload_empty",
        "eat17":"controller.animation.eat17",
        "eat17fire":"animation.eat17fire",
        "eat17fire_aimed":"animation.eat17fire_aimed"
      }
    },

    "component_groups": {
        "high_five_ask":{
            "minecraft:interact": {
    "interactions": [
        {
            "on_interact": {
              "target": "self",
              "event": "high_five"
            },
            "interact_text": "High-Five"
        }
    ]
}
        },
        "high_five":{
      "minecraft:timer": {
        "looping": false,
        "time": 0.7,
        "time_down_event": {
          "event": "high_five_end",
          "target": "self"
        }
      },
            "minecraft:variant":{
                "value":1
            }
        },
        "high_five_end":{
            "minecraft:variant":{
                "value":0
            }
        },
             "full":{
                "minecraft:mark_variant":{
                   "value":0
                   }
             },
             "empty":{
                "minecraft:mark_variant":{
                   "value":1
                   }
             },
              "p2":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:p2_bullet",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "p2aim":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:p2_bullet_aimed",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "ar23":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:ar23_bullet",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "ar23aim":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:ar23_bullet_aimed",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "ar23p":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:ar23p_bullet",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "ar23paim":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:ar23p_bullet_aimed",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "mg43":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:mg43_bullet",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "mg43aim":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:mg43_bullet_aimed",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "eat17":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:eat17_rocket",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
              "eat17aim":{
                "minecraft:spawn_entity": 
                { 
                  "entities": [
                   {
                     "min_wait_time": 0,
                      "max_wait_time": 0,
                       "single_use": true,
                        "spawn_entity": "hd:eat17_rocket_aimed",
                         "num_to_spawn":1
                         }
                          ]
                           }
                           },
      "minecraft:add_bad_omen": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "bad_omen",
              "duration": 6000,
              "visible": false,
              "display_on_screen_animation": true
            }
          ]
        },
        "minecraft:timer": {
          "time": [ 0.0, 0.0 ],
          "looping": false,
          "time_down_event": {
            "event": "minecraft:clear_add_bad_omen",
            "target": "self"
          }
        }
      },
      "minecraft:clear_bad_omen_spell_effect": {
        "minecraft:spell_effects": {
        }
      },
      "minecraft:raid_trigger": {
        "minecraft:raid_trigger": {
          "triggered_event": {
            "event": "minecraft:remove_raid_trigger",
            "target": "self"
          }
        },
        "minecraft:spell_effects": {
          "remove_effects": "bad_omen"
        }
      }
    },

    "components": {
      "minecraft:experience_reward": {
        "on_death": "Math.Min(query.player_level * 7, 100)"
      },
      "minecraft:type_family": {
        "family": [ "player" ]
      },
      "minecraft:is_hidden_when_invisible": {
      },
      "minecraft:loot": {
        "table": "loot_tables/empty.json"
      },
      "minecraft:collision_box": {
        "width": 0.6,
        "height": 1.8
      },
      "minecraft:can_climb": {
      },
      "minecraft:movement": {
        "value": 0.1
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:attack": {
        "damage": 1
      },
      "minecraft:exhaustion_values": {
        "heal": 6,
        "jump": 0.05,
        "sprint_jump": 0.2,
        "mine": 0.005,
        "attack": 0.1,
        "damage": 0.1,
        "walk": 0.0,
        "sprint": 0.1,
        "swim": 0.01
      },
      "minecraft:player.saturation": {
        "value": 5,
         "max": 20
      },
      "minecraft:player.exhaustion": {
        "value": 0,
        "max": 20
      },
      "minecraft:player.level": {
        "value": 0,
        "max": 24791
      },
      "minecraft:player.experience": {
        "value": 0,
        "max": 1
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": -1,
        "inhale_time": 3.75,
        "generates_bubbles": false
      },
      "minecraft:nameable": {
        "always_show": true,
        "allow_name_tag_renaming": false
      },
      "minecraft:physics": {
        "push_towards_closest_space": true
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:insomnia": {
        "days_until_insomnia": 3
      },
      "minecraft:rideable": {
        "seat_count": 2,
        "family_types": [
          "parrot_tame"
        ],
        "pull_in_entities": true,
        "seats": [
          {
            "position": [ 0.4, -0.2, -0.1 ],
            "min_rider_count": 0,
            "max_rider_count": 0,
            "lock_rider_rotation": 0
          },
          {
            "position": [ -0.4, -0.2, -0.1 ],
            "min_rider_count": 1,
            "max_rider_count": 2,
            "lock_rider_rotation": 0
          }
        ]
      },
      "minecraft:conditional_bandwidth_optimization": {
      },
      "minecraft:block_climber": {},
      "minecraft:environment_sensor": {
        "triggers": {
          "filters": {
            "all_of": [
              {
                "test": "has_mob_effect",
                "subject": "self",
                "value": "bad_omen"
              },
              {
                "test": "is_in_village",
                "subject": "self",
                "value": true
              }
            ]
          },
          "event": "minecraft:trigger_raid"
        }
      }
    },

    "events": {
    "no_handshakes":{
        "remove":{
            "component_groups":[
                "high_five_ask"
                ]
        }
    },
    "high_five_ask":{
        "add":{
            "component_groups":[
                "high_five_ask"
                ]
        }
    },
    "high_five":{
        "add":{
            "component_groups":[
                "high_five"
                ]
        }
    },
    "high_five_end":{
        "add":{
            "component_groups":[
                "high_five_end"
                ]
        }
    },
    "full": {
          "add": {
            "component_groups": [
              "full"
              ]
          }
        },
    "empty": {
          "add": {
            "component_groups": [
              "empty"
              ]
          }
        },
    "p2": {
          "add": {
            "component_groups": [
              "p2"
              ]
          }
        },
    "p2aim": {
          "add": {
            "component_groups": [
              "p2aim"
              ]
          }
        },
    "ar23": {
          "add": {
            "component_groups": [
              "ar23"
              ]
          }
        },
    "ar23aim": {
          "add": {
            "component_groups": [
              "ar23aim"
              ]
          }
        },
    "ar23p": {
          "add": {
            "component_groups": [
              "ar23p"
              ]
          }
        },
    "ar23paim": {
          "add": {
            "component_groups": [
              "ar23paim"
              ]
          }
        },
    "mg43": {
          "add": {
            "component_groups": [
              "mg43"
              ]
          }
        },
    "mg43aim": {
          "add": {
            "component_groups": [
              "mg43aim"
              ]
          }
        },
    "eat17": {
          "add": {
            "component_groups": [
              "eat17"
              ]
          }
        },
    "eat17aim": {
          "add": {
            "component_groups": [
              "eat17aim"
              ]
          }
        },
      "minecraft:gain_bad_omen": {
        "add": {
          "component_groups": [
            "minecraft:add_bad_omen"
          ]
        }
      },
      "minecraft:clear_add_bad_omen": {
        "remove": {
          "component_groups": [
            "minecraft:add_bad_omen"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:clear_bad_omen_spell_effect"
          ]
        }
      },
      "minecraft:trigger_raid": {
        "add": {
          "component_groups": [ "minecraft:raid_trigger" ]
        }
      },
      "minecraft:remove_raid_trigger": {
        "remove": {
          "component_groups": [ "minecraft:raid_trigger" ]
        }
      }
    }
  }
}




