florins Posted April 6, 2025 Report Posted April 6, 2025 (edited) I want to reduce the spawn frequency because I play with maximum forestation and I don't want it to be too easy to find food. I have a general idea how to make a patch and alter the "chance" value. I found an example for another plant in: /var/lib/flatpak/app/at.vintagestory.VintageStory/x86_64/stable/ae78911920852de61d6f5b33312e3246d54ab684506ac9b395e0f0dece5666ef/files/extra/vintagestory/assets/survival/worldgen/blockpatches/other.json 1 [ 2 { 3 comment: "Large patches of coopers reed", 4 blockCodes: ["tallplant-coopersreed-land-normal-free"], 5 minTemp: 3, 6 maxTemp: 23, 7 minRain: 0.4, 8 maxRain: 1, 9 quantity: { avg: 25, var: 15 }, 10 offsetX: { avg: 0, var: 12 }, 11 offsetZ: { avg: 0, var: 12 }, 12 chance: 1, 13 placement: "NearWater" 14 }, But I grep searched inside every single file in my base flatpak install directory, and cannot find anything in worldgen pertaining to the substring `cattail` that I could step on for guidance. There is no `other.json` or `plants.json` or anything that contains a cattails plant along with a chance parameter that I can adjust via a patch. Is it hardcoded into the game engine or something? How can I identify the blockCodes for this cattails plant, along with default settings for minRain, maxRain, etc? Edited April 6, 2025 by florins
xXx_Ape_xXx Posted April 7, 2025 Report Posted April 7, 2025 (edited) Coopers reed = cattails The file defining the plant is found in blocktypes/plant/reedpapyrus.json The spawn chances are found in worldgen/blockpatches/other.json To identify the blockCodes for anything in game, turn on "Developer mode" in the "Interface" tab (all the way at the bottom), then make sure to tick the box for "Extended Debug Info" on the "Dev" tab. Then when you are in game, use Ctrl+F3 to bring up the debug screen, and you can see the block codes for anything you point at, on the right side of your screen. You will also see similar info when hovering over something with the mouse in the handbook or on your hotbar. Edited April 7, 2025 by xXx_Ape_xXx 1
Recommended Posts