DayZ
76 ratings
Tree Shake
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
12.599 KB
8 Aug @ 6:12pm
1 Sep @ 3:40pm
6 Change Notes ( view )

Subscribe to download
Tree Shake

Description
Welcome to my Mod: Saga Tree Shake

What can this mod?
This mod allows you to shake fruit trees to get fruit.
It works with
plum trees
pear trees
apple trees

You can set the probability of fruit appearing in the configuration file
profiles/SagaShakeTree/

"settings_version": 4, // DON`T TOUCH THIS "apple_drop_chance": 0.10000000149011612, // DROP CHANCE OF APPLE 1.0 means 100% and 0.25 means 25% "plum_drop_chance": 0.10000000149011612, // DROP CHANCE OF PEAR 1.0 means 100% and 0.25 means 25% "pear_drop_chance": 0.10000000149011612, // DROP CHANCE OF PEAR 1.0 means 100% and 0.25 means 25% "shake_duration_seconds": 10.0, //Time the player must hold the action to shake. NEW: "tree_cooldown_minutes": 60, //Per-tree cooldown before it can be shaken again. "apple_min_count": 2, // Min/max number of apples spawned on a successful shake. "apple_max_count": 4, // Min/max number of apples spawned on a successful shake. "plum_min_count": 2, // Min/max number of plum spawned on a successful shake. "plum_max_count": 4, // Min/max number of plum spawned on a successful shake. "pear_min_count": 2, // Min/max number of pear spawned on a successful shake. "pear_max_count": 4, // Min/max number of pear spawned on a successful shake. "food_stage_enable": 1, //Enables optional food stages (dried/rotten) for spawned fruit. "food_dried_chance": 0.15000000596046449, //Probability a spawned fruit is “dried” (only if food_stage_enable = true). "food_rotten_chance": 0.05000000074505806 Probability a spawned fruit is “rotten” (only if food_stage_enable = true). it does mean: 1.0 (100%) you always get fruit when you shake it. lower like 0.5 or 0.25 (50% or 25%) you get less fruit when you shake it.

You can do, what u want! Repack is allowed! Feel free, to use the mod in your serverpack!
But please give me credit in your serverpacket and workshop page!


Github Link Open source:
https://github.com/hummigithub/SagaTreeShake

i am happy, you support me with a little tip! :-)
https://ko-fi.com/hummigummi


MY OTHER MODS:
Close Combat Movement
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3565207710

The Wish
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3549578911

The Purge
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3550185700

ATM Hacking
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3550831150

Its my car inventory
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3552554787

61 Comments
HappyPants 5 Oct @ 6:14pm 
I got the plum and berry bushes added to the mod. I'd be more than happy to trade that for the code that lets me fix the shake timer :)
HappyPants 14 Sep @ 5:06pm 
totally understand! if i could figure out how to fix it I would to help gladly
hummigummi  [author] 14 Sep @ 3:50pm 
@HappyPants
oh sorry. thanks for report the error!
it´s on my "to do list".
but at the moment i make many mods.
It may take a while.
HappyPants 14 Sep @ 1:35pm 
seems like no matter what I set it at the shake time remains 10 seconds. I've tried 0.0, 0.5, 1.0, 3.0, 5.0 etc. I was aiming for 3 seconds but can't seem to get anything to change from it taking 10 seconds or so to shake the tree. still loving the mod either way i just hadn't realized this was a problem due to my fast actions from admin tool lol
Pr.Sunrise 7 Sep @ 5:05am 
Лайк автору, подписка, и ссылка на мод.
Like the author, subscribe and link to the mod.
BeatrixKiddo 7 Sep @ 12:32am 
why would this wont work with Namalsk trees?
hummigummi  [author] 3 Sep @ 2:50am 
@madskillz

you can find the code on my github. see in workshop description for the link.
madskillz 2 Sep @ 4:15pm 
It's a pity that you closed PBO. Now I can't translate into my language :(
hummigummi  [author] 2 Sep @ 12:17pm 
@Sr_Corvo
Yes, see the changelog from 11 aug
Sr_Corvo 2 Sep @ 8:01am 
Has the function of being able to shake the tree when pointing at fruits been fixed?