Tag (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] [minecraft] [(1:item|2:block|3:entity [type])] tag[s] %strings%

Description

A minecraft tag, used to group items, blocks or entity types together. Tags are written as "namespace:value"; if the namespace is left out, "minecraft" is used. Without a type, every registry is searched, so a name shared by an item and a block tag returns both.

Examples

set {_tag} to minecraft tag "logs"
set {_tag} to block tag "mineable/pickaxe"
set {_tags::*} to item tags "planks" and "slabs"
broadcast tag contents of entity type tag "skeletons"

View source