Table of Contents

Class BlockBehaviorCollectFrom

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

When this block is right clicked, harvest its drops and replace it with an empty version. Uses the code "CollectFrom". This behavior has no properties.

Note that this behavior requires a variant which ends in "-empty", and also requires at least two drops. The first drop should be the item to collect, the second drop is the block itself. See 'henbox.json' for an example. Open in GitHub

[DocumentAsJson]
public class BlockBehaviorCollectFrom : BlockBehavior
Inheritance
BlockBehaviorCollectFrom

Examples

"behaviors": [
	{
		"name": "CollectFrom"
	}
]