{
  "format_version": "1.20.81",
  "minecraft:entity": {
    "description": {
      "identifier": "hb_we:weapon_cart",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "components": {
      "minecraft:collision_box": {
        "width": 2,
        "height": 2
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {},
            "deals_damage": false,
            "cause": "all"
          }
        ]
      },
      "minecraft:physics": {}
    },
    "component_groups": {
      "spawn_trader": {
        "minecraft:spawn_entity": {
          "entities": {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "num_to_spawn": 1,
            "single_use": true,
            "spawn_entity": "hb_we:wandering_weapons_trader",
            "spawn_event": "minecraft:entity_spawned",
            "spawn_method": "born"
          }
        }
      },
      "despawn": {
        "minecraft:equipment": {
          "table": "loot_tables/hb/we/entities/weapons.json"
        },
        "minecraft:transformation": {
          "into": "minecraft:area_effect_cloud",
          "drop_equipment": true,
          "drop_inventory": false
        }
      },
      "start_despawn": {
        "minecraft:timer": {
          "time": 0,
          "time_down_event": {
            "event": "hb_we:despawn"
          }
        }
      }
    },
    "events": {
      "hb_we:despawn": {
        "add": {
          "component_groups": [
            "despawn"
          ]
        }
      },
      "hb_we:start_despawn": {
        "add": {
          "component_groups": [
            "start_despawn"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "spawn_trader"
          ]
        }
      }
    }
  }
}