Changes
Page history
Revert "added ClearTarget mechanic"
authored
Oct 02, 2025
by
Lxlp
This reverts commit 1f8283a3389908f340de3fcb5bc030ebbd4ae456.
Show whitespace changes
Inline
Side-by-side
Skills/mechanics/takeitem.md
0 → 100644
View page @
38502e7a
## Description
Removes the specified amount of an item from the target player's inventory.
Uses the
[
Item Matcher
](
/Items/Item-Matcher
)
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| item | material, m, i, mat, t, type, types | The item, or material, to remove | DIRT
<!--type:Item-->
|
| amount | a | The amount to remove | 1 |
| exact | e, strict | Whether the name of the item should match exactly to the specified one | true |
| vanillaonly | vanilla | Whether the matched item can only be a vanilla one | false |
| variable | var | The Item variable whose value is to be taken from the inventory. When set,
`item`
is ignored |
## Examples
Would remove a stack of dirt from the nearest player's inventory
```
yaml
Skills
:
-
takeitem{i=DIRT;a=64} @NearestPlayer{r=10}
```
## Aliases
-
[x] take
-
[x] itemtake
-
[x] takeitems
<!--TAGS-->
<!--tag:Item-->
<!--tag:Inventory-->
<!--tag:ItemMatcher-->
\ No newline at end of file