Tags

Infinilib includes 4 tags: all_items, deepslate, glass, and signs.

The all_items tag includes all/most items in the game. We possibly may have left out some items, so if you find some, please report it to our Discord.

The deepslate tag only includes cobbled deepslate and regular deepslate.

The glass tag includes all types of glass, except glass panes. This includes glass, tinted glass, and all colors of stained glass.

The new glass_panes tag includes all types of glass panes only. This includes glass panes, tinted glass panes, and all colors of stained glass panes.

The signs tag includes all types of signs, including hanging signs. This includes all variants of signs.

You can test the tags by using the following command syntax while holding an item in your mainhand:

/execute if items entity @s weapon.mainhand #infinilib:

If you were holding the correct item for each tag while running the corresponding command, you should recieve a message in chat: Test passed, count <number of the item you were holding>

For example, if you held 3 cobbled deepslate and ran the corresponding command, it would result in Test passed, count 3. However if I did the same thing but held a grass block, it would result in Test failed.

You can test the all_items tag by using the following command while holding any item, and it should always result in Test passed, count <number of the item you were holding>:

/execute if items entity @s weapon.mainhand #infinilib:all_items

Last updated