Json block behaviors OmniRotatable: Difference between revisions

From Vintage Story Wiki
→‎Properties: adjust terms
(→‎Usage: adjust terms)
(→‎Properties: adjust terms)
Line 79: Line 79:


== Properties ==
== Properties ==
; <code>rotateSides</code>&#58; (boolean) : Enables face 6 directions mode.
; <code>rotateSides</code>&#58; (boolean) : Enables the HV vector type.
; <code>rotateH</code>&#58; (boolean) : Enables orienting along the 4 cardinal directions.
; <code>rotateH</code>&#58; (boolean) : Enables orienting along the 4 cardinal directions.
; <code>rotateV</code>&#58; (boolean) : Enables orienting up or down.
; <code>rotateV</code>&#58; (boolean) : Enables orienting up or down.
; <code>rotateV4</code>&#58; (boolean) : This can only be used if <code>rotateV</code> is also enabled. It extends the <code>rotateV</code> mode to also use the "left" and "right" values for the vertical variant group.
; <code>rotateV4</code>&#58; (boolean) : This can only be used if <code>rotateV</code> is also enabled. It extends the <code>rotateV</code> mode to also use the "left" and "right" values for the vertical variant code.
; <code>facing</code>&#58; (string, default "player") : Tells the block what it should orient to. Typically "block" is used, since the player almost always is building against another block.
; <code>facing</code>&#58; (string, default "player") : Tells the block what it should orient to. Typically "block" is used, since the player almost always is building against another block.
; <code>dropChance</code>&#58; (float, default 1) : Values less than 1 reduce the chances of the block getting dropped when it is broken. Values 1 and above do not affect the drop rate.
; <code>dropChance</code>&#58; (float, default 1) : Values less than 1 reduce the chances of the block getting dropped when it is broken. Values 1 and above do not affect the drop rate.


{{Navbox/modding|Vintage Story}}
{{Navbox/modding|Vintage Story}}
Confirmedusers
272

edits