Project Zomboid

Project Zomboid

Trees Have Loot
105 Comments
Ryan 6 Jun @ 4:56pm 
@PepperCat is it compatible with treez & treezvisibility?
Trainingday 27 May @ 1:29am 
hola alexa! primero de todo buen trabajo con tus mods! por otra parte queria hacerte una consulta. En tu coleccion de mods tienes el calm before storm. Tienes algun link video de como activarlo en la 42? graciass y siento preguntar x aquí pero no se donde escribirte!
Sakana 22 May @ 3:25am 
Does this have trees that are hollow inside to possibly contain random loot like a stash? Lot of games have stashes like that.
PepperCat  [author] 18 Apr @ 6:30am 
@brendamcasey the loot is indeed affected by the size of the three and also, the amount of a certain type of loot as well.
However, TreeZ only upscales the size of the texture, internally, the trees still have the same size, so that mod won't impact this mod.
PepperCat  [author] 18 Apr @ 6:29am 
I don't see why not. Whenever I have time I can do that
stalksetcup 17 Apr @ 9:52am 
Hi, can I ask to add the ability to find hives in trees when the mod is enabled https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3430224478
brendanmcasey 12 Apr @ 11:30am 
Just wondering if your loot metrics have any base in the size of a tree and, if so, would this be effected by the new 'Treez' mod? If not, might it be an idea internally to the mod for the larger tree models to possibly have additional cones, fruit, birds, squirrels and number of branches to harvest? It was just a thought, not meant to put weight on you as a modder.

