Table of Contents

Class BlockBehaviorTransformBreak

Namespace
Vintagestory.GameContent
Assembly
VSEssentials.dll

When a block with this behavior is broken. it will turn into another specified block instead of air. This block behavior uses the code "TransformBreak".

[DocumentAsJson]
[AddDocumentationProperty("TransformIntoBlock", "The asset location of the block to replace this one with.", "Vintagestory.API.Common.AssetLocation", "Required", "", false)]
public class BlockBehaviorTransformBreak : BlockBehavior
Inheritance
BlockBehaviorTransformBreak

Examples

"behaviors": [
	{
		"name": "TransformBreak",
		"properties": {
			"transformIntoBlock": "termitemound-harvested-{rock}-{size}",
			"withDrops": true
		}
	}
]

Fields

TransformIntoBlock (Required)

The asset location of the block to replace this one with.

Field Value

AssetLocation

withDrops (Optional) (Default: False)

When mined/destroyed, should this block drop its normal drops?

[DocumentAsJson("Optional", "False", false)]
private bool withDrops

Field Value

bool