{
  "format_version": "1.11",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:player",
      "is_spawnable": false,
      "is_summonable": false,
      "is_experimental": false,
      "scripts": {
        "animate": [
          "walk",
          "item:noisemaker",
          "item:smokebomn"
        ]
      },
      "animations": {
        "walk": "controller.animation.walk",
        "item:noisemaker": "controller.animation.item_noisemaker",
        "item:smokebomn": "controller.animation.item_smokebomn"
      }
    },
    "component_groups": {
      "pamobile:respawn": {
        "minecraft:mark_variant": {
          "value": 99999
        },
        "minecraft:health": {
          "value": 20,
          "max": 20
        },
        "minecraft:movement": {
          "value": 0.1
        },
        "minecraft:attack": {
          "damage": 1
        },
        "minecraft:spell_effects": {
          "remove_effects": []
        }
      },
      "ammo:1": {
        "minecraft:mark_variant": {
          "value": 1
        }
      },
      "item:noisemaker_fire": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "single_use": true,
            "spawn_entity": "item:noisemaker",
            "num_to_spawn": 1
          }
        ]
      },
      "item:smokebomn_fire": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "single_use": true,
            "spawn_entity": "item:smokebomn",
            "num_to_spawn": 1
          }
        ]
      }
    },
    "components": {
      "minecraft:type_family": {
        "family": [
          "player"
        ]
      },
      "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:environment_sensor": [
        {
          "on_environment": {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "self",
                  "value": "player"
                }
              ]
            },
            "event": "pamobile:refresh_player"
          }
        },
        {
          "on_environment": {
            "filters": {
              "all_of": [
                {
                  "test": "has_equipment",
                  "subject": "self",
                  "domain": "hand",
                  "value": "item:noisemaker"
                },
                {
                  "test": "is_family",
                  "subject": "self",
                  "value": "player"
                }
              ]
            },
            "event": "ammo:1"
          }
        },
        {
          "on_environment": {
            "filters": {
              "all_of": [
                {
                  "test": "has_equipment",
                  "subject": "self",
                  "domain": "hand",
                  "value": "item:smokebomn"
                },
                {
                  "test": "is_family",
                  "subject": "self",
                  "value": "player"
                }
              ]
            },
            "event": "ammo:1"
          }
        }
      ],
      "minecraft:player.saturation": {
        "value": 20
      },
      "minecraft:player.exhaustion": {
        "value": 0,
        "max": 4
      },
      "minecraft:player.level": {
        "value": 0,
        "max": 24791
      },
      "minecraft:player.experience": {
        "value": 0,
        "max": 1
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": -1,
        "inhaleTime": 3.75,
        "generatesBubbles": false
      },
      "minecraft:nameable": {
        "alwaysShow": true,
        "allowNameTagRenaming": false
      },
      "minecraft:physics": {},
      "minecraft:insomnia": {
        "days_until_insomnia": 3
      },
      "minecraft:rideable": {
        "seat_count": 2,
        "family_types": [
          "parrot_tame"
        ],
        "pull_in_entities": true,
        "seats": [
          {
            "position": [
              0.4,
              -0.15,
              0.04
            ],
            "min_rider_count": 0,
            "max_rider_count": 0,
            "lock_rider_rotation": 0
          },
          {
            "position": [
              -0.4,
              -0.15,
              0.04
            ],
            "min_rider_count": 1,
            "max_rider_count": 2,
            "lock_rider_rotation": 0
          }
        ]
      },
      "minecraft:scaffolding_climber": {}
    },
    "events": {
      "pamobile:refresh_player": {
        "add": {
          "component_groups": [
            "pamobile:respawn"
          ]
        },
        "remove": {
          "component_groups": []
        }
      },
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "pamobile:respawn"
          ]
        },
        "remove": {}
      },
      "ammo:1": {
        "remove": {
          "component_groups": [
            "ammo:1"
          ]
        },
        "add": {
          "component_groups": [
            "ammo:1"
          ]
        }
      },
      "ammo:2": {
        "remove": {
          "component_groups": [
            "ammo:2"
          ]
        },
        "add": {
          "component_groups": [
            "ammo:2"
          ]
        }
      },
      "item:noisemaker_fire": {
        "add": {
          "component_groups": [
            "item:noisemaker_fire"
          ]
        }
      },
      "item:smokebomn_fire": {
        "add": {
          "component_groups": [
            "item:smokebomn_fire"
          ]
        }
      }
    }
  }
}