Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 17: Line 17:
   </tr>
   </tr>
   <tr>
   <tr>
     <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Common</b></td>
     <td colspan="4" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Core (no byType available)</b></td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 24: Line 24:
     <td>-</td>
     <td>-</td>
     <td>A unique identifier for the block.</td>
     <td>A unique identifier for the block.</td>
  </tr>
  <tr>
    <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">
A domain prefix will be added dynamically depending on the location of the file. Every mod and the VintageStory itself have a unique prefix. So <code>stone</code> for example would turn into <code>game:stone</code> (if the file was located in side the game's assets folder).
The code identifier has to be unique, at least inside his domain, so in theory there can be equal identifiers with different domain prefixes. Click here to find out more about domains.
    </td>
   </tr>
   </tr>
   <tr>
   <tr>
Line 44: Line 51:
   </tr>
   </tr>
   <tr>
   <tr>
     <td scope="row"><div class="tt" data-tt-id="p_code" data-tt-parent="root">entityclass</div></td>
     <td scope="row"><div class="tt" data-tt-id="p_entityclass" data-tt-parent="root">entityclass</div></td>
     <td>string</td>
     <td>string</td>
     <td>-</td>
     <td>-</td>