Line 424: |
Line 424: |
| | | |
| ===Custom big craftables=== | | ===Custom big craftables=== |
− | You can now create/edit [[Modding:Items#Big craftables|big craftables]] by editing the new <samp>Data/BigCraftables</samp> asset, which replaces the previous slash-delimited <samp>Data/BigCraftablesInformation</samp>. This consists of a string → model lookup, where... | + | You can now create/edit [[Modding:Items#Big craftables|big craftables]] by editing the new <samp>Data/BigCraftables</samp> asset, which replaces the previous slash-delimited <samp>Data/BigCraftablesInformation</samp>. Besides the format change, this also adds context tags (moved from the former <samp>Data/ObjectContextTags</samp> asset). |
| + | |
| + | This consists of a string → model lookup, where... |
| * The key is the unqualified [[#Custom items|item ID]]. | | * The key is the unqualified [[#Custom items|item ID]]. |
| * The value is a model with the fields listed below. | | * The value is a model with the fields listed below. |
Line 471: |
Line 473: |
| | <samp>SpriteIndex</samp> | | | <samp>SpriteIndex</samp> |
| | The sprite's index within the <samp>Texture</samp>, where 0 is the top-left sprite. | | | The sprite's index within the <samp>Texture</samp>, where 0 is the top-left sprite. |
| + | |} |
| + | |
| + | ====Context tags==== |
| + | {| class="wikitable" |
| + | |- |
| + | ! field |
| + | ! purpose |
| + | |- |
| + | | <samp>ContextTags</samp> |
| + | | ''(Optional)'' The custom [[Modding:Items#Context tags|context tags]] to add for this item (in addition to the tags added automatically based on the other object data). This is formatted as a list; for example: |
| + | <syntaxhighlight lang="json"> |
| + | "ContextTags": [ "light_source", "torch_item" ] |
| + | </syntaxhighlight> |
| |} | | |} |
| | | |