Class BlockBehaviorHorizontalOrientable
- Namespace
- Vintagestory.GameContent
- Assembly
- VSSurvivalMod.dll
Allows a block to automatically rotate between the four horizontal directions based on placement angle. Requires use of the "horizontalorientation" variant group. Uses the "HorizontalOrientable" code. Open in GitHub
[DocumentAsJson]
public class BlockBehaviorHorizontalOrientable : BlockBehavior
- Inheritance
-
BlockBehaviorHorizontalOrientable
Examples
"behaviors": [
{
"name": "HorizontalOrientable"
}
]
"variantgroups": [
{
"code": "side",
"loadFromProperties": "abstract/horizontalorientation"
}
]
Fields
drop (Optional) (Default: None)
A custom item stack which will be dropped when this block is mined. If not set, then dropBlockFace will be used.
[DocumentAsJson("Optional", "None", false)]
protected JsonItemStack drop
Field Value
dropBlockFace (Optional) (Default: north)
The face variant of this block to drop when mined, if drop is not set.
[DocumentAsJson("Optional", "north", false)]
protected string dropBlockFace
Field Value
handleDrop (Optional) (Default: true)
If true, handles drops (default: true)
[DocumentAsJson("Optional", "true", false)]
protected bool handleDrop