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

Basic

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.block.Basic;

Extending BlockBuilder<Basic>

Basic extends BlockBuilder<Basic>. That means all methods available in BlockBuilder<Basic> are also available in Basic

Methods

Return Type: T

script.zs
// Basic.air() as T
myBasic.air();

Return Type: T

script.zs
Basic.air(air as boolean) as T
ParameterType
Parameter
air
Type
boolean

Return Type: T

script.zs
// Basic.breakInstantly() as T
myBasic.breakInstantly();

Return Type: BlockReference

script.zs
Basic.build(name as string) as BlockReference
ParameterType
Parameter
name
Type
string

Return Type: T

script.zs
Basic.cloning(properties as BlockProperties) as T
ParameterType
Parameter
properties
Type
BlockProperties

Return Type: T

script.zs
Basic.destroyTime(destroyTime as float) as T
ParameterType
Parameter
destroyTime
Type
float

Return Type: T

script.zs
Basic.dropsFrom(drops as ResourceLocation) as T
ParameterType
Parameter
drops
Type
ResourceLocation

Return Type: T

script.zs
// Basic.dropsItselfRegardless() as T
myBasic.dropsItselfRegardless();

Return Type: T

script.zs
Basic.dropsLike(reference as BlockReference) as T
ParameterType
Parameter
reference
Type
BlockReference

Return Type: T

script.zs
// Basic.dropsNormally() as T
myBasic.dropsNormally();

Return Type: T

script.zs
// Basic.dynamicShape() as T
myBasic.dynamicShape();

Return Type: T

script.zs
Basic.dynamicShape(dynamic as boolean) as T
ParameterType
Parameter
dynamic
Type
boolean

Return Type: T

script.zs
Basic.explosionResistance(explosionResistance as float) as T
ParameterType
Parameter
explosionResistance
Type
float

Return Type: T

script.zs
Basic.friction(friction as float) as T
ParameterType
Parameter
friction
Type
float

Return Type: T

script.zs
Basic.generateCorrespondingItem(enable as boolean) as T
ParameterType
Parameter
enable
Type
boolean

Return Type: T

script.zs
Basic.hasCollisions(collisions as boolean) as T
ParameterType
Parameter
collisions
Type
boolean

Return Type: T

script.zs
Basic.jumpFactor(jump as float) as T
ParameterType
Parameter
jump
Type
float

Return Type: T

script.zs
Basic.lightLevel(level as int) as T
ParameterType
Parameter
level
Type
int

Return Type: T

script.zs
Basic.lightLevel(lightLevelComputer as LightLevelComputer) as T
ParameterType
Parameter
lightLevelComputer
Type
LightLevelComputer

Return Type: T

script.zs
Basic.material(reference as Reference<Material>) as T
ParameterType
Parameter
reference
Type
Reference<Material>

Return Type: T

script.zs
// Basic.noCollisions() as T
myBasic.noCollisions();

Return Type: T

script.zs
// Basic.noCorrespondingItem() as T
myBasic.noCorrespondingItem();

Return Type: T

script.zs
// Basic.noDrops() as T
myBasic.noDrops();

Return Type: T

script.zs
// Basic.noOcclusion() as T
myBasic.noOcclusion();

Return Type: T

script.zs
Basic.occludes(occlude as boolean) as T
ParameterType
Parameter
occlude
Type
boolean

Return Type: T

script.zs
Basic.overridingMaterialColor(finder as MaterialColorFinder) as T
ParameterType
Parameter
finder
Type
MaterialColorFinder

Return Type: T

script.zs
// Basic.requiresToolToDrop() as T
myBasic.requiresToolToDrop();

Return Type: T

script.zs
Basic.requiresToolToDrop(requiresTool as boolean) as T
ParameterType
Parameter
requiresTool
Type
boolean

Return Type: T

script.zs
Basic.sound(reference as Reference<SoundType>) as T
ParameterType
Parameter
reference
Type
Reference<SoundType>

Return Type: T

script.zs
Basic.speedFactor(speed as float) as T
ParameterType
Parameter
speed
Type
float

Return Type: T

script.zs
Basic.strength(strength as float) as T
ParameterType
Parameter
strength
Type
float

Return Type: T

script.zs
Basic.strength(destroyTime as float, explosionResistance as float) as T
ParameterType
Parameter
destroyTime
Type
float
Parameter
explosionResistance
Type
float

Return Type: T

script.zs
Basic.tab(reference as CreativeTabReference) as T
ParameterType
Parameter
reference
Type
CreativeTabReference

Return Type: T

script.zs
// Basic.ticksRandomly() as T
myBasic.ticksRandomly();

Return Type: T

script.zs
Basic.ticksRandomly(ticksRandomly as boolean) as T
ParameterType
Parameter
ticksRandomly
Type
boolean