Home Commands Examples Getting Started With Scripts Global Keywords

LayeredCauldronBlock

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 crafttweaker.api.block.type.cauldron.LayeredCauldronBlock;

Extending AbstractCauldronBlock

LayeredCauldronBlock extends AbstractCauldronBlock. That means all methods available in AbstractCauldronBlock are also available in LayeredCauldronBlock

Static Methods

Lowers the fill level of the layered Cauldron at the given position.

script.zs
// LayeredCauldronBlock.lowerFillLevel(blockState as BlockState, level as Level, position as BlockPos)
LayeredCauldronBlock.lowerFillLevel(<blockstate:minecraft:cauldron:level=3>, level, new BlockPos(1, 2, 3););
ParameterTypeDescription
Parameter
blockState
Type
BlockState
Description
The blockstate of the cauldron.
Parameter
level
Type
Level
Description
The current level.
Parameter
position
Type
BlockPos
Description
The position of the cauldron.