Table of Contents

Class BlockBehaviorCanAttach

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Allows some other blocks, such as torches, to be attached onto specific sides of this block. Uses the code "CanAttach". Open in GitHub

[DocumentAsJson]
public class BlockBehaviorCanAttach : BlockBehavior
Inheritance
BlockBehaviorCanAttach

Examples

"behaviors": [
	{
		"name": "CanAttach",
		"properties": { "sides": [ "up", "down" ] }
	}
]

Fields

sides (Required)

The specified sides of this block that a block can be attached onto. Valid options are up, down, north, east, south, west. Non-specified sides will use default 'CanAttachBlockAt' logic.

[DocumentAsJson("Required", "", false)]
private string[] sides

Field Value

string[]