Tag Registration - Apply Objects (Effect) — SkNMS

Addon: SkNMS · Category: Effect · Since: INSERT VERSION

Syntax

apply %objects% to tag

Description

Applies objects to the tag being registered. This accepts any object that the tag allows, as well as Tags and TagKeys.

Examples

registry registration:
	register tag "my_tags:tools" to item registry:
		apply item tag "minecraft:shovels" to tag
		apply item tag "minecraft:pickaxes" to tag
		apply item tag "minecraft:axes" to tag
		apply item tag "minecraft:hoes" to tag
		apply item tag "minecraft:swords" to tag
		apply item tag "minecraft:spears" to tag

	register tag "my_tags:ouchie_blocks" to block registry:
		apply cactus (itemtype) to tag
		apply fire to tag
		apply campfire (itemtype) to tag
		apply soul campfire to tag

	register tag "my_tags:hot_biomes" to biome registry:
		apply desert (biome) to tag
		apply savanna (biome) to tag
		apply badlands to tag

View source