• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Mod Request - More Stag/Deer Spawning

You can modify a file yourself to get what you need.

- Download a small mod to use as a template (eg. https://community.7daystodie.com/topic/35203-crouch-aiming-revisited-a21-xml-modlet/ - one of mine - free to use)

- remove everything in the mods config directory

- change the text in modInfo.xml to suit yourself

- create a file called entitygroups.xml and place is in the config directory. It should be the only file in the config directory.

add the following to the file:

<configs>

<!-- for each entry for stags and doe in the 7dtd entitygroups.xml file:
first delete the animal stag entry
second delete the animal doe entry
Then add them back with changed probabilities.
Have added random increases - choose your own values.
You can edit the actual probability itself but I've removed and re-added the entity - either way works-->
<remove xpath="entitygroups/entitygroup[@name='AnimalsSnow']/entity[@name='animalStag']/"/>
<remove xpath="entitygroups/entitygroup[@name='AnimalsSnow']/entity[@name='animalDoe']/"/>
<append xpath="entitygroups/entitygroup[@name='AnimalsSnow']">
<entity name="animalStag" prob="0.21"/> <!--was 0.11-->
<entity name="animalDoe" prob="0.39"/> <!--was 0.29-->
</append>

<!--now do this for all 4 other entries for stags and doe that are in entitygroups.xml-->
<!--FriendlyAnimalsForest probability for stags and doe are already 1, so can ignore-->
<remove xpath="entitygroups/entitygroup[@name='AnimalsForest']/entity[@name='animalStag']/"/>
<remove xpath="entitygroups/entitygroup[@name='AnimalsForest']/entity[@name='animalDoe']/"/>
<append xpath="entitygroups/entitygroup[@name='AnimalsForest']">
<entity name="animalStag" prob="0.5"/> <!--was 0.3-->
<entity name="animalDoe" prob="0.3"/> <!--was 0.15-->
</append>

<remove xpath="entitygroups/entitygroup[@name='AnimalsAll']/entity[@name='animalStag']/"/>
<remove xpath="entitygroups/entitygroup[@name='AnimalsAll']/entity[@name='animalDoe']/"/>
<append xpath="entitygroups/entitygroup[@name='AnimalsAll']">
<entity name="animalStag" prob="0.5"/> <!--was 0.27-->
<entity name="animalDoe" prob="0.8"/> <!--was 0.73-->
</append>

<remove xpath="entitygroups/entitygroup[@name='FriendlyAnimalsSnow']/entity[@name='animalStag']/"/>
<remove xpath="entitygroups/entitygroup[@name='FriendlyAnimalsSnow']/entity[@name='animalDoe']/"/>
<append xpath="entitygroups/entitygroup[@name='FriendlyAnimalsSnow']">
<entity name="animalStag" prob="0.25"/> <!--was 0.11-->
<entity name="animalDoe" prob="0.35"/> <!--was 0.29-->
</append>

<remove xpath="entitygroups/entitygroup[@name='FriendlyAnimalsBurntForest']/entity[@name='animalStag']/"/>
<remove xpath="entitygroups/entitygroup[@name='FriendlyAnimalsBurntForest']/entity[@name='animalDoe']/"/>
<append xpath="entitygroups/entitygroup[@name='FriendlyAnimalsBurntForest']">
<entity name="animalStag" prob="0.5"/> <!--was 0.25-->
<entity name="animalDoe" prob="0.7"/> <!--was 0.5-->
</append>
</configs>


Rename the mod folder to whatever you want your mod called and place it in you 7dtd/mods directory.

Cheers

 
Just to add

Example setting the probability directly:

<set xpath ="entitygroups/entitygroup[@name='AnimalsSnow']/entity[@name='animalStag']/property[@name='prob']/@value">0.5</set>

repeat the above for all entries you want to amend.

cheers

 
Back
Top