Long time subscriber, first time commenter.
tantanix01 2 Apr @ 2:08am 
okay for existing save
PepperCat  [author] 31 Mar @ 5:57am 
@Skapman: just because I couldn't find a nice animation for it, didn't want it to look ugly
@Darnexx B.I.G.: I have no clue how to do the controller support, If I learn how to do it I will
@KWG: it depends on your foraging level, size of the tree and season, Higher foraging level, bigger trees and summer are the best combination to find items
B.I.G. 24 Mar @ 3:59am 
I agree. I'm not adding this mod just because there's still no controller support
KWG 17 Mar @ 6:04pm 
Searching in trees isn't giving me any item and I can't search in big trees. Cuting down branch is working fine though. Nice mod!
Darnexx 14 Mar @ 3:11pm 
Wish it would work with the Controller. I can't see anything using it, but with the Mouse I can.
FX-Kira 2 Mar @ 5:50pm 
Does it work on saved games?
Skapman 20 Feb @ 11:31pm 
Any reason why you can't use a saw to cut from the tree?
PepperCat  [author] 19 Feb @ 7:14am 
You can already obtain branches with bare hands, however it is waaaaay more rare as there's a lot of other items in the loot table. If you don't wear gloves you can get scratches.
Greez 19 Feb @ 7:10am 
Thanks for the great mod! Is it possible to add the ability to get branches from trees without a knife and an axe? With my bare hands. With a high probability of getting a scratch or injury.
I started the game away from cities and loot. In the current state of the game, it's easy to find rocks and logs in the deep forest, but not branches. I just can't make a stone axe. I thought this mod would help me, but for some reason a sharp stone is not suitable for getting branches from a tree :(
ps. sorry for my english. google translator
Blkbeard 14 Feb @ 4:30am 
Would it be possible to add controller functionality? When I interact with a tree via controller the option to "Search Tree" / "Cut Branch" is missing, but works when I right click the tree. Thanks in advance!
Art Tippet 18 Jan @ 6:10pm 
Ciao! @PepperCat.
I translated your mod into Italian, thanks for your work and for sharing it with the community!
Blkbeard 14 Jan @ 3:17pm 
Amazing mod! One of my faves and should be a vanilla feature! 10/10:steamthumbsup:
retr0l0gy 14 Jan @ 3:50am 
yes thank you its very helpful
croemiles 13 Jan @ 10:50pm 
anyway thanks for your mod PepperCat
retr0l0gy 13 Jan @ 10:17am 
after some time. i deconfirm what SSteve said. you can get branches though getting saplings is much more common for some reason
retr0l0gy 13 Jan @ 10:14am 
also is it normal that i can infinitely search 1 tree?
retr0l0gy 13 Jan @ 10:13am 
can confirm what SSteve said
SSteve 11 Jan @ 9:43pm 
you actually cant get branches, only saplings for some reason?
PepperCat  [author] 7 Jan @ 10:13am 
You can cut branches and will always get branches. Did you test the mod or you're just speaking without trying it?
croemiles 7 Jan @ 9:35am 
ok PepperCat but why it is so hard to find branches in trees ? It is not logical...
PepperCat  [author] 6 Jan @ 2:51pm 
The more you increase your foraging levels, the more chances to obtain things, being 100% chance when at Lv10 and tree size 6 (the maximum)
Clone4082 6 Jan @ 2:33pm 
I have searched several trees in maldrugh, and haven't found SHIT, no matter what tree I search, big or small
PepperCat  [author] 6 Jan @ 6:34am 
What you mean? @croemiles
croemiles 6 Jan @ 2:06am 
trees without branches ....
Tesla Coyle 4 Jan @ 2:21pm 
I wish vanilla foraging was like this, where you would do a timed action of searching something specific and it would grant foraging xp and some item instead of wondering around with an overlay.
PepperCat  [author] 1 Jan @ 7:02am 
Yeah it was intentional because I did the update quickly and thought that most of the crafts were going to use saplings. it ended up that only Spears... haha I will definitely look at the loot table really soon and add all Tree Branches, Saplings, Broken Branch, etc
Bomjus 1 Jan @ 4:56am 
not sure if intentional, but the "cut branch from tree" is ONLY giving me saplings. i can't craft most rudimentary tools from saplings, is it possible to add actual "Tree Branch" to that loot pool?
PepperCat  [author] 25 Dec, 2024 @ 6:29am 
Please do it!
As soon as I have time I will do the update.
About saplings and branches yeah, I need to adjust that, my intention is that you can get more new loot from B42 now, even broken branches.
Von Bon 25 Dec, 2024 @ 5:30am 
My fix amounted more to simply copying your two arrays from TreeMenu for all wood choppers and sharpknives, and changing the IF in CutBranchFromTreeAction functions.

Though by default your script only provides Saplings and not Branches, I included a 50/50 chance of receiving a branch or sapling mainly for testing the new crafting stuff. ( I didn't get very far because there's no craft for crude saw). If you want I can copy-paste the code into a thread if it'll help.
PepperCat  [author] 22 Dec, 2024 @ 1:49pm 
50 percent? it should be much lower but yeah, you have chances
F1tgal911 22 Dec, 2024 @ 1:33pm 
50 percent of the time you get a rotten squirrel from getting a sapling...
PepperCat  [author] 22 Dec, 2024 @ 12:54pm 
Oh, so now the Sharp Flint has the SharpKnife tag? thanks! I will need to exclude that one. If you want to create a thread with that, it would be useful!
Von Bon 22 Dec, 2024 @ 12:14pm 
I found a bug where Sharp Flints (SharpKnife) counts for showing the option to Cut Branches ( TreeMenu.lua checks for both ChopTree and SharpKnife tags in primary slot), but doing so with it will produce an error because the CutBranchFromTreeAction start and perform only checks if primary held item is in the "Axe" category.
I made a local fix myself but I figured you'd want to know.
PepperCat  [author] 21 Dec, 2024 @ 3:06pm 
Hahaha it may have those bugs, but at least not on trees
HideoKuze 21 Dec, 2024 @ 2:07pm 
'and many bugs', the first time I read this I thought it means code bugs, so I passed this mod lol
F1tgal911 20 Dec, 2024 @ 6:52pm 
Somehow this mod stopped working...B42
Play Only Duo 1 Nov, 2024 @ 1:33am 
hi! Could you add a feature that allows you to search the tree for loot while it's there, rather than searching for it separately each time?
B.I.G. 1 Oct, 2024 @ 4:25am 
Hi!
Can I used this mod on gamepad?
~vicky.salazar92~ 26 Sep, 2024 @ 4:49pm 
Gracias por la explicación y perdón por mi falta de atención !

Sería bastante útil poder realizar una sola búsqueda que abarque todo el árbol en cuestión, capaz así nos ahorramos unos cuantos clics que muchas veces no dan resultados. Para balancearlo quizá se podría aumentar el tiempo que tarda la búsqueda actual, y un nivel de cansancio mayor al finalizarla.
Perdón solo quería aportar esa idea
PepperCat  [author] 26 Sep, 2024 @ 12:28pm 
Cuando cortas con hacha la rama cae al suelo (es una animación diferente), búscala en el suelo y la vas a encontrar. Frutas ya se pueden obtener, mira las imágenes para ver qué árboles tienen frutas.
~vicky.salazar92~ 26 Sep, 2024 @ 11:49am 
Holaa. Por algun motivo al andar con un hacha sale la opcion de cortar rama pero nunca deja nada, solamente se puede con un cuchillo.
Como sugerencia estaria muy bueno poder recoger frutas en ciertos arboles durante las estaciones apropiadas!
Gracias por un mod tan bueno.
Slider-Man 25 Aug, 2024 @ 8:24am 
cant get this to work lately, could be a mod issue but not sure, anyone else still got this working or know of what mod would cause it to not allow a search on a tree?
Enthuziazt 12 Jun, 2024 @ 7:13am 
Trying the ironman challenge and this is a must have mod who doesn't want to waste their lifes searching for a virtual branch