Modding:Json Block Behaviors: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Adding behaviors to your block == | |||
Block behaviors are an array of objects with properties attached to your block. | |||
Below is an example of two behaviors, one with properties and one without properties. | |||
<syntaxhighlight lang="json"> | |||
behaviors: [{name: "behavior1", properties: {myProperty1: "myValue1", myProperty2: "myValue2"},{name: "behavior2"}], | |||
</syntaxhighlight> | |||
== All Block Behaviors == | |||
Here is a table containing all properties of the base game as of 1.9. | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |