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

Expansion for TierFactory

Methods

Return Type: TierReference

script.zs
TierFactory.of(name as string, level as int, uses as int, speed as float, attackDamageBonus as float, enchantmentValue as int, tag as ResourceLocation, repairItem as ItemReference, lowerTiers as TierSortingStruct[], higherTiers as TierSortingStruct[]) as TierReference
ParameterTypeOptionalDefault Value
Parameter
name
Type
string
Optional
false
Default Value
Parameter
level
Type
int
Optional
false
Default Value
Parameter
uses
Type
int
Optional
false
Default Value
Parameter
speed
Type
float
Optional
false
Default Value
Parameter
attackDamageBonus
Type
float
Optional
false
Default Value
Parameter
enchantmentValue
Type
int
Optional
false
Default Value
Parameter
tag
Type
ResourceLocation
Optional
false
Default Value
Parameter
repairItem
Type
ItemReference
Optional
false
Default Value
Parameter
lowerTiers
Type
TierSortingStruct[]
Optional
true
Default Value
[] as contenttweaker._rt.vanilla.TierSortingStruct[]
Parameter
higherTiers
Type
TierSortingStruct[]
Optional
true
Default Value
[] as contenttweaker._rt.vanilla.TierSortingStruct[]