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. Open in GitHub

[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)]
protected string collidesWith

Field Value

string

collisionReplaceSound

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

[DocumentAsJson]
protected AssetLocation collisionReplaceSound

Field Value

AssetLocation

spreadDelay (Recommended) (Default: 150)

Controls how fast the liquid spreads

[DocumentAsJson("Recommended", "150", false)]
protected 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)]
protected 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)]
protected AssetLocation liquidSourceCollisionReplacement

Field Value

AssetLocation

multiplySpread (Optional) (Default: None)

If true, can spread in multiple directions at once. On by default

[DocumentAsJson("Optional", "None", false)]
protected bool multiplySpread

Field Value

bool