Json:block:behavior: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 4: Line 4:
* Painting
* Painting
* Toolrack
* Toolrack
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
Requires <code>abstract/horizontalorientation</code> as the last variantgroup:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
variantgroups: [
variantgroups: [
Line 23: Line 23:
* Windmillrotor
* Windmillrotor
* Bellows
* Bellows
Requires <code>abstract/horizontalorientation</code> as the last variantgroup. Example use:
Requires <code>abstract/horizontalorientation</code> as the last variantgroup:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
variantgroups: [
variantgroups: [
Line 31: Line 31:


== NWOrientable ==
== NWOrientable ==
Block can be rotated in two different directions. Used for:
* Path
* Bookshelves
* Large carpet
* Chimney
Requires "ns" and "we" states as the last variantgroup:
<syntaxhighlight lang="json">
variantgroups: [
{ code:"orientation", states: ["ns", "we"] },
],
</syntaxhighlight>


== Pillar ==
== Pillar ==
Block can be rotated in two different directions. Used for:
* Wood Log
* Pillar
* Axle
Requires "ud", "ns" and "we" states as the last variantgroup:
<syntaxhighlight lang="json">
variantgroups: [
{ code:"orientation", states: ["ud", "ns", "we"] },
],
</syntaxhighlight>


== Slab ==
== Slab ==

Revision as of 10:49, 11 August 2017

HorizontalAttachable

Block can only be attached horizontally. Used for:

  • Painting
  • Toolrack

Requires abstract/horizontalorientation as the last variantgroup:

	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:

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

NWOrientable

Block can be rotated in two different directions. Used for:

  • Path
  • Bookshelves
  • Large carpet
  • Chimney

Requires "ns" and "we" states as the last variantgroup:

	variantgroups: [
		{ code:"orientation", states: ["ns", "we"] },
	],

Pillar

Block can be rotated in two different directions. Used for:

  • Wood Log
  • Pillar
  • Axle

Requires "ud", "ns" and "we" states as the last variantgroup:

	variantgroups: [
		{ code:"orientation", states: ["ud", "ns", "we"] },
	],

Slab

HorizontalUpDownOrientable

FiniteSpreadingLiquid

OmniAttachable

Unplaceable

Unstable

Harvestable

NoParticles

Container

Ignitable

Falling

DropIfFloating

CanIgnite