Line 422: |
Line 422: |
| </dd> | | </dd> |
| </dl> | | </dl> |
| + | |
| + | ===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... |
| + | * The key is the unqualified [[#Custom items|item ID]]. |
| + | * The value is a model with the fields listed below. |
| + | |
| + | ====Basic info==== |
| + | {| class="wikitable" |
| + | |- |
| + | ! field |
| + | ! purpose |
| + | |- |
| + | | <samp>Name</samp> |
| + | | The internal item name. |
| + | |- |
| + | | <samp>DisplayName</samp><br /><samp>Description</samp> |
| + | | A [[#Tokenizable string format|tokenizable string]] for the item's in-game display name and description. |
| + | |- |
| + | | <samp>Price</samp> |
| + | | ''(Optional)'' The price when sold by the player. This is not the price when bought from a shop. Default 0. |
| + | |} |
| + | |
| + | ====Behavior==== |
| + | {| class="wikitable" |
| + | |- |
| + | ! field |
| + | ! purpose |
| + | |- |
| + | | <samp>Fragility</samp> |
| + | | ''(Optional)'' How the item can be picked up. The possible values are 0 (pick up with any tool), 1 (destroyed if hit with an axe/hoe/pickaxe, or picked up with any other tool), or 2 (can't be removed once placed). Default 0. |
| + | |- |
| + | | <samp>CanBePlacedIndoors</samp><br /><samp>CanBePlacedOutdoors</samp> |
| + | | ''(Optional)'' Whether the item can be placed indoors or outdoors. Default true. |
| + | |- |
| + | | <samp>IsLamp</samp> |
| + | | ''(Optional)'' Whether this is a lamp and should produce light when dark. Default false. |
| + | |} |
| + | |
| + | ====Appearance==== |
| + | {| class="wikitable" |
| + | |- |
| + | ! field |
| + | ! purpose |
| + | |- |
| + | | <samp>Texture</samp> |
| + | | The asset name for the texture containing the item's sprite. Defaults to <samp>TileSheets/Craftables</samp>. |
| + | |- |
| + | | <samp>SpriteIndex</samp> |
| + | | The sprite's index within the <samp>Texture</samp>, where 0 is the top-left sprite. |
| + | |} |
| | | |
| ===Custom crops=== | | ===Custom crops=== |