Home Commands Examples Getting Started With Scripts Global Keywords

Expansion for KnownTag<Block>

This expansion specifically targets BlockTags.

Casters

Result TypeIs Implicit
Result Type
BlockIngredient
Is Implicit
true

Methods

Return Type: BlockIngredient

script.zs
// KnownTag.asBlockIngredient() as BlockIngredient
myKnownTag.asBlockIngredient();

Return Type: BlockIngredient

script.zs
KnownTag.asList(other as BlockIngredient) as BlockIngredient
ParameterType
Parameter
other
Type
BlockIngredient