Item (Type) — Skript

Addon: Skript · Category: Type · Since: 1.0 · Usage: <code>[<number> [of]] <alias> [of <enchantment> <level>]</code>, where <alias> must be an alias that represents exactly one item (i.e cannot be a general alias like 'sword' or 'plant')

Syntax

itemstack

Description

An item, e.g. a stack of torches, a furnace, or a wooden sword of sharpness 2. Unlike item type an item can only represent exactly one item (e.g. an upside-down cobblestone stair facing west), while an item type can represent a whole range of items (e.g. any cobble stone stairs regardless of direction). You don't usually need this type except when you want to make a command that only accepts an exact item. Please note that currently 'material' is exactly the same as 'item', i.e. can have an amount & enchantments.

Examples

set {_item} to type of the targeted block
{_item} is a torch

View source