Modding:Block Json Properties: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
(2 intermediate revisions by 2 users not shown)
Line 224: Line 224:
     <td scope="row"><div class="tt" data-tt-id="p_behaviors_info" data-tt-parent="p_behaviors" data-invisible="true"></div></td>
     <td scope="row"><div class="tt" data-tt-id="p_behaviors_info" data-tt-parent="p_behaviors" data-invisible="true"></div></td>
     <td colspan="3">
     <td colspan="3">
Here is an overview of all exisiting behaviors, if you want to create your own custom behavior you can read [[Adding Block Behavior]].
Here is an overview of most exisiting behaviors, if you want to create your own custom behavior you can read [[Adding Block Behavior]].
To see all of the current behaviors in the game see [[Json:block:behaviors|All Block Behaviors]]
{{:json:block:behavior}}
{{:json:block:behavior}}
</td>
</td>
Line 296: Line 297:
Same examples of resistance's values used in VintageStory:
Same examples of resistance's values used in VintageStory:
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Block</th>
     <th style="background-color: rgba(0,0,0,0.2);">Block</th>
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 341: Line 342:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Tier</th>
     <th style="background-color: rgba(0,0,0,0.2);">Tier</th>
     <th style="background-color: grey;">Ores</th>
     <th style="background-color: rgba(0,0,0,0.2);">Ores</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 490: Line 491:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
     <th style="background-color: grey;">Effect (Blocks)</th>
     <th style="background-color: rgba(0,0,0,0.2);">Effect (Blocks)</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 531: Line 532:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
     <th style="background-color: grey;">Effect</th>
     <th style="background-color: rgba(0,0,0,0.2);">Effect</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 560: Line 561:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Blocks</th>
     <th style="background-color: rgba(0,0,0,0.2);">Blocks</th>
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 603: Line 604:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Blocks</th>
     <th style="background-color: rgba(0,0,0,0.2);">Blocks</th>
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 628: Line 629:
     <td colspan="3">
     <td colspan="3">
<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Blocks</th>
     <th style="background-color: rgba(0,0,0,0.2);">Blocks</th>
     <th style="background-color: grey;">Value</th>
     <th style="background-color: rgba(0,0,0,0.2);">Value</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 669: Line 670:


<table class="wikitable">
<table class="wikitable">
   <tr style="background-color: grey;">
   <tr style="background-color: rgba(0,0,0,0.2);">
     <th style="background-color: grey;">Property</th>
     <th style="background-color: rgba(0,0,0,0.2);">Property</th>
     <th style="background-color: grey;">Default</th>
     <th style="background-color: rgba(0,0,0,0.2);">Default</th>
<th style="background-color: grey;">Explanation</th>
<th style="background-color: rgba(0,0,0,0.2);">Explanation</th>
   </tr>
   </tr>
   <tr>
   <tr>
Line 744: Line 745:
'''''var''''': How much the drop rate can vary. Meaning the drop rate can be <code>avg - var</code> at minimum and <code>age + var</code> at maximum.
'''''var''''': How much the drop rate can vary. Meaning the drop rate can be <code>avg - var</code> at minimum and <code>age + var</code> at maximum.


Furthermore you can also switch between different distribution modes using the '''''dist''''' property.
For more information see [[NatFloat]] page.
 
<table class="wikitable mw-collapsible mw-collapsed">
  <tr>
<th colspan="2">Overview - Distribution modes</th>
  </tr>
  <tr style="background-color: grey;">
    <th style="background-color: grey;">Name</th>
<th style="background-color: grey;">Explanation</th>
  </tr>
  <tr>
    <td>'''uniform'''</td>
<td>''Select completely random numbers within avg-var until avg+var.''</td>
  </tr>
  <tr>
    <td>'''triangle'''</td>
<td>''Select random numbers with numbers near avg being the most commonly selected ones, following a triangle curve.''</td>
  </tr>
  <tr>
    <td>'''gaussian'''</td>
<td>''Select random numbers with numbers near avg being the most commonly selected ones, following a gaussian curve.''</td>
  </tr>
  <tr>
    <td>'''narrowgaussian'''</td>
<td>''Select random numbers with numbers near avg being the most commonly selected ones, following a narrow gaussian curve.''</td>
  </tr>
  <tr>
    <td>'''inversegaussian'''</td>
<td>''Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve.''</td>
  </tr>
  <tr>
    <td>'''narrowinversegaussian'''</td>
<td>''Select random numbers with numbers near avg being the least commonly selected ones, following an upside down gaussian curve.''</td>
  </tr>
  <tr>
    <td>'''invexp'''</td>
<td>''Select numbers in the form of avg + var, wheras low value of var are preferred.''</td>
  </tr>
  <tr>
    <td>'''stronginvexp'''</td>
<td>''Select numbers in the form of avg + var, wheras low value of var are strongly preferred.''</td>
  </tr>
  <tr>
    <td>'''strongerinvexp'''</td>
<td>''Select numbers in the form of avg + var, wheras low value of var are very strongly preferred.''</td>
  </tr>
<tr>
    <td>'''dirac'''</td>
<td>''Select completely random numbers within avg-var until avg+var only ONCE and then always 0.''</td>
  </tr>
</table>


----
----
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits