LevelWriter
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.world.LevelWriter;
Members
destroyBlock(pos as BlockPos, doDrops as bool) as bool
Destroys a block within the world.script.zs
Returns: Whether the block was changed.
myLevelWriter.destroyBlock(new BlockPos(0, 1, 2), true);
Parameters:
Return Type:
bool
destroyBlock(pos as BlockPos, doDrops as bool, breaker as Entity) as bool
Destroys a block within the world.script.zs
Returns: Whether the block was changed.
myLevelWriter.destroyBlock(new BlockPos(0, 1, 2), true, player);
Parameters:
Return Type:
bool