Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 28: Line 28:
     <td scope="row"><div class="tt" data-tt-id="p_code_info" data-tt-parent="p_code" data-invisible="true"></div></td>
     <td scope="row"><div class="tt" data-tt-id="p_code_info" data-tt-parent="p_code" data-invisible="true"></div></td>
     <td colspan="3">
     <td colspan="3">
A domain prefix will be added dynamically depending on the location of the file. Every mod and the VintageStory itself have a unique prefix.
A '''domain prefix''' will be added dynamically depending on the location of the file. Every mod and the VintageStory itself have a unique prefix.
 
For example the code '''<code>stone</code>''' would turn into '''<code>game:stone</code>'''.  
For example the code '''<code>stone</code>''' would turn into '''<code>game:stone</code>'''.  
The code identifier has to be unique, at least inside his domain, so in theory there can be equal identifiers with different domain prefixes.
The code identifier has to be unique, at least inside his domain, so in theory there can be equal identifiers with different domain prefixes.
Find out more about [[Basic Modding#Domains|Domains]].
Find out more about [[Basic Modding#Domains|Domains]].
Line 199: Line 201:
     <td colspan="3">
     <td colspan="3">
Same examples of resistance's values used in VintageStory:
Same examples of resistance's values used in VintageStory:
 
<table class="wikitable">
*leaves: 0.5
  <tr style="background-color: grey;">
*wool: 1
    <th style="background-color: grey;">Block</th>
*bowl: 1.5
    <th style="background-color: grey;">Value</th>
*obsidian: 2
  </tr>
*plank: 3.5
  <tr>
*log: 4.5
    <td>'''leave'''</td>
*rock: 6
<td>''0.5''</td>
  </tr>
  <tr>
    <td>'''wool'''</td>
<td>''1.0''</td>
  </tr>
  <tr>
    <td>'''bowl'''</td>
<td>''1.5''</td>
  </tr>
  <tr>
    <td>'''obsidian'''</td>
<td>''2''</td>
  </tr>
  <tr>
    <td>'''plank'''</td>
<td>''3.5''</td>
  </tr>
  <tr>
    <td>'''log'''</td>
<td>''4.5''</td>
  </tr>
  <tr>
    <td>'''rock'''</td>
<td>''6''</td>
  </tr>
</table>
</td>
</td>
   </tr>
   </tr>
Confirmedusers, editor, Administrators
886

edits