Json block behaviors HorizontalUpDownOrientable: Difference between revisions

From Vintage Story Wiki
→‎Purpose: Link to Modding:Block_Orientation
(→‎Purpose: Link back to all behaviors)
(→‎Purpose: Link to Modding:Block_Orientation)
 
Line 1: Line 1:
== Purpose ==
== Purpose ==
The [[Modding:Json_Block_Behaviors|behavior]] selects an orientation variant of a block when the block is placed. The orientation variant is selected based on the orientation of the player. The orientation type includes all 4 horizontal directions. In addition to having variants for all 4 horizontal directions with the block right side up, the orientation type includes an additional 4 horizontal directions with the blocks upside down. So the orientation type has a total of 8 states.
The [[Modding:Json_Block_Behaviors|behavior]] selects an [[Modding:Block_Orientation|orientation variant]] of a block when the block is placed. The orientation variant is selected based on the orientation of the player. The orientation type includes all 4 horizontal directions. In addition to having variants for all 4 horizontal directions with the block right side up, the orientation type includes an additional 4 horizontal directions with the blocks upside down. So the orientation type has a total of 8 states.


When the block is broken, the "up" "north" variant is dropped.
When the block is broken, the "up" "north" variant is dropped.
Confirmedusers
261

edits