Table of Contents

Class BehaviorCollectFrom

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.

[DocumentAsJson]
public class BehaviorCollectFrom : BlockBehavior
Inheritance
BehaviorCollectFrom

Examples

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