Difference between revisions of "Json block behaviors horizontalorientable"

From Vintage Story Wiki
Jump to navigation Jump to search
m
 
Line 17: Line 17:
  
 
== Properties ==
 
== Properties ==
<code>dropBlockFace</code>: Determines which direction the block drop face is done. <br>
+
<code>dropBlockFace (compassdirection, default: "north")</code>: Determines which direction the block drop face is done. <br>
<code>dropBlock </code>: Determines which block to drop.   
+
<code>dropBlock (optional) </code>: Determines which block to drop.   
  
 
{{Navbox/modding|Vintage Story}}
 
{{Navbox/modding|Vintage Story}}

Latest revision as of 00:24, 26 March 2019

Purpose

Block can be rotated horizontally. Used for:

  • Workbench
  • Ladder
  • Echochamber
  • Chest
  • Stove
  • Altar
  • Windmillrotor
  • Bellows

Requires abstract/horizontalorientation:

	variantgroups: [
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],

Properties

dropBlockFace (compassdirection, default: "north"): Determines which direction the block drop face is done.
dropBlock (optional) : Determines which block to drop.


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