Pathoschild / StardewMods

Mods for Stardew Valley using SMAPI.
MIT License
677 stars 372 forks source link

Question #756

Closed Tragco closed 1 year ago

Tragco commented 2 years ago

Hi! What code do I use to make a texture unique only to Ginger Island, please if you know?

Pathoschild commented 1 year ago

Hi! If you mean in a content pack for Content Patcher, you can use the LocationContext token. For example:

{
    "Action": "EditImage",
    "Target": "Characters/Abigail",
    "FromFile": "assets/abigail-island.png",
    "When": {
        "LocationContext": "Island"
    }
}

If you have any other questions, come ask in #making-mods on the Stardew Valley Discord and we'll be happy to help! The GitHub issues here are only used to track specific development tasks, so most modders who could help won't see questions here.