/clear
Command
Clears items from player inventory.
Permission Level | Game Directors |
---|---|
Requires Cheats? | Yes |
Usage
Clear
/clear [player: target] [itemName: Item] [data: int] [maxCount: int]
Clears, from a player's inventory, an item with a specified name or ID, in a given quantity.
Arguments
data
: int Theitem id
to be cleared. If not specified, all will be cleared. Default:-1
.itemName
: Item The item to clear. Clears all items if no specified. ItemID
or block id.maxCount
: int Aninteger
that specifies how many items to clear. Default:-1
.player
: target Player selector. May be a player namestring
or a selected target of type player.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for