Json block behaviors OmniRotatable

From Vintage Story Wiki
Jump to navigation Jump to search

Purpose

Provides slabs with the functionality to rotate depending on the orientation of the player.

Properties

rotateSides: (boolean) Setting this to true will enable rotation of the slab shape.
facing: (string) Tells the block what it should orient to, which is usually "block" since the player almost always is building against another block.


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