Json block behaviors NWOrientable: 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 a horizontal orientation variant of a block when the block is placed. The orientation variant is selected based on the orientation of the player. The assumption is that the block would look the same if it were horizontally rotated 180 degrees. So only 2 orientation variants are used: "we" (pointing in the west or east direction) and "ns" (pointing in the north or south direction).
The [[Modding:Json_Block_Behaviors|behavior]] selects a [[Modding:Block_Orientation|horizontal orientation variant]] of a block when the block is placed. The orientation variant is selected based on the orientation of the player. The assumption is that the block would look the same if it were horizontally rotated 180 degrees. So only 2 orientation variants are used: "we" (pointing in the west or east direction) and "ns" (pointing in the north or south direction).


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

edits