Json block behaviors OmniRotatable: Difference between revisions

From Vintage Story Wiki
→‎Usage: Use syntaxhighlight for the example variant definitions
(→‎Properties: adjust terms)
(→‎Usage: Use syntaxhighlight for the example variant definitions)
Line 31: Line 31:
     </td>
     </td>
     <td>slab</td>
     <td>slab</td>
     <td><code>{ code:"rot", states: ["up", "down"], loadFromProperties: "abstract/horizontalorientation" }</code></td>
     <td>
<syntaxhighlight lang="json">
{
  code:"rot",
  states: ["up", "down"],
  loadFromProperties: "abstract/horizontalorientation",
}
</syntaxhighlight>
    </td>
     <td><code>{ name: "OmniRotatable", properties: {rotateSides: "true"} }</code></td>
     <td><code>{ name: "OmniRotatable", properties: {rotateSides: "true"} }</code></td>
   </tr>
   </tr>
Line 40: Line 48:
     </td>
     </td>
     <td>none</td>
     <td>none</td>
     <td><code>{ code:"rot", loadFromProperties: "abstract/verticalorientation" }</code></td>
     <td>
<syntaxhighlight lang="json">
{
  code:"rot",
  loadFromProperties: "abstract/verticalorientation"
}
</syntaxhighlight>
    </td>
     <td><code>{ name: "OmniRotatable", properties: {rotateV: "true"} }</code></td>
     <td><code>{ name: "OmniRotatable", properties: {rotateV: "true"} }</code></td>
   </tr>
   </tr>
Line 49: Line 64:
     </td>
     </td>
     <td>none</td>
     <td>none</td>
     <td><code>{ code:"rot", loadFromProperties: "abstract/horizontalorientation" }</code></td>
     <td>
<syntaxhighlight lang="json">
{
  code:"rot",
  loadFromProperties: "abstract/horizontalorientation"
}
</syntaxhighlight>
    </td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true"} }</code></td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true"} }</code></td>
   </tr>
   </tr>
Line 59: Line 81:
     </td>
     </td>
     <td>none</td>
     <td>none</td>
     <td><code>{ code:"rot", loadFromProperties: "abstract/horizontalorientation"}, { code:"v", loadFromProperties: "abstract/verticalorientation" }</code></td>
     <td>
<syntaxhighlight lang="json">
{
  code:"rot",
  loadFromProperties: "abstract/horizontalorientation"
},
{
  code:"v",
  loadFromProperties: "abstract/verticalorientation"
}
</syntaxhighlight>
    </td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true", rotateV: "true"} }</code></td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true", rotateV: "true"} }</code></td>
   </tr>
   </tr>
Line 69: Line 102:
     </td>
     </td>
     <td>trapdoor</td>
     <td>trapdoor</td>
     <td><code>{ code:"rot", loadFromProperties: "abstract/horizontalorientation"}, { code:"v", states: ["left", "right"], loadFromProperties: "abstract/verticalorientation" }</code></td>
     <td>
<syntaxhighlight lang="json">
{
  code:"rot",
  loadFromProperties: "abstract/horizontalorientation"
},
{
  code:"v", states: ["left", "right"],
  loadFromProperties: "abstract/verticalorientation"
}
</syntaxhighlight>
    </td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true", rotateV: "true", rotateV4: "true"} }</code></td>
     <td><code>{ name: "OmniRotatable", properties: {rotateH: "true", rotateV: "true", rotateV4: "true"} }</code></td>
   </tr>
   </tr>
Confirmedusers
262

edits