Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/clearslot

From SAS Gaming Wiki
Revision as of 11:03, 12 May 2026 by SyncBot (talk | contribs) (Sync: updated from Minecraft)

Template:Outdated feature Template:Exclusive Template:Infobox command

Clears a specified slot of a specified entity or container. This includes any containers listed in Minecraft:Chest (disambiguation).

Syntax

Clears a slot from a container

/clearslot block <position: x y z> slot.container <slotId: int>

Clears a slot of an entity

/clearslot entity <target: target> <slotType: EntityEquipmentSlot> <slotId>

Arguments

Template:Argument

The coorindates of the container
Template:Arg desc


Template:Argument

The entity to be targeted
Template:Arg desc


Template:Argument

The slot type of the slot. This can be the following:

Template:Argument

The slot ID of the specified slot type
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Examples

  • Clear the current main hand slot of the the player
    • /clearslot entity @s slot.weapon.mainhand 0
  • Clear the first slot of a container
    • /clearslot 0 64 0 slot.container 0

History

Template:HistoryTable

Navigation

Template:Navbox commands