Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
No edit summary
(Undo revision 3841 by CreativeMD (talk))
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 554: Line 543:
     <td>0 ... 255</td>
     <td>0 ... 255</td>
     <td>0</td>
     <td>0</td>
     <td>Basic glow level for all the blocks model elements.</td>
     <td>Causes the block to visually glow if Bloom is enabled. Basic glow level for all the blocks model elements.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 687: Line 676:
     <td>'''lastdrop'''</td>
     <td>'''lastdrop'''</td>
<td>false</td>
<td>false</td>
<td>If true and the quantity dropped is >=1 any subsequent drop will be ignored.</td>
<td>If true and the quantity dropped is >=1 any subsequent drop in the list will be ignored.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,037: Line 1,026:
     <td>integer</td>
     <td>integer</td>
     <td>-</td>
     <td>-</td>
     <td>The temperature at which it burns.</td>
     <td>The temperature at which it burns in degrees Celsius.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,043: Line 1,032:
     <td>decimal number</td>
     <td>decimal number</td>
     <td>-</td>
     <td>-</td>
     <td>For how long it burns.</td>
     <td>For how long it burns in seconds.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,049: Line 1,038:
     <td>integer</td>
     <td>integer</td>
     <td>500</td>
     <td>500</td>
     <td>How many degrees celsius it can resists before it ignites.</td>
     <td>How many degrees celsius it can resists before it ignites (not implemented yet).</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,055: Line 1,044:
     <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 Melted is set.</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>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,085: Line 1,074:
     <td>boolean</td>
     <td>boolean</td>
     <td>true</td>
     <td>true</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>
     <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>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,357: Line 1,346:
     <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.</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>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,363: Line 1,352:
     <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 inbetween 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 in between instead of 2, eliminating any z-fighting.</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,369: Line 1,358:
     <td></td>
     <td></td>
     <td>4</td>
     <td>4</td>
     <td>Same as Merge but checks for equal material.</td>
     <td>Same as Merge but checks for equal material (Example usage: Plain glass and all colored glass blocks).</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,375: Line 1,364:
     <td></td>
     <td></td>
     <td>5</td>
     <td>5</td>
     <td>Same as Collapse but checks for equal material.</td>
     <td>Same as Collapse but checks for equal material (Example usage: All leaves blocks).</td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 1,457: Line 1,446:
   <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>array of 0 ... 255</td>
     <td>byte array with 3 elements. See http://tyron.at/vs/vslightwheel.html for valid values</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,510: Line 1,499:
   </tr>
   </tr>
</table>
</table>
{{Navbox/modding|Vintage Story}}