Json:block:behavior: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 1: Line 1:
  <tr>
== HorizontalAttachable ==
    <td scope="row" valign="top"><div class="tt" data-tt-id="p_behaviors_HorizontalAttachable" data-tt-parent="p_behaviors">HorizontalAttachable</div></td>
 
    <td colspan="3">Block can only be attached horizontally. Used for:
Block can only be attached horizontally. Used for:
* Painting
* Painting
* Toolrack
* Toolrack
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
      <syntaxhighlight lang="json">
<syntaxhighlight lang="json">
variantgroups: [
variantgroups: [
{ code:"painting", loadFromProperties: "block/painting" },
{ code:"painting", loadFromProperties: "block/painting" },
{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
],
],
      </syntaxhighlight>
</syntaxhighlight>
 
----
----
    </td>
 
  </tr>
== HorizontalOrientable ==
  <tr>
 
    <td scope="row" valign="top"><div class="tt" data-tt-id="p_behaviors_HorizontalOrientable" data-tt-parent="p_behaviors">HorizontalOrientable</div></td>
Block can be rotated horizontally. Used for:
    <td colspan="3">Block can be rotated horizontally. Used for:
* Workbench
* Workbench
* Ladder
* Ladder
Line 26: Line 26:
* Bellows
* Bellows
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
      <syntaxhighlight lang="json">
<syntaxhighlight lang="json">
variantgroups: [
variantgroups: [
{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
],
],
      </syntaxhighlight>
</syntaxhighlight>
    </td>
----
  </tr>
 
  <tr>
NWOrientable
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_NWOrientable" data-tt-parent="p_behaviors">NWOrientable</div></td>
Pillar
    <td></td>
Slab
    <td></td>
HorizontalUpDownOrientable
    <td></td>
FiniteSpreadingLiquid
  </tr>
OmniAttachable
  <tr>
Unplaceable
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Pillar" data-tt-parent="p_behaviors">Pillar</div></td>
Unstable
    <td></td>
Harvestable
    <td></td>
NoParticles
    <td></td>
Container
  </tr>
Ignitable
  <tr>
Falling
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Slab" data-tt-parent="p_behaviors">Slab</div></td>
DropIfFloating
    <td></td>
CanIgnite
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_HorizontalUpDownOrientable" data-tt-parent="p_behaviors">HorizontalUpDownOrientable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_FiniteSpreadingLiquid" data-tt-parent="p_behaviors">FiniteSpreadingLiquid</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_OmniAttachable" data-tt-parent="p_behaviors">OmniAttachable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Unplaceable" data-tt-parent="p_behaviors">Unplaceable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Unstable" data-tt-parent="p_behaviors">Unstable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Harvestable" data-tt-parent="p_behaviors">Harvestable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_NoParticles" data-tt-parent="p_behaviors">NoParticles</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Container" data-tt-parent="p_behaviors">Container</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Ignitable" data-tt-parent="p_behaviors">Ignitable</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_Falling" data-tt-parent="p_behaviors">Falling</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_DropIfFloating" data-tt-parent="p_behaviors">DropIfFloating</div></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td scope="row"><div class="tt" data-tt-id="p_behaviors_CanIgnite" data-tt-parent="p_behaviors">CanIgnite</div></td>
    <td></td>
    <td></td>
    <td></td>

Revision as of 10:34, 11 August 2017

HorizontalAttachable

Block can only be attached horizontally. Used for:

  • Painting
  • Toolrack

Requires abstract/horizontalorientation as the last variantgroup. Example use:

	variantgroups: [
		{ code:"painting", loadFromProperties: "block/painting" },
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],

HorizontalOrientable

Block can be rotated horizontally. Used for:

  • Workbench
  • Ladder
  • Echochamber
  • Chest
  • stove
  • Altar
  • Windmillrotor
  • Bellows

Requires abstract/horizontalorientation as the last variantgroup. Example use:

	variantgroups: [
		{ code:"side", loadFromProperties: "abstract/horizontalorientation" }
	],

NWOrientable Pillar Slab HorizontalUpDownOrientable FiniteSpreadingLiquid OmniAttachable Unplaceable Unstable Harvestable NoParticles Container Ignitable Falling DropIfFloating CanIgnite