Modding:Item Json Properties: Difference between revisions

From Vintage Story Wiki
Line 582: Line 582:
Attributes primarily used with equipment and armor.
Attributes primarily used with equipment and armor.
</tr>
</tr>
 
<tr>
 
  <td scope="row"><div class="tt" data-tt-id="p_alist_atshape" data-tt-parent="p_attributes_equip">attachShape</div></td>
  <td>Path to Shape</td>
  <td>-</td>
  <td>Assigns a shape to a bag to be shown on the player when worn in a bag slot.</td>
  <td>backpack</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_alist_backpack" data-tt-parent="p_attributes_equip">backpack</div></td>
  <td>-</td>
  <td>-</td>
  <td>Gives an item bag properties, allowing it to be placed in the bag slot to increase inventory space.</td>
  <td>backpack</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_alist_bpquantity" data-tt-parent="p_alist_backpack">quantitySlots</div></td>
  <td>number</td>
  <td>-</td>
  <td>How many additional slots the bag provides.</td>
  <td>backpack</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_alist_bpsflags" data-tt-parent="p_alist_backpack">storageFlags</div></td>
  <td>number (storage flag ID)</td>
  <td>-</td>
  <td>Limits what type of item can be placed into the bag by assigning it a storage flag. (Need a list of storage flags)</td>
  <td>miningbag</td>
</tr>
<tr>
  <td scope="row"><div class="tt" data-tt-id="p_alist_slotcolor" data-tt-parent="p_alist_backpack">slotBgColor</div></td>
  <td>Color value (HEX)</td>
  <td>-</td>
  <td>Changes the background color of the additional slots provided by the bag. Requires a HEX color code, which you can find with any generic color picker</td>
  <td>miningbag</td>
</tr>
<tr>
<tr>
<td scope="row"><div class="tt" data-tt-id="p_attributes_misc" data-tt-parent="root">(Misc Attributes)</div></td>
<td scope="row"><div class="tt" data-tt-id="p_attributes_misc" data-tt-parent="root">(Misc Attributes)</div></td>
219

edits