• Hey! Register here to create your account, engage with the community, and talk about what is new!

How do you use item tags to make them different from other items?

JustSticky

Well-known member
Overlord
Joined
Mar 4, 2021
Messages
77
Reaction score
43
How do you use item tags? It's one of the many things I don't know...
 
Last edited:
Solution
It's very easy to understand.
Item tags are basically like hidden save variables.
You can set them like variables, so "/item tag set test 1"
You can read them using the variable GetItemTag block, so input "test" and the item you're reading
The code will output "1" because we set the tag to 1
If we did "/item tag set test hello" instead, then the code outputs "hello"
You can set tags using the variable SetItemTag block, read the lore of the icon for more information.

Oh and also, items with different tags won't stack.

xmap

Junior Moderator
Jr Moderator
Joined
Sep 9, 2020
Messages
36
Reaction score
12
It's very easy to understand.
Item tags are basically like hidden save variables.
You can set them like variables, so "/item tag set test 1"
You can read them using the variable GetItemTag block, so input "test" and the item you're reading
The code will output "1" because we set the tag to 1
If we did "/item tag set test hello" instead, then the code outputs "hello"
You can set tags using the variable SetItemTag block, read the lore of the icon for more information.

Oh and also, items with different tags won't stack.
 
Solution
Top Bottom