Class BlockBehaviorMultiblock
- Namespace
- Vintagestory.GameContent
- Assembly
- VSEssentials.dll
Turns this block into a multiblock, allowing it to be larger than a single block. By default, all blocks will have the same properties. If you need different properties or functionality for each block section, you will need to use a new block class. Uses the code "Multiblock".
[DocumentAsJson]
public class BlockBehaviorMultiblock : BlockBehavior
- Inheritance
-
BlockBehaviorMultiblock
Examples
"behaviors": [
{
"name": "Multiblock",
"properties": {
"sizex": 1,
"sizey": 3,
"sizez": 1,
"cposition": {
"x": 0,
"y": 0,
"z": 0
}
}
}
],
Fields
cposition (Recommended) (Default: (1, 0, 1))
The controller position of the multiblock. This is the primary placed location of the multiblock.
[DocumentAsJson("Recommended", "(1, 0, 1)", false)]
private Vec3i ControllerPositionRel
Field Value
- Vec3i
SizeX (Recommended) (Default: 3)
The size in blocks, in the X axis, of the multiblock. Maximum of 5.
[DocumentAsJson("Recommended", "3", false)]
private int SizeX
Field Value
SizeY (Recommended) (Default: 3)
The size in blocks, in the Y axis, of the multiblock. Maximum of 5.
[DocumentAsJson("Recommended", "3", false)]
private int SizeY
Field Value
SizeZ (Recommended) (Default: 3)
The size in blocks, in the Z axis, of the multiblock. Maximum of 5.
[DocumentAsJson("Recommended", "3", false)]
private int SizeZ