Tag Aliases (Structure) — SkBee

Addon: SkBee · Category: Structure · Since: 3.9.0

Syntax

[global|local] [(block|item)] tag aliases

Description

Create item/block aliases that use Minecraft tags. Supports paper and datapack tags as well. Custom Skript tags will not work here as they're registered after this structure loads.

**Global vs Local**: Global will add your aliases to Skript's aliases and can be used in any script/effect commands. Local will add your aliases to the aliases of that specific script. Will default to local if not specified.

Examples

item tag aliases:
	[any] tool[s] = minecraft:axes, minecraft:pickaxes, minecraft:shovels, minecraft:hoes, minecraft:bundles, paper:buckets
	[any] enchantable[s] = paper:enchantable
	[any] cool item = my_pack:cool_items

block tag aliases:
	[any] wall[s] = minecraft:walls
	[any] leaves = minecraft:leaves
	[any] log[s] = minecraft:logs

# Using the same alias in Skript's aliases structure will add to your tag alias
aliases:
	[any] tool[s] = shears, brush

# Aliases can be used to compare items/blocks
on break:
	if player's tool is any tool:
	if player's tool is any enchantable:
	if event-block is any log:

# Aliases can be used in events
on right click holding any tool:
on break of any wall:
on break of any leaves:
on break of any logs:

View source