Item Type (Type) — Skript
Addon: Skript · Category: Type · Since: 1.0 · Usage: [<number> [of]] [all/every] <alias> [of <enchantment> [<level>] [,/and <more enchantments...>]]
Syntax
itemtypeDescription
An item type is an alias that can result in different items when added to an inventory, and unlike items they are well suited for checking whether an inventory contains a certain item or whether a certain item is of a certain type. An item type can also have one or more enchantments with or without a specific level defined, and can optionally start with 'all' or 'every' to make this item type represent all types that the alias represents, including data ranges.
Examples
give 4 torches to the player
add oak slab to the inventory of the block
player's tool is a diamond sword of sharpness
block is dirt or farmland