Infiniverse Docs
DiscordModrinth Page
  • Welcome
  • Guide
  • Infinilib
    • Introduction
    • Functions
    • Tags
  • Infiniresources
    • Introduction
    • Textures
  • Infinicrafts
    • Introduction
    • Functions
    • Recipe
  • Infiniextras
    • Introduction
    • Functions
    • Recipe
    • Blocks & Items
    • Achievements
  • Infinitools
    • Introduction
  • Functions
  • Recipe
  • Infinicontrol
    • Introduction
    • Functions
  • Infinitrolls
    • Introduction
    • Functions
Powered by GitBook
On this page
  1. Infinilib

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 signs tag includes all types of signs, including hanging signs. This includes all variants of signs.

You can test the deepslate, glass, and signs tags by using the following commands while holding in your mainhand, cobbled deepslate, deepslate, any variant of non-pane glass, and any variant of signs:

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

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 first command listed above, 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
PreviousFunctionsNextIntroduction

Last updated 2 months ago