Table of Contents

Class BlockBehaviorFiniteSpreadingLiquid

Namespace
Vintagestory.GameContent
Assembly
VSSurvivalMod.dll

Used to create a liquid which distrubutes itself over an area, and has interaction with other liquids. Uses the "FiniteSpreadingLiquid" code.

[DocumentAsJson]
public class BlockBehaviorFiniteSpreadingLiquid : BlockBehavior
Inheritance
BlockBehaviorFiniteSpreadingLiquid

Examples

"behaviors": [
	{
		"name": "FiniteSpreadingLiquid",
		"properties": {
			"spreadDelay": 125,
			"liquidCollisionSound": "sizzle",
			"sourceReplacementCode": "rock-obsidian",
			"flowingReplacementCode": "rock-basalt",
			"collidesWith": "lava"
		}
	}
]

Fields

collidesWith (Optional) (Default: None)

The liquid this one can collide with

[DocumentAsJson("Optional", "None", false)]
private string collidesWith

Field Value

string

collisionReplaceSound

The sound to play when a liquid collision causes blocks to be replaced

[DocumentAsJson]
private AssetLocation collisionReplaceSound

Field Value

AssetLocation

spreadDelay (Recommended) (Default: 150)

Controls how fast the liquid spreads

[DocumentAsJson("Recommended", "150", false)]
private int spreadDelay

Field Value

int

liquidFlowingCollisionReplacement (Optional) (Default: None)

Block code to replace the block with when colliding with a flowing block of a different liquid

[DocumentAsJson("Optional", "None", false)]
private AssetLocation liquidFlowingCollisionReplacement

Field Value

AssetLocation

liquidSourceCollisionReplacement (Optional) (Default: None)

Block code to replace the block with when colliding with the source block of a different liquid

[DocumentAsJson("Optional", "None", false)]
private AssetLocation liquidSourceCollisionReplacement

Field Value

AssetLocation