Confirmedusers
343
edits
(→Purpose: compare with WrenchOrientable) |
(Move some of content into a new Usage section. Add a Used by blocks section.) |
||
Line 3: | Line 3: | ||
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. | 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. | ||
== Used by blocks == | |||
* brickslabs | |||
* clayshinglelabs | |||
* cobblestoneslab | |||
* glassslab | |||
* mudbrickslab | |||
* plankslab | |||
* polishedrockslab | |||
* quartzslab | |||
* stonebrickslab | |||
* trapdoor | |||
== Usage == | |||
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. | ||
<table class="wikitable"> | <table class="wikitable"> |