Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 173: Line 173:
"*-south-*-closed-right": 180
"*-south-*-closed-right": 180
}
}
},
</syntaxhighlight>
Since Vintagestory v1.8 it is also possible to use the variantgroup as a placeholder:
<syntaxhighlight lang="json">
variantgroups: [
{ code: "type", states: ["normal", "bamboo"] },
],
textures: {
horizontals: { base: "block/hay/{type}-side" },
verticals: { base: "block/hay/{type}-top" },
},
},
</syntaxhighlight>
</syntaxhighlight>
Line 543: Line 554:
     <td>0 ... 255</td>
     <td>0 ... 255</td>
     <td>0</td>
     <td>0</td>
     <td>Causes the block to visually glow if Bloom is enabled. Basic glow level for all the blocks model elements.</td>
     <td>Basic glow level for all the blocks model elements.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 676: Line 687:
     <td>'''lastdrop'''</td>
     <td>'''lastdrop'''</td>
<td>false</td>
<td>false</td>
<td>If true and the quantity dropped is >=1 any subsequent drop in the list will be ignored.</td>
<td>If true and the quantity dropped is >=1 any subsequent drop will be ignored.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,026: Line 1,037:
     <td>integer</td>
     <td>integer</td>
     <td>-</td>
     <td>-</td>
     <td>The temperature at which it burns in degrees Celsius.</td>
     <td>The temperature at which it burns.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,032: Line 1,043:
     <td>decimal number</td>
     <td>decimal number</td>
     <td>-</td>
     <td>-</td>
     <td>For how long it burns in seconds.</td>
     <td>For how long it burns.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,038: Line 1,049:
     <td>integer</td>
     <td>integer</td>
     <td>500</td>
     <td>500</td>
     <td>How many degrees celsius it can resists before it ignites (not implemented yet).</td>
     <td>How many degrees celsius it can resists before it ignites.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,044: Line 1,055:
     <td>integer</td>
     <td>integer</td>
     <td>-</td>
     <td>-</td>
     <td>How many degrees celsius it takes to smelt/transform this into another. Only used when put in a stove and SmeltedStack is set.</td>
     <td>How many degrees celsius it takes to smelt/transform this into another. Only used when put in a stove and Melted is set.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,074: Line 1,085:
     <td>boolean</td>
     <td>boolean</td>
     <td>true</td>
     <td>true</td>
     <td>If set to true, the block/item requires a smelting/cooking/baking container such as the Crucible. If false, it can be directly baked/melted without smelting/cooking/baking container.</td>
     <td>If set, the block/item is smeltable in a furnace and this is the resulting itemstack once the MeltingPoint has been reached for the supplied duration.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,346: Line 1,357:
     <td></td>
     <td></td>
     <td>2</td>
     <td>2</td>
     <td>Culls all faces that are adjacent to opaque faces and faces adjacent to blocks of the same id (Example usage: Ice blocks).</td>
     <td>Culls all faces that are adjacent to opaque faces and faces adjacent to blocks of the same id.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,352: Line 1,363:
     <td></td>
     <td></td>
     <td>3</td>
     <td>3</td>
     <td>Culls all faces that are adjacent to opaque faces and the bottom, east or south faces adjacent to blocks of the same id. This causes to still leave one single face in between instead of 2, eliminating any z-fighting.</td>
     <td>Culls all faces that are adjacent to opaque faces and the bottom, east or south faces adjacent to blocks of the same id. This causes to still leave one single face inbetween instead of 2, eliminating any z-fighting.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,358: Line 1,369:
     <td></td>
     <td></td>
     <td>4</td>
     <td>4</td>
     <td>Same as Merge but checks for equal material (Example usage: Plain glass and all colored glass blocks).</td>
     <td>Same as Merge but checks for equal material.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,364: Line 1,375:
     <td></td>
     <td></td>
     <td>5</td>
     <td>5</td>
     <td>Same as Collapse but checks for equal material (Example usage: All leaves blocks).</td>
     <td>Same as Collapse but checks for equal material.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,446: Line 1,457:
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_lighthsv" data-tt-parent="root">LightHsv</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_lighthsv" data-tt-parent="root">LightHsv</div></td>
     <td>byte array with 3 elements. See http://tyron.at/vs/vslightwheel.html for valid values</td>
     <td>array of 0 ... 255</td>
     <td>-</td>
     <td>-</td>
     <td>For light emitting blocks: hue, saturation and brightness value.</td>
     <td>For light emitting blocks: hue, saturation and brightness value.</td>
Line 1,499: Line 1,510:
   </tr>
   </tr>
</table>
</table>
{{Navbox/modding|Vintage Story}}
Confirmedusers, editor, Administrators
886

edits