AzNean Lib
Shared library for mods that add items: one list of added item ids (no clash between mods), item names, recipes, backpack places.
By AzNean
| Last updated | 3 hours ago |
| Total downloads | 30 |
| Total rating | 0 |
| Categories | Libraries Mods |
| Dependency string | AzNean-AzNean_Lib-0.1.3 |
| Dependants | 1 other package depends on this package |
This mod requires the following mods to function
BepInEx-BepInExPack_IL2CPP
BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.
Preferred version: 6.0.788README
AzNean Lib
What it does: Shared parts for my mods that add items to Sons of the Forest; it does nothing on its own.
How to use: Nothing to do: your mod manager installs it with the mods that need it.
Multiplayer: Installed by each player who has one of those mods; nothing more is needed on the host.
What it does
- Keeps one list of the item ids added by mods, so two mods never take the same id (that would lose a player's items). A clash is refused and written in the BepInEx log with the mod that has the id.
- Adds an item's name, plural and description to the game's own item texts, in the game's language.
- Adds crafting recipes to the game's crafting mat, and lets the mat take the items they use.
- Puts the backpack places a mod adds in the game's backpack lists, so items moved into the backpack show there.
- No patch of the game, nothing running every frame.
Used by: Slingshot Special Ammo.
Multiplayer
Nothing of its own goes over the network. Each player who installs a mod that needs it gets it with that mod.
For modders
BepInEx 6 IL2CPP plugin aznan.sotf.azneanlib; add [BepInDependency("aznan.sotf.azneanlib")] and the Thunderstore dependency AzNean-AzNean_Lib.
GameItems.Ready,GameItems.Add(mod, id, template, name),GameItems.SetTexts(item, name, plural, description),GameItems.LanguageRecipes.Add(mod, craftingSystem, recipeName, resultId, resultCount, parts, first),Recipes.MarkAsMaterial(mod, id)Backpack.JoinLists(mod, inventory, templatePlace, ourPlaces, copyPrefix)
Settings
In the game's Settings with the optional Mod Config Menu mod, or in BepInEx/config/aznan.sotf.azneanlib.cfg:
- Debug:
FullLogging(false): every item, text, recipe and backpack place added, with the mod that asked.
Contact
Contact me on X (@aznantriks) or Reddit (u/aznan-triks).