Modding:Item Json Properties: Difference between revisions

From Vintage Story Wiki
Line 393: Line 393:
Here we have made two new attributes called "armorDamage" and "stunChance" and have given them their own static values to be used in code. As is, these cannot do anything without the usage of C# code in a class. Regardless, we can see that this is a convenient way to create extra properties that can be manipulated using variant combinations if desired.  
Here we have made two new attributes called "armorDamage" and "stunChance" and have given them their own static values to be used in code. As is, these cannot do anything without the usage of C# code in a class. Regardless, we can see that this is a convenient way to create extra properties that can be manipulated using variant combinations if desired.  
   </tr>
   </tr>
<tr>
<td scope="row"><div class="tt" data-tt-id="p_attributes_contain" data-tt-parent="root">(Container Attributes)</div></td>
<td colspan="4">
Attributes that change how items interact with containers.
</tr>
<tr>
<td scope="row"><div class="tt" data-tt-id="p_attributes_equip" data-tt-parent="root">(Equipment Attributes)</div></td>
<td colspan="4">
Attributes primarily used with equipment and armor.
</tr>
<tr>
<td scope="row"><div class="tt" data-tt-id="p_attributes_misc" data-tt-parent="root">(Misc Attributes)</div></td>
<td colspan="4">
Uncategorized attributes used in various items.
</tr>
   <tr>
   <tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_breakchance" data-tt-parent="p_attributes_list">breakChanceOnImpact</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_breakchance" data-tt-parent="p_attributes_misc">breakChanceOnImpact</div></td>
   <td>value, decimal</td>
   <td>value, decimal</td>
   <td>-</td>
   <td>-</td>
Line 402: Line 421:
   <td>arrow</td>
   <td>arrow</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_cprefix" data-tt-parent="p_attributes_list">codePrefixes</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_cprefix" data-tt-parent="p_attributes_misc">codePrefixes</div></td>
   <td>array</td>
   <td>array</td>
   <td>-</td>
   <td>-</td>
Line 408: Line 428:
   <td>scythe</td>
   <td>scythe</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_currency" data-tt-parent="p_attributes_list">currency</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_currency" data-tt-parent="p_attributes_misc">currency</div></td>
   <td>-</td>
   <td>-</td>
   <td>-</td>
   <td>-</td>
Line 414: Line 435:
   <td>gear (rusty)</td>
   <td>gear (rusty)</td>
</tr>
</tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_cvalue" data-tt-parent="p_alist_currency">value</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_cvalue" data-tt-parent="p_alist_currency">value</div></td>
   <td>value</td>
   <td>value</td>
Line 420: Line 442:
   <td>gear (rusty)</td>
   <td>gear (rusty)</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_damage" data-tt-parent="p_attributes_list">damage</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_damage" data-tt-parent="p_attributes_misc">damage</div></td>
   <td>value</td>
   <td>value</td>
   <td>-</td>
   <td>-</td>
Line 426: Line 449:
   <td>spear</td>
   <td>spear</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_dissolve" data-tt-parent="p_attributes_list">dissolveInWater</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_dissolve" data-tt-parent="p_attributes_misc">dissolveInWater</div></td>
   <td>boolean</td>
   <td>boolean</td>
   <td>false</td>
   <td>false</td>
Line 432: Line 456:
   <td>flour, lime, salt</td>
   <td>flour, lime, salt</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_fpcon" data-tt-parent="p_attributes_list">firepitConstructable</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_fpcon" data-tt-parent="p_attributes_misc">firepitConstructable</div></td>
   <td>boolean</td>
   <td>boolean</td>
   <td>false</td>
   <td>false</td>
Line 438: Line 463:
   <td>firewood, bamboostakes</td>
   <td>firewood, bamboostakes</td>
</tr>
</tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_fprops" data-tt-parent="p_attributes_list">fertilizerProps</div></td>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_fprops" data-tt-parent="p_attributes_misc">fertilizerProps</div></td>
   <td>n: value, p: value, k: value</td>
   <td>n: value, p: value, k: value</td>
   <td>-</td>
   <td>-</td>
Line 455: Line 481:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_health" data-tt-parent="p_attributes_list">health</div></td>
  <td scope="row"><div class="tt" data-tt-id="p_alist_grinding" data-tt-parent="p_attributes_misc">grindingProps</div></td>
  <td>-</td>
  <td>-</td>
  <td>Gives the item a grinding recipe in a quern.</td>
  <td>ore-ungraded</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_gprops_type" data-tt-parent="p_alist_grinding">type</div></td>
  <td>object</td>
  <td>-</td>
  <td>Type of stack produced, either a <code>block</code> or <code>item</code>.</td>
  <td>ore-ungraded</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_gprops_code" data-tt-parent="p_alist_grinding">code</div></td>
  <td>string</td>
  <td>-</td>
  <td>Name of the item or block produced by the recipe.''</td>
  <td>ore-ungraded</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_gprops_stacksize" data-tt-parent="p_alist_grinding">stacksize</div></td>
  <td>number</td>
  <td>-</td>
  <td>The amount of the output produced after grinding.''</td>
  <td>ore-ungraded</td>
</tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_health" data-tt-parent="p_attributes_misc">health</div></td>
   <td>health: value</td>
   <td>health: value</td>
   <td>-</td>
   <td>-</td>
Line 462: Line 516:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_playdisc" data-tt-parent="p_attributes_list">isPlayableDisc</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_playdisc" data-tt-parent="p_attributes_misc">isPlayableDisc</div></td>
   <td>boolean</td>
   <td>boolean</td>
   <td>false</td>
   <td>false</td>
Line 469: Line 523:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_knappable" data-tt-parent="p_attributes_list">knappable</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_knappable" data-tt-parent="p_attributes_misc">knappable</div></td>
   <td>boolean</td>
   <td>boolean</td>
   <td>false</td>
   <td>false</td>
Line 476: Line 530:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_microchisel" data-tt-parent="p_attributes_list">microBlockChiseling</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_microchisel" data-tt-parent="p_attributes_misc">microBlockChiseling</div></td>
   <td>boolean</td>
   <td>boolean</td>
   <td>false</td>
   <td>false</td>
Line 486: Line 540:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_munits" data-tt-parent="p_attributes_list">metalUnits</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_munits" data-tt-parent="p_attributes_misc">metalUnits</div></td>
   <td>number</td>
   <td>number</td>
   <td>-</td>
   <td>-</td>
Line 496: Line 550:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_mtrack" data-tt-parent="p_attributes_list">musicTrack</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_mtrack" data-tt-parent="p_attributes_misc">musicTrack</div></td>
   <td>path to ogg file</td>
   <td>path to ogg file</td>
   <td>-</td>
   <td>-</td>
Line 503: Line 557:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_pigment" data-tt-parent="p_attributes_list">pigment</div></td>
  <td scope="row"><div class="tt" data-tt-id="p_alist_npropmeal" data-tt-parent="p_attributes_misc">nutritionPropsWhenInMeal</div></td>
  <td>-</td>
  <td>-</td>
  <td>Changes the nutrition of a food item when it is cooked into a meal, otherwise the default nutrition property is used.</td>
  <td>egg, vegetable</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_npropsmeal_satiety" data-tt-parent="p_alist_npropmeal">satiety</div></td>
  <td>number</td>
  <td>-</td>
  <td>Numerical value of saturation added.</td>
  <td>egg, vegetable</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_npropsmeal_cat" data-tt-parent="p_alist_npropmeal">foodcategory</div></td>
  <td>string</td>
  <td>-</td>
  <td>Category it adds to in the meal: ''Dairy(unused), Fruit, Grain, Protein and Vegetable''</td>
  <td>egg, vegetable</td>
</tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_pigment" data-tt-parent="p_attributes_misc">pigment</div></td>
   <td>-</td>
   <td>-</td>
   <td>-</td>
   <td>-</td>
Line 543: Line 618:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_reinforcestr" data-tt-parent="p_attributes_list">reinforcementStrength</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_reinforcestr" data-tt-parent="p_attributes_misc">reinforcementStrength</div></td>
   <td>number</td>
   <td>number</td>
   <td>-</td>
   <td>-</td>
Line 552: Line 627:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_sentity" data-tt-parent="p_attributes_list">spearEntityCode</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_sentity" data-tt-parent="p_attributes_misc">spearEntityCode</div></td>
   <td>Entity</td>
   <td>Entity</td>
   <td>-</td>
   <td>-</td>
Line 559: Line 634:
</tr>
</tr>
<tr>
<tr>
   <td scope="row"><div class="tt" data-tt-id="p_alist_worktemp" data-tt-parent="p_attributes_list">workableTemperature</div></td>
   <td scope="row"><div class="tt" data-tt-id="p_alist_worktemp" data-tt-parent="p_attributes_misc">workableTemperature</div></td>
   <td>number</td>
   <td>number</td>
   <td>-</td>
   <td>-</td>
Line 565: Line 640:
   <td>ingot</td>
   <td>ingot</td>
</tr>
</tr>
   <tr>
   <tr>
     <td colspan="5" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Common</b></td>
     <td colspan="5" style='font-size: 14pt; border-bottom: 2pt solid black; padding-left: 100px;'><b>Common</b></td>
219

edits