{
    "format_version": "1.21.0",
    "minecraft:entity": {
      "description": {
        "identifier": "minecraft:player",
        "spawn_category": "creature",
        "is_spawnable": false,
        "is_summonable": false
      },
      "component_groups": {
        "vatonage:hearts10": { "minecraft:health": { "value": 20, "max": 20 } },
        "vatonage:hearts11": { "minecraft:health": { "value": 22, "max": 22 } },
        "vatonage:hearts12": { "minecraft:health": { "value": 24, "max": 24 } },
        "vatonage:hearts13": { "minecraft:health": { "value": 26, "max": 26 } },
        "vatonage:hearts14": { "minecraft:health": { "value": 28, "max": 28 } },
        "vatonage:hearts15": { "minecraft:health": { "value": 30, "max": 30 } },
        "vatonage:hearts16": { "minecraft:health": { "value": 32, "max": 32 } },
        "vatonage:hearts17": { "minecraft:health": { "value": 34, "max": 34 } },
        "vatonage:hearts18": { "minecraft:health": { "value": 36, "max": 36 } },
        "vatonage:hearts19": { "minecraft:health": { "value": 38, "max": 38 } },
        "vatonage:hearts20": { "minecraft:health": { "value": 40, "max": 40 } },
        "vatonage:hearts21": { "minecraft:health": { "value": 42, "max": 42 } },
        "vatonage:hearts22": { "minecraft:health": { "value": 44, "max": 44 } },
        "vatonage:hearts23": { "minecraft:health": { "value": 46, "max": 46 } },
        "vatonage:hearts24": { "minecraft:health": { "value": 48, "max": 48 } },
        "vatonage:hearts25": { "minecraft:health": { "value": 50, "max": 50 } },
        "vatonage:hearts26": { "minecraft:health": { "value": 52, "max": 52 } },
        "vatonage:hearts27": { "minecraft:health": { "value": 54, "max": 54 } },
        "vatonage:hearts28": { "minecraft:health": { "value": 56, "max": 56 } },
        "vatonage:hearts29": { "minecraft:health": { "value": 58, "max": 58 } },
        "vatonage:hearts30": { "minecraft:health": { "value": 60, "max": 60 } },
        "vatonage:hearts31": { "minecraft:health": { "value": 62, "max": 62 } },
        "vatonage:hearts32": { "minecraft:health": { "value": 64, "max": 64 } },
        "vatonage:hearts33": { "minecraft:health": { "value": 66, "max": 66 } },
        "vatonage:hearts34": { "minecraft:health": { "value": 68, "max": 68 } },
        "vatonage:hearts35": { "minecraft:health": { "value": 70, "max": 70 } },
        "vatonage:hearts36": { "minecraft:health": { "value": 72, "max": 72 } },
        "vatonage:hearts37": { "minecraft:health": { "value": 74, "max": 74 } },
        "vatonage:hearts38": { "minecraft:health": { "value": 76, "max": 76 } },
        "vatonage:hearts39": { "minecraft:health": { "value": 78, "max": 78 } },
        "vatonage:hearts40": { "minecraft:health": { "value": 80, "max": 80 } },
        "minecraft:add_raid_omen": {
          "minecraft:spell_effects": {
            "add_effects": [
              {
                "effect": "raid_omen",
                "duration": 30,
                "display_on_screen_animation": true
              }
            ],
            "remove_effects": "bad_omen"
          },
          "minecraft:timer": {
            "time": [0, 0],
            "looping": false,
            "time_down_event": {
              "event": "minecraft:clear_add_raid_omen",
              "target": "self"
            }
          }
        },
        "minecraft:clear_raid_omen_spell_effect": {
          "minecraft:spell_effects": {}
        },
        "minecraft:raid_trigger": {
          "minecraft:raid_trigger": {
            "triggered_event": {
              "event": "minecraft:remove_raid_trigger",
              "target": "self"
            }
          }
        }
      },
      "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,
          "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:gain_raid_omen"
          }
        }
      },
      "events": {
        "vatonage:set_hearts10": { "add": { "component_groups": ["vatonage:hearts10"] } },
        "vatonage:set_hearts11": { "add": { "component_groups": ["vatonage:hearts11"] } },
        "vatonage:set_hearts12": { "add": { "component_groups": ["vatonage:hearts12"] } },
        "vatonage:set_hearts13": { "add": { "component_groups": ["vatonage:hearts13"] } },
        "vatonage:set_hearts14": { "add": { "component_groups": ["vatonage:hearts14"] } },
        "vatonage:set_hearts15": { "add": { "component_groups": ["vatonage:hearts15"] } },
        "vatonage:set_hearts16": { "add": { "component_groups": ["vatonage:hearts16"] } },
        "vatonage:set_hearts17": { "add": { "component_groups": ["vatonage:hearts17"] } },
        "vatonage:set_hearts18": { "add": { "component_groups": ["vatonage:hearts18"] } },
        "vatonage:set_hearts19": { "add": { "component_groups": ["vatonage:hearts19"] } },
        "vatonage:set_hearts20": { "add": { "component_groups": ["vatonage:hearts20"] } },
        "vatonage:set_hearts21": { "add": { "component_groups": ["vatonage:hearts21"] } },
        "vatonage:set_hearts22": { "add": { "component_groups": ["vatonage:hearts22"] } },
        "vatonage:set_hearts23": { "add": { "component_groups": ["vatonage:hearts23"] } },
        "vatonage:set_hearts24": { "add": { "component_groups": ["vatonage:hearts24"] } },
        "vatonage:set_hearts25": { "add": { "component_groups": ["vatonage:hearts25"] } },
        "vatonage:set_hearts26": { "add": { "component_groups": ["vatonage:hearts26"] } },
        "vatonage:set_hearts27": { "add": { "component_groups": ["vatonage:hearts27"] } },
        "vatonage:set_hearts28": { "add": { "component_groups": ["vatonage:hearts28"] } },
        "vatonage:set_hearts29": { "add": { "component_groups": ["vatonage:hearts29"] } },
        "vatonage:set_hearts30": { "add": { "component_groups": ["vatonage:hearts30"] } },
        "vatonage:set_hearts31": { "add": { "component_groups": ["vatonage:hearts31"] } },
        "vatonage:set_hearts32": { "add": { "component_groups": ["vatonage:hearts32"] } },
        "vatonage:set_hearts33": { "add": { "component_groups": ["vatonage:hearts33"] } },
        "vatonage:set_hearts34": { "add": { "component_groups": ["vatonage:hearts34"] } },
        "vatonage:set_hearts35": { "add": { "component_groups": ["vatonage:hearts35"] } },
        "vatonage:set_hearts36": { "add": { "component_groups": ["vatonage:hearts36"] } },
        "vatonage:set_hearts37": { "add": { "component_groups": ["vatonage:hearts37"] } },
        "vatonage:set_hearts38": { "add": { "component_groups": ["vatonage:hearts38"] } },
        "vatonage:set_hearts39": { "add": { "component_groups": ["vatonage:hearts39"] } },
        "vatonage:set_hearts40": { "add": { "component_groups": ["vatonage:hearts40"] } },
        "minecraft:gain_raid_omen": { "add": { "component_groups": ["minecraft:add_raid_omen"] } },
        "minecraft:clear_add_raid_omen": {
          "remove": { "component_groups": ["minecraft:add_raid_omen"] },
          "add": { "component_groups": ["minecraft:clear_raid_omen_spell_effect"] }
        },
        "minecraft:trigger_raid": { "add": { "component_groups": ["minecraft:raid_trigger"] } },
        "minecraft:remove_raid_trigger": { "remove": { "component_groups": ["minecraft:raid_trigger"] } }
      }
    }
  } 