Is of Type (Condition) — Skript

Addon: Skript · Category: Condition · Since: 1.4

Syntax

%itemstacks/entities% (is|are) of type[s] %itemtypes/entitydatas%

Description

Checks whether an item or an entity is of the given type. This is mostly useful for variables, as you can use the general 'is' condition otherwise (e.g. 'victim is a creeper').

Examples

tool is of type {selected type}
victim is of type {villager type}

View source