Tags of X (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10

Syntax

[all [[of] the]|the] [minecraft|datapack|paper|(custom|skript)] [item|block|entity [type]] tags of %itemtype/entity/entitydata%

Description

Returns all the tags of an item, block, or entity. `minecraft tag` will return only the vanilla tags, `datapack tag` will return only datapack-provided tags, `paper tag` will return only Paper's custom tags (if you are running Paper), and `custom tag` will look in the "skript" namespace for custom tags you've registered. You can also filter by tag types using "item", "block", or "entity".

Examples

broadcast minecraft tags of dirt
send true if paper item tags of target block contains paper tag "doors"
broadcast the block tags of player's tool

View source