Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

Expansion for IItemStack

Methods

Apply a food trait to the stack

Returns:
Return Type: IItemStack

script.zs
// IItemStack.applyFoodTrait(trait as string) as IItemStack
<item:tfc:apple>.applyFoodTrait("salted");
ParameterTypeDescription
Parameter
trait
Type
string
Description
the trait we are adding to it