Type of (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.4, 2.5.2 (potion effect), 2.7 (block datas), 2.10 (enchantment type)
Syntax
[the] type of %entitydatas/itemtypes/inventories/potioneffects/blockdatas/enchantmenttypes%Description
Type of a block, item, entity, inventory, potion effect or enchantment type. Types of items, blocks and block datas are item types similar to them but have amounts of one, no display names and, on Minecraft 1.13 and newer versions, are undamaged. Types of entities and inventories are entity types and inventory types known to Skript. Types of potion effects are potion effect types. Types of enchantment types are enchantments.
Examples
on rightclick on an entity:
message "This is a %type of clicked entity%!"