Clear
Permissions level | Java version: 2 base rock version: 1 base rock version: 1 | Limited conditions | Enable cheating |
---|
Clear the items of the player's items.
Grammar Java version Clear [
The basic rock version Player: target][itemname: item] [data: int] [maxcount: int]
parameters
Je:
: EntityBe: Player: Target
: CommandSelector
Specify the player who wants to be cleared.If it is not specified, the commander of the command is default.It must be the player's name, target selectioner or uuid
Je: itemname: item
: Commanditem
Specify items to be cleared.If it is not specified, the default is all the items.In the Java version, it must be the ID parameter (supporting items).In the base rock version, it must be a block ID in the form of items or the form of items.
data: int
: int
Specify the data value of the items to be removed.If it is not specified or -1
, the data value of the item is not considered; if the specified data value is invalid, the default is 0
.It must be a 32 -bit integer value.The numbers (including) between -1 and 2147483647 must be.
Je:
: Integerbe: MaxCount: int
: int
Specify the maximum value to be removed.If it is not specified or -1 < /code>
0 <0
No items will be cleared, and the number of specified items is returned at the same time.It must be a 32 -bit integer value.In the Java version, 0 and 2147483647 (inclusive) must be between 0 and 2147483647.In the base rock version, numbers (inclusive) must be between -1 and 2147483647.Effect
Command | trigger conditions | java version | | ||||||
---|---|---|---|---|---|---|---|---|---|
Any | Parameters are not correctly specified | Unable to parse | Unable to parse | ||||||
or Player: Target Unsure and command executors are not players | ExecutionFailure | Execution failure | |||||||
| |||||||||
There is no specified item in the player's items /TD> | |||||||||
Player: Target Not a player type selector | N/A | ||||||||
Data: int or MAXCOUNT: int Small than -1 | |||||||||
When the execution is successful | Clear or detect the items of designated players | /tr>