Jump to content

Open Community  ·  1282 members

Stardew Valley

Crab pot mod help


HillCube

Recommended Posts

  • 1 month later...

You can use content patcher and change the crab pot recipe, but I believe after learning a certain profession it changes the crab pot recipe again which might be done by code instead of a content patcher.

To create a content Patcher Mod
Create a folder of your mod "[CP] NameOfYourContentPatch" then create 2 files inside of this folder include 2 files (manifest.json, content.josn) and also include 1 folder called "Assets" and add a file in assets called "Fish.json"
Folder structure should look like this
[CP] NameOfYourContentPatch

  • content.json
  • manifest.json
  • assets
    •  Fish.json


Manifest.json should include what is listed below and edit the name author and unique ID what what you want for it

Quote

{
    "Name": "NameOfYourModContentPatchNameHereShouldNotContainSpace",
    "Author": "YourName",
    "Version": "1.0.0",
    "Description": "Add any type of description here",
    "UniqueID": "ReplaceThisPartWithYourAuthorName.ReplaceThisSectionWithWhatYouPutInTheNameFIeldAbove",
    "UpdateKeys": [], 
    "ContentPackFor": {
        "UniqueID": "Pathoschild.ContentPatcher"
    }
}

Later you can add update keys which is used by mod managers or SMAPI to determine when you have a newer version out. For update key inside the brackets you can include for example
["Nexus:ReplaceThisYourNextModID"] when you create a mod on nexus mod it creates a URL that has a number
https://www.nexusmods.com/stardewvalley/mods/32012  32012 would be the nexus mode ID and so if this was your mode you can update your manifest updatekeys to    "UpdateKeys": ["Nexus:32012"], 

Content.json you can copy the code below and save, which shows we plan to modify and "Edit" a crafting recipe for Crab Pot

Quote

{
  "Format": "2.0.0",
  "Changes": [
    {
      "Action": "EditData",
      "Target": "Data/CraftingRecipes",
      "Entries": {
        "Crab Pot": "388 40 335 3/Home/710/false/Fishing 3/"
      }
    },
    {
      "Action": "Load",
      "Target": "Data/Fish",
      "FromFile": "assets/Fish.json"
    }
  ]
}


Next you can then edit the text "Value": "388 40 335 3/Home/710/false/Fishing 3/"  and edit this.

"388 40 335 3"  section controls the crafting recipe required items where ->    [FirstItemID] [number of First ItemID needed]  [SecondItemID] [Number of Second ItemID needed]  and so on.. and so in this actual code we know we need
item 388(which is wood) amount of 40,  and itemid 335(iron bar) amount of 3.   You look up item id online  Here: https://mateusaquino.github.io/stardewids/  

You can also choose to edit the out section which currently contains 710
"710"  which is the output item and item amount in this case 710  is crab pot, you can change this to  "710 4"  to give you 4 crabpot when you craft instead of 1 or change the item complete by swapping item ID with something else.


Last you can copy and paste these into the Fish.json 
 

Quote

