I want to eliminate or reduce their spawn frequency (without impacting the spawns of actual birch trees) as part of a foliage mod I'm making. I'm talking about the mid-sized shrubs that spawn on the ground called "Birch leaves" ingame, not the leaves on top of a Birch tree.
In the in-game debug mode (Ctrl+F3), they have the code:
leaves-grown*-birch
(or)
leavesbranchy-grown*-birch
where "*" is an integer.
I tried to edit treengenproperties.json, I set Weight to 0 and/or MinTemp to very high for dwarfbirch under shrubgens. Tried via patch and via editing the actual gamefile itself. But I didn't notice any difference, they're still showing up.
I tried to find any file with both "leaves" and "chance" (or "weight") occurring, but couldn't find anything obvious.
I suspect that this survival/blocktypes/plant/leaves/normal.json file is important because it seems to actually define the leaves
// survival/blocktypes/plant/leaves/normal.json
{
code: "leaves",
"__comment": "BlockLeaves contains some code for map color tinting, stuff for wind affectedness and random testForDecay server block ticks",
class: "BlockLeaves",
behaviorsByType: {
"*-grown*-*": [{name: "PushEventOnBlockBroken", properties: {eventName: "testForDecay"}}, { name: "RainDrip" }],
"*": [{ name: "RainDrip" }]
},
attributes: {
handbook: {
groupBy: ["leaves-*", "leavesnarrow-*"]
},
treeFellingGroupCodeByType: {
"*-grown-crimsonkingmaple": "0maple",
"*-grown1-crimsonkingmaple": "1maple",
"*-grown2-crimsonkingmaple": "2maple",
"*-grown3-crimsonkingmaple": "3maple",
"*-grown4-crimsonkingmaple": "4maple",
"*-grown5-crimsonkingmaple": "5maple",
"*-grown6-crimsonkingmaple": "6maple",
"*-grown7-crimsonkingmaple": "7maple",
"*-grown-*": "0{wood}",
"*-grown1-*": "1{wood}",
"*-grown2-*": "2{wood}",
"*-grown3-*": "3{wood}",
"*-grown4-*": "4{wood}",
"*-grown5-*": "5{wood}",
"*-grown6-*": "6{wood}",
"*-grown7-*": "7{wood}"
},
treeFellingGroupSpreadIndex: 0,
canDecayByType: {
"*-grown*-*": true
}
},
variantgroups: [
{ code: "type", states: ["grown", "grown1", "grown2", "grown3", "grown4", "grown5", "grown6", "grown7", "placed"] },
{ code: "wood", states: ["crimsonkingmaple"], loadFromProperties: "block/wood" }
],
creativeinventory: { "general": ["leaves-placed-*"], "flora": ["leaves-placed-*"] },
shapeInventory: { base: "block/plant/leaves/normal-lod0" },
renderpass: "OpaqueNoCull",
faceCullMode: "CollapseMaterial",
blockmaterial: "Leaves",
climateColorMapByType: {
"*-crimsonkingmaple": "climateCrimsonKingTint",
"*-redwood": "climateDarkerPlantTint",
"*": "climatePlantTint"
},
seasonColorMapByType: {
"*-pine": "seasonalNeedles",
"*-redwood": "seasonalNeedles",
"*-birch": "seasonalBirch",
"*-maple": "seasonalMaple",
"*-oak": "seasonalOak",
"*-walnut": "seasonalWalnut",
"*-larch": "seasonalLarch",
"*-crimsonkingmaple": "seasonalCrimsonKingMaple",
"*-kapok": "tropicalKapok",
"*": "seasonalFoliage",
},
vertexFlags: {
zOffset: 4,
windMode: "Leaves"
},
//....
}