Json block behaviors FiniteSpreadingLiquid

From Vintage Story Wiki
Jump to navigation Jump to search

Purpose

Make a block flow as liquid. Used for:

  • Water
  • Lava

Requires all heights as states:

	variantgroups: [
		{ code: "height", states: ["1", "2", "3", "4", "5", "6", "7"] },
	],

Properties

liquidCollisionSound (path) the sound that is made when this liquid collides with another object.
sourceReplacementCode (block code) the block that this liquid's source block becomes when coming in contact with another liquid.
flowingReplacementCode (block code) the block that this liquid's flowing block becomes when coming in contact with another liquid.
collidesWith (other liquid) The liquid that this liquid can collide with.
spreadDelay (int, default: 150) This liquid's delay time when spreading.


Vintage Story: Modding
Basics Mod Types | Asset System | Textures | Items | Recipes | Blocks | Model Creator | Release
Advanced Setup(Windows,Linux) | Items (Code, JSON) | Blocks | Item-Block interactions | Block Behaviors | Block Entities | Particles | World Access
Worldgen Terrain | Ores | Trees | WorldGen API
Rendering Shaders and Renderers
Property Overview Item | Block | Block Behaviors | Block Classes | Block Entities | Block Entity Behaviors