{
  "128": "Pufferfish/80/floater/1/36/1200 1600/summer/sunny/690 .4 685 .1/4/.3/.5/0/true",
  "129": "Anchovy/30/dart/1/16/600 2600/spring fall/both/682 .2/1/.25/.3/0/true",
  "130": "Tuna/70/smooth/12/60/600 1900/summer winter/both/689 .35 681 .1/3/.15/.55/0/true",
  "131": "Sardine/30/dart/1/12/600 1900/spring summer fall winter/both/683 .3/1/.65/.1/0/true",
  "132": "Bream/35/smooth/12/30/1800 2600/spring summer fall winter/both/684 .35/1/.45/.1/0/true",
  "136": "Largemouth Bass/50/mixed/11/30/600 1900/spring summer fall winter/both/685 .35/3/.4/.2/0/true",
  "137": "Smallmouth Bass/28/mixed/12/24/600 2600/spring fall/both/682 .2/1/.45/.1/0/true",
  "138": "Rainbow Trout/45/mixed/10/25/600 1900/summer/sunny/684 .35/2/.35/.3/0/true",
  "139": "Salmon/50/mixed/24/65/600 1900/fall/both/684 .35/3/.4/.2/0/true",
  "140": "Walleye/45/smooth/10/40/1200 2600/fall winter/rainy/680 .35/2/.4/.15/0/true",
  "141": "Perch/35/dart/10/24/600 2600/winter/both/683 .2/1/.45/.1/0/true",
  "142": "Carp/15/mixed/15/50/600 2600/spring summer fall/both/682 .2/1/.45/.1/0/true",
  "143": "Catfish/75/mixed/12/72/600 2400/spring fall winter/rainy/689 .4 680 .1/4/.4/.1/0/true",
  "144": "Pike/60/dart/15/60/600 2600/summer winter/both/690 .3 681 .1/3/.4/.15/0/true",
  "145": "Sunfish/30/mixed/5/15/600 1900/spring summer/sunny/683 .2/1/.45/.1/0/true",
  "146": "Red Mullet/55/smooth/8/22/600 1900/summer winter/both/680 .25/2/.4/.15/0/true",
  "147": "Herring/25/dart/8/20/600 2600/spring winter/both/685 .2/1/.45/.1/0/true",
  "148": "Eel/70/smooth/12/80/1600 2600/spring fall/rainy/689 .35 680 .1/3/.55/.1/0/true",
  "149": "Octopus/95/sinker/12/48/600 1300/summer/both/688 .6 684 .1/5/.1/.08/0/true",
  "150": "Red Snapper/40/mixed/8/25/600 1900/summer fall winter/rainy/682 .25/2/.45/.1/0/true",
  "151": "Squid/75/sinker/12/48/1800 2600/winter/both/690 .35 680 .1/3/.35/.3/0/true",
  "152": "Seaweed/5/floater/5/30/600 2600/spring summer fall winter/both/-1/0/.3/0/0/false",
  "153": "Green Algae/5/floater/5/30/600 2600/spring summer fall winter/both/-1/0/.3/0/0/false",
  "154": "Sea Cucumber/40/sinker/3/20/600 1900/fall winter/both/683 .2 689 .4/3/.25/.25/0/false",
  "155": "Super Cucumber/80/sinker/12/36/1800 2600/summer winter/both/683 .2 689 .4/4/.1/.25/0/false",
  "156": "Ghostfish/50/mixed/10/35/600 2600/spring summer fall winter/both/684 .35/2/.3/.3/0/false",
  "157": "White Algae/5/floater/5/30/600 2600/spring summer fall winter/both/-1/0/.3/0/0/false",
  "158": "Stonefish/65/sinker/15/15/600 2600/spring summer fall winter/both/689 .2/2/.1/.1/3/false",
  "159": "Crimsonfish/95/mixed/20/20/600 2000/winter/both/690 .15/4/.1/.1/5/false",
  "160": "Angler/85/smooth/18/18/600 2600/spring summer fall winter/both/690 .1/4/.05/.1/3/false",
  "161": "Ice Pip/85/dart/8/8/600 2600/spring summer fall winter/both/682 .1/2/.05/.1/5/false",
  "162": "Lava Eel/90/mixed/32/32/600 2600/spring summer fall winter/both/684 .1/2/.05/.1/7/false",
  "163": "Legend/110/mixed/50/50/600 2000/spring summer fall winter/rainy/688 .05/5/0/.1/10/false",
  "775": "Glacierfish/100/mixed/27/27/600 2000/winter/sunny/688 .1/5/0/.02/7/false",
  "682": "Mutant Carp/80/dart/36/36/600 2600/spring summer fall winter/both/688 .1/5/0/.02/0/false",
  "164": "Sandfish/65/mixed/8/24/600 2000/spring summer fall winter/both/682 .2/1/.65/.1/0/false",
  "165": "Scorpion Carp/90/dart/12/32/600 2000/spring summer fall winter/both/683 .4/2/.15/.1/4/false",
  "267": "Flounder/50/sinker/4/16/600 2000/spring summer/both/680 .25/2/.15/.05/0/false",
  "269": "Midnight Carp/55/mixed/12/52/2200 2600/fall winter/both/682 .2/1/.33/.1/0/false",
  "715": "Lobster/trap/.05/688 .45 689 .35 690 .35/ocean/2/20/false",
  "717": "Crab/trap/.1/684 .45/ocean/1/20/false",
  "723": "Oyster/trap/.15/682 .35/ocean/1/5/false",
  "372": "Clam/trap/.15/681 .35/ocean/1/5/false",
  "720": "Shrimp/trap/.2/681 .35/ocean/1/3/false",
  "718": "Cockle/trap/.3/680 .2/ocean/1/5/false",
  "719": "Mussel/trap/.35/683 .15/ocean/1/5/false",
  "721": "Snail/trap/.25/680 .35/freshwater/1/5/false",
  "716": "Crayfish/trap/.35/682 .4/freshwater/1/8/false",
  "722": "Periwinkle/trap/.55/681 .35/freshwater/1/3/false",
  "698": "Sturgeon/78/mixed/12/60/600 1900/summer winter/both/689 .35 682 .1/3/.35/.2/0/false",
  "699": "Tiger Trout/60/dart/10/20/600 1900/spring summer fall winter/both/688 .45 685 .2/3/.2/.1/0/false",
  "700": "Bullhead/46/smooth/12/30/600 2600/spring summer fall winter/both/681 .25/2/.35/.2/0/false",
  "701": "Tilapia/50/mixed/11/30/600 1400/summer fall/both/683 .35/3/.4/.2/0/false",
  "702": "Chub/35/dart/12/24/600 2600/spring summer fall winter/both/684 .35/1/.45/.1/0/false",
  "704": "Dorado/78/mixed/24/32/600 1900/summer/both/689 .35 681 .1/3/.15/.1/0/false",
  "705": "Albacore/60/mixed/20/40/600 1100 1800 2600/fall winter/both/685 .35/3/.3/.15/0/false",
  "706": "Shad/45/smooth/20/48/900 2600/spring summer fall/rainy/684 .35/2/.35/.2/0/false",
  "707": "Lingcod/85/mixed/30/50/600 2600/winter/both/690 .4 685 .2/3/.3/.05/0/false",
  "708": "Halibut/50/sinker/10/33/600 1100 1900 2600/spring summer winter/both/681 .35/3/.4/.2/0/false",
  "734": "Woodskip/50/mixed/11/30/600 2600/spring summer fall winter/both/685 .35/3/.2/.1/0/false",
  "795": "Void Salmon/80/mixed/24/65/600 2600/spring summer fall winter/both/685 .35/2/.33/.1/0/false",
  "796": "Slimejack/55/dart/8/25/600 2600/spring summer fall winter/both/685 .35/3/.4/.1/0/false",
  "798": "Midnight Squid/55/sinker/8/25/600 2600/spring summer fall winter/both/685 .35/3/.4/.1/0/false",
  "799": "Spook Fish/60/dart/8/25/600 2600/spring summer fall winter/both/685 .35/3/.4/.1/0/false",
  "800": "Blobfish/75/floater/8/25/600 2600/spring summer fall winter/both/685 .35/3/.4/.1/0/false",
  "836": "Stingray/80/sinker/18/60/600 2600/spring summer fall winter/both/685 .35/4/.2/.1/0/false",
  "837": "Lionfish/50/smooth/3/12/600 2600/spring summer fall winter/both/685 .35/3/.4/.1/0/false",
  "838": "Blue Discus/60/dart/2/9/600 2600/spring summer fall winter/both/685 .35/1/.25/.1/0/false",
  "898": "Son of Crimsonfish/95/mixed/20/20/600 2000/winter/both/690 .15/4/.1/.1/5/false",
  "899": "Ms. Angler/85/smooth/18/18/600 2600/spring summer fall winter/both/690 .1/4/.05/.1/3/false",
  "900": "Legend II/110/mixed/50/50/600 2000/spring summer fall winter/rainy/688 .05/5/0/.1/10/false",
  "901": "Radioactive Carp/80/dart/36/36/600 2600/spring summer fall winter/both/688 .1/5/0/.02/0/false",
  "902": "Glacierfish Jr./100/mixed/27/27/600 2000/winter/sunny/688 .1/5/0/.02/7/false",
  "Goby": "Goby/55/dart/3/12/800 1800/spring summer fall/both/684 .35/1/.25/.2/0/false"
}


You'll need to look at the fish data above to see what you'll want to change above you'll notice that all the trapped fishes like  crab

  "717": "Crab/trap/.1/684 .45/ocean/1/20/false",

contains the /trap/.1/ after the first slash, and so I suspect if you modify any of the other fish values after first slash to "trap" the fish becomes trappable, and the number after the 2nd slash i suspect would be the %chance that the fish can be caught in that trap.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...