# GetArmorInventory

TIP

  • getArmorInventory(<player>)
  • Returns the content of a player's armor inventory as an array, the keys of the array are the slots for the armor, the item will be an array with the following elements:
  • ["name"] Item's name
  • ["custom_name"] Item's custom name
  • ["id"] Item's ID
  • ["meta"] Item's meta
  • ["amount"] Item's amount
  • ["nbt"] Item's NBT

# Parameters

  • <player> The player to get their armor inventory as string

# Example

1: $inventory$ = getArmorInventory($player$)
2: sendMessage($player$, "Your armor inventory content is:\n" + $inventory$)