Changes
Page history
added informations regarding the ItemVariable drop type
authored
Oct 06, 2025
by
Lxlp
Show whitespace changes
Inline
Side-by-side
Skills/Variables.md
View page @
862cd3a8
...
@@ -223,6 +223,12 @@ Includes INTEGER, FLOAT and DOUBLE since their behavior is functionally the same
...
@@ -223,6 +223,12 @@ Includes INTEGER, FLOAT and DOUBLE since their behavior is functionally the same
# Take the Item
# Take the Item
-
takeitem{variable=skill.example}
-
takeitem{variable=skill.example}
# For every mechanic that accepts a droptable as a possible value, it is also possible to use the itemvariable drp type
# to drop the item stored in the specified item variable
-
equip{item=itemvariable{variable=skill.item} head} @self
-
giveitem{item=itemvariable{variable=skill.item}} @self
```
```
> In some versions that are older than 1.21.7 there are issues with
> In some versions that are older than 1.21.7 there are issues with
> - Keeping an item variable persistently (on a persistent mob or on a player)
> - Keeping an item variable persistently (on a persistent mob or on a player)
...
...
...
...