Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
Line 1,313: Line 1,313:
     <td>all crops, ore-graded, skep</td>  
     <td>all crops, ore-graded, skep</td>  
  </tr>
  </tr>
<tr>
<td scope="row"><div class="tt" data-tt-id="p_attributes_info" data-tt-parent="p_attributes" data-invisible="true"></div></td>
<td colspan="4">
A great example of variable drops is any crop, especially flax:
<syntaxhighlight lang="json">
dropsByType: {
  "*-9": [
    { type: "item", code: "seeds-flax", quantity: { avg: 1.05 }  },
    { type: "item", code: "grain-flax", quantity: { avg: 1.5, var: 0.5 }  },
    { type: "item", code: "flaxfibers", quantity: { avg: 2, var: 1 }  },
  ],
  "*": [
    { type: "item", code: "seeds-flax", quantity: { avg: 0.7 }  },
  ]
},
</syntaxhighlight>
</td>
</tr>
  <tr>
  <tr>
     <td scope="row"><div class="tt" data-tt-id="p_alist_fencecon" data-tt-parent="p_attributes_misc">fenceConnect</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_alist_fencecon" data-tt-parent="p_attributes_misc">fenceConnect</div></td>
Line 1,342: Line 1,322:
  <tr>
  <tr>
     <td scope="row"><div class="tt" data-tt-id="p_alist_growthblock" data-tt-parent="p_attributes_misc">growthBlockLayer</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_alist_growthblock" data-tt-parent="p_attributes_misc">growthBlockLayer</div></td>
     <td>-</td>
     <td>string</td>
     <td>-</td>
     <td>-</td>
     <td>Determines what layers of a block will grow grass, currently only uses "l1soilwithgrass", which grows grass on the first layer only.</td>
     <td>Determines what layers of a block will grow grass, currently only uses "l1soilwithgrass", which grows grass on the first layer only.</td>