Modding:Big craftables: Difference between revisions
Appearance
imported>Pathoschild update links |
imported>Pathoschild update link |
||
| Line 64: | Line 64: | ||
|- | |- | ||
| <samp>ContextTags</samp> | | <samp>ContextTags</samp> | ||
| ''(Optional)'' The custom [[Modding: | | ''(Optional)'' The custom [[Modding: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"> | <syntaxhighlight lang="json"> | ||
"ContextTags": [ "light_source", "torch_item" ] | "ContextTags": [ "light_source", "torch_item" ] | ||
Revision as of 19:13, 15 December 2024
← Items
Big craftables
Big craftables are objects which can be placed in the world and are two tiles tall (instead of one like objects).
They have their data in Data/BigCraftables (Data/BigCraftablesInformation prior to 1.6), their in-game sprites in TileSheets/Craftables, and their code in StardewValley.Object (with the bigCraftable.Value = true flag).
Data format
This consists of a string → model lookup, where...
- The key is the unqualified item ID.
- The value is a model with the fields listed below.
Basic info
| field | purpose |
|---|---|
| Name | The internal item name. |
| DisplayName Description |
A tokenizable string for the item's in-game display name and description. |
| Price | (Optional) The price when sold by the player. This is not the price when bought from a shop. Default 0. |
Behavior
| field | purpose |
|---|---|
| Fragility | (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. |
| CanBePlacedIndoors CanBePlacedOutdoors |
(Optional) Whether the item can be placed indoors or outdoors. Default true. |
| IsLamp | (Optional) Whether this is a lamp and should produce light when dark. Default false. |
Appearance
| field | purpose |
|---|---|
| Texture | (Optional) The asset name for the texture containing the item's sprite. Defaults to TileSheets/Craftables. |
| SpriteIndex | (Optional) The sprite's index within the Texture, where 0 is the top-left sprite. |
Context tags
| field | purpose |
|---|---|
| ContextTags | (Optional) The custom 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:
"ContextTags": [ "light_source", "torch_item" ]
|
Advanced
| field | purpose |
|---|---|
| CustomFields | (Optional) The custom fields for this entry. |
Notes
- Many of the items in the data asset aren't implemented in-game. They may be completely absent from the game, or they may be unused as craftables and instead appear in object data or furniture data.