7 Days to Die

7 Days to Die

View Stats:
How are tree seed drops controlled when harvesting trees in 7DTD 1.4
Hey devs & modders,

I've been trying to adjust the drop rate of tree seeds (e.g. `resourceSeedOak`, `resourceSeedPine`) when players harvest or destroy trees in 7 Days to Die. I went through all relevant XML files (`blocks.xml`, `loot.xml`, `items.xml`) and found that:

- Tree blocks like `treePlantedOak20m` or `treeMasterOak` do not contain `<drop>` entries for seeds
- No `LootList` or lootcontainer seems to be associated with those blocks
- Seeds still drop during harvesting (with axes or chainsaw), even if no XML entry defines this
- Attempts to set `<set xpath=".../@prob" value="0.0"/>` had no effect

**Is the seed drop behavior hardcoded in the engine, or is it defined elsewhere in XML or buffs/effects?**
Any pointers to where this behavior is defined or how to override it would be appreciated!

Thanks in advance!


– realAscot

---
https://github.com/realAscot/DropRateSeedAdjuster
Last edited by Kpt. Ascot (DEV); Apr 13 @ 5:29pm
< >
Showing 1-1 of 1 comments
seven Apr 13 @ 10:37pm 
You're looking for a destroy event, like

<drop event="Destroy" name="treePlantedOak1m" count="1"/>

treePlantedOak1m is the seed item.
< >
Showing 1-1 of 1 comments
Per page: 1530 50