item.update()

Updates specific fields in an item's YAML file.

api.nexomaker.item.update({ path, changes })

Parameters

Parameter
Type
Description

path

string

Absolute path to the item's YAML file (from itemData.path)

changes

object

Object containing fields to update

Example

await api.nexomaker.item.update({
  path: itemData.path,
  changes: {
    display: 'Diamond Sword',
    damage: 7,
    durability: 1561
  }
});

Last updated