Json block behaviors OmniRotatable: Difference between revisions

From Vintage Story Wiki
→‎Purpose: compare with WrenchOrientable
(Describe the other rotation properties)
(→‎Purpose: compare with WrenchOrientable)
Line 1: Line 1:
== Purpose ==
== Purpose ==


When placing the block, a orientation variant is selected based on the orientation of the player.
The <code>OmniRotatable</code> 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. Note that [[Json_block_behaviors_WrenchOrientable|WrenchOrientable]] behavior is similar, but it allows the variant to be changed after the block is placed with the wrench tool.


There are several meaningful ways to define a group of orientation variants for a block. Each orientation group type has different variant group requirements and different properties for the OmniRotatable behavior. Where possible, the examples below use [[Json:block:worldvariantgroups|world properties]] to assist in defining the variant states, but this is optional; the states may be directly listed instead.
There are several meaningful ways to define a group of orientation variants for a block. Each orientation group type has different variant group requirements and different properties for the OmniRotatable behavior. Where possible, the examples below use [[Json:block:worldvariantgroups|world properties]] to assist in defining the variant states, but this is optional; the states may be directly listed instead.
Confirmedusers
261

edits