Table of Contents

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.

[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)]
private JsonItemStack drop

Field Value

JsonItemStack

dropBlockFace (Optional) (Default: north)

The face variant of this block to drop when mined, if drop is not set.

[DocumentAsJson("Optional", "north", false)]
private string dropBlockFace

Field Value

string