Jump to content

Recommended Posts

Posted

I was looking at the racoon json trying to identify what makes them eat berries from bushes, is it this? 

foodTags: ["lootableSweet", "sweetBerryBush"]

Would adding this to other animals give them the same behavior or more work is needed?

Posted

There's a little more to it than that, but not too much I don't think. You will also need to add in seekfoodandeat and useinventory tasks to the aitasks of all the entities you want to patch, as well as a mouthinventory that can accept all of the food items you want the patched animals to eat. Then you will probably need to patch all the models to have an attachment point at the mouth to get them to carry the berries around like the racoons do. It should all be doable with some JSON patches I think, you'll just need to do quite a few of them.

Posted (edited)
On 12/12/2024 at 11:07 AM, LuisEdGm said:

Yeah... more effort than expected, would be annoying make it compatible with other animal mods too...

It's a lot of patches, but fortunately you can pretty much just copy-paste the same patch for every animal, aside for the attachment points.

Alternatively I'm pretty sure you could write some code to hook into the JSON patch loader directly and apply the patches you want to make to every entity in a given category, but it's probably still a more robust solution to just patch them all individually.

Edited by iuno
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.