Table of Contents

Class BlockBehaviorUnstable

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Only allows a block to exist if it is attached to another block. Uses the code "unstable".

[DocumentAsJson]
[AddDocumentationProperty("AttachedToFaces", "A list of faces on this block that can be attached to other blocks.", "System.String[]", "Optional", "Down", false)]
[AddDocumentationProperty("AttachmentAreas", "A list of attachment areas per face that determine what blocks can be attached to.", "System.Collections.Generic.Dictionary{System.String,Vintagestory.API.Datastructures.RotatableCube}", "Optional", "None", false)]
public class BlockBehaviorUnstable : BlockBehavior
Inheritance
BlockBehaviorUnstable

Examples

"behaviors": [
	{
		"name": "Unstable",
		"properties": {
			"attachedToFaces": [ "up" ]
		}
	}
]

Fields

AttachedToFaces (Optional) (Default: Down)

A list of faces on this block that can be attached to other blocks.

Field Value

String[]

AttachmentAreas (Optional) (Default: None)

A list of attachment areas per face that determine what blocks can be attached to.

Field Value

Dictionary<String, RotatableCube>