Jump to content

Modding:Pants

From Stardew Valley Wiki
Revision as of 17:26, 15 December 2024 by imported>Pathoschild (split from Modding:Items; attribution: Pathoschild (main author), BarleyZP (copy info from 1.6 migration guide with main content by Pathoschild and formatting fixes by Atravita, followup fixes))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

← Items

Pants

Data format

You can create/edit pants by editing the Data/Pants asset. 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 pants data

field purpose
Name (Optional) The internal name for the item. Default Pants.
DisplayName
Description
(Optional) A tokenizable string for the item's in-game display name and description. Defaults to the generic pants text (Pants and A wearable pair of pants).
Price (Optional) The default price when the item is sold to the player in a shop. Default 50.

Appearance

field purpose
Texture The asset name for the texture containing the pants' sprite. Defaults to Characters/Farmer/pants.
SpriteIndex The pants' sprite index within the Texture, where 0 is the top-left set.
DefaultColor (Optional) The dye color to apply to the sprite when the player hasn't dyed it yet, if any. See color format. Default 255 235 203 (which matches the color of the cloth item).
CanBeDyed (Optional) Whether the player can dye these pants. Default false.
IsPrismatic (Optional) Whether the pants continuously shift colors. This overrides DefaultColor and CanBeDyed if set. Default false.

Other

field purpose
CanChooseDuringCharacterCustomization (Optional) Whether these pants can be selected on the character customization screen (e.g. when creating a character). Default false.
CustomFields The custom fields for this entry.