# SetArmorInventory

TIP

  • setArmorInventory(<player>, <content>)
  • Sets a player armor inventory, <content> must be an array with the format of:
  • [ => [
  • "custom_name" => <custom_name>  (Optional)
    
  • "id" => <id>
    
  • "meta" => <meta>  (Optional)
    
  • "amount" => <amount>  (Optional)
    
  • "nbt" => <nbt>  (Optional)
    
  • ],
    
  • . . .
  • ]

# Parameters

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

# Example

1: $item$["custom_name"] = "Custom Chestplate"
2: $item$["id"] = 311
3: $inventory$ = getArmorInventory($player$)
4: $inventory$[1] = $item$
5: setArmorInventory($player$, $inventory$)

The above example will change the 1st slot of the player's armor inventory to a diamond chestplate.