Skip to content
GitLab
Explore
Sign in
Register
MythicCraft
MythicMobs
Wiki
Skills
Mechanics
consumeslot
consumeslot
· Changes
Page history
Added example for consuming an item from the players equipment slots.
authored
Feb 10, 2023
by
Dante
Hide whitespace changes
Inline
Side-by-side
Skills/mechanics/consumeslot.md
View page @
72863c91
...
@@ -18,4 +18,9 @@ Would remove whatever item is in slot 0, or the first slot, of the nearest playe
...
@@ -18,4 +18,9 @@ Would remove whatever item is in slot 0, or the first slot, of the nearest playe
```
yaml
```
yaml
Skills
:
Skills
:
-
consumeslot{slot=0;amount=1} @NearestPlayer{r=10}
-
consumeslot{slot=0;amount=1} @NearestPlayer{r=10}
```
Would remove whatever item is in the HAND equipment slot the nearest player's inventory
```
yaml
Skills
:
-
consumeslot{slot=HAND;amount=1} @NearestPlayer{r=10}
```
```
\ No newline at end of file