Skip to content

Commands

LlaGuiTo edited this page Sep 30, 2026 · 1 revision

Commands

Applies to all versions. The legacy NeoForge 26.2 betas have a different /coshat (see the end of the page).

/clearcosarmor

/clearcosarmor
/clearcosarmor <targets>

Empties the cosmetic slots. The items are deleted, not dropped.

  • Without arguments it clears your own cosmetic slots; with <targets> (a player name or selector such as @a) it clears those players' slots.
  • Requires permission level 2 (operators, or cheats enabled in single player).
  • Reports how many items were removed. On 1.21.1 the number is the total item count; on the 26.x builds it is the number of non-empty slots.

/coshat

/coshat

Swaps the item in your main hand with the item in your cosmetic head slot.

  • Any item can be put in the cosmetic head slot this way, even items that cannot normally be worn on the head, so you can wear any block or item as a hat. Holding nothing takes the cosmetic hat back into your hand.
  • Available to every player (permission level 0).
  • Not registered when CosArmorDisableCosHatCommand is true (see Configuration).

Legacy 26.2 betas

On the NeoForge 26.2.0.32, 26.2.0.37 and 26.2.0.45 betas:

  • /coshat is disabled by default (CosArmorDisableCosHatCommand = true) and, when enabled, requires permission level 2.
  • It does not swap items: if the cosmetic head slot is not empty, it switches that slot's skin toggle and replies Cosmetic hat toggled: skin or item.
  • /clearcosarmor works as described above.

Clone this wiki locally