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

MaterialBuilder

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import contenttweaker.builder.vanilla.material.MaterialBuilder;

Methods

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.blocksMotion() as MaterialBuilder
myMaterialBuilder.blocksMotion();

Return Type: SimpleReference<Material>

script.zs
MaterialBuilder.build(name as string) as SimpleReference<Material>
ParameterType
Parameter
name
Type
string

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.flammable() as MaterialBuilder
myMaterialBuilder.flammable();

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.liquid() as MaterialBuilder
myMaterialBuilder.liquid();

Return Type: MaterialBuilder

script.zs
MaterialBuilder.pushReaction(reaction as PushReaction) as MaterialBuilder
ParameterType
Parameter
reaction
Type
PushReaction

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.replaceable() as MaterialBuilder
myMaterialBuilder.replaceable();

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.solid() as MaterialBuilder
myMaterialBuilder.solid();

Return Type: MaterialBuilder

script.zs
// MaterialBuilder.solidBlocking() as MaterialBuilder
myMaterialBuilder.solidBlocking();