Jump to content

Modding:Big craftables: Difference between revisions

From Stardew Valley Wiki
imported>Pathoschild
unmerge from Modding:Items; attribution: Pathoschild (main author), Margotbean (link fixes and formatting), BarleyZP (initial update for 1.6, merge info from 1.6 mod migration guide with content by Pathoschild and formatting fixes by Margotbean, merge more info from 1.6 guide with all content by Pathoschild)
imported>Sunbeam135
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
← [[Modding:Items|Items]]
← [[Modding:Items|Items]]


==Big craftables==
This page explains how the game stores and parses 'big craftable'-type item data. For items in general, see [[Modding:Items]].
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 <samp>Data/BigCraftables</samp> (<samp>Data/BigCraftablesInformation</samp> prior to 1.6), their in-game sprites in <samp>TileSheets/Craftables</samp>, and their code in <samp>StardewValley.Object</samp> (with the <code>bigCraftable.Value = true</code> flag).
==Overview==
Big craftables are items which can be placed in the world and are two tiles tall (instead of one like [[Modding:Objects|objects]]). Unlike objects, they can't be eaten or sold to most shops.


===Data format===
They have [[Modding:Items#Item types|item type]] <code>(BC)</code> (or <code>ItemRegistry.type_bigCraftable</code> in C# code), their data in <samp>Data/BigCraftables</samp>, their in-game sprites in <samp>TileSheets/Craftables</samp> by default, and their code in <samp>StardewValley.Object</samp> (based on the <code>bigCraftable</code> field).


This consists of a string → model lookup, where...
==Data format==
* The key is the unqualified [[Modding:Common_data_field_types#Item_ID|item ID]].
The big craftable data in <samp>Data/BigCraftables</samp> consists of a string → model lookup, where...
* The key is the unqualified [[Modding:Common data field types#Item ID|item ID]].
* The value is a model with the fields listed below.
* The value is a model with the fields listed below.


====Basic info====
===Basic info===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 28: Line 29:
|}
|}


====Behavior====
===Behavior===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 44: Line 45:
|}
|}


====Appearance====
===Appearance===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 57: Line 58:
|}
|}


====Context tags====
===Context tags===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 64: Line 65:
|-
|-
| <samp>ContextTags</samp>
| <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:
| ''(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" ]
Line 70: Line 71:
|}
|}


====Advanced====
===Advanced===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 77: Line 78:
|-
|-
| <samp>CustomFields</samp>
| <samp>CustomFields</samp>
| ''(Optional)'' The [[Modding:Common_data_field_types#Custom_fields|custom fields]] for this entry.  
| ''(Optional)'' The [[Modding:Common data field types#Custom fields|custom fields]] for this entry.  
|}
|}


===Notes===
==Unobtainable items==
* 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 [[#Objects|object data]] or [[#Furniture|furniture data]].
The data asset has items that can't normally be picked up or may be unimplemented in-game. They may be completely absent from the game, or they may be unused as craftables and instead appear in [[Modding:Objects|object data]] or [[Modding:Furniture|furniture data]].
 
==See also==
* [[Modding:Items]] for item data in general


[[Category:Modding]]
[[Category:Modding]]
[[ru:Модификации:Изготовляемые предметы]]
[[zh:模组:大型打造品]]

Latest revision as of 21:25, 12 January 2026

← Items

This page explains how the game stores and parses 'big craftable'-type item data. For items in general, see Modding:Items.

Overview

Big craftables are items which can be placed in the world and are two tiles tall (instead of one like objects). Unlike objects, they can't be eaten or sold to most shops.

They have item type (BC) (or ItemRegistry.type_bigCraftable in C# code), their data in Data/BigCraftables, their in-game sprites in TileSheets/Craftables by default, and their code in StardewValley.Object (based on the bigCraftable field).

Data format

The big craftable data in Data/BigCraftables 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.

Unobtainable items

The data asset has items that can't normally be picked up or may be unimplemented 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.

See also