Json block behaviors OmniAttachable

From Vintage Story Wiki
Jump to navigation Jump to search

Purpose

Can be attached on any block side. Used for:

  • Lantern

Example use:

	variantgroups: [
		{ code:"position", states: ["up", "down"], combine: "additive" },
		{ code:"wall", loadFromProperties: "abstract/horizontalorientation" }
	],

Properties

facingPos (int, default: 1) The facing position for the dropped block and the pick block. 1 is "up".


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