{
    "record": "Weapon",
    "values": {
        "baseId": "4F00000062",
        "weaponType": "sword",
        "name": "Exquisite Steel Sword",
        "attack": "40",
        "weight": "20"
    }
}

val entity = ed.createEntity()
entity.setComponents(
    Record("Weapon"),
    WeaponType("Sword"),
    Name("Exquisite Steel Sword"),
    Attack(40),
    Weight(20)
)