Tags Of (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[all [of] [the]] [(1:item|2:block|3:entity [type])] tags of %items/blocks/entitytypes/entities%

Description

Every minecraft tag an item, block, entity or entity type belongs to. Without a kind, every registry is searched, so an oak log returns both its item and its block tags.

Examples

broadcast tags of dirt
set {_tags::*} to block tags of event-block
if player's tool's item tags contains item tag "planks":
	send "holding a plank" to player

View source