


This is a Bepinex mod for Valheim that makes custom slotted items easier to develop.
If you are a developer wishing to leverage this mod, then you have two ways to do so:
Dynamically add the CustomSlotItem MonoBehaviour to the prefab's gameboject using the utility function, e.g.:
using CustomSlotItemLib;
[HarmonyPatch(typeof(ZNetScene), "Awake")]
[HarmonyPostfix]
static void PrefabPostfix(ref ZNetScene __instance)
{
GameObject wishbonePrefab = __instance.GetPrefab("Wishbone");
CustomSlotManager.ApplyCustomSlotItem(wishbonePrefab, "wishbone");
}
OR:
Add the MonoBehaviour to your asset so that it'll be loaded with the component already attached.
Here is a list of predefined slot name values that may be used:
If your desired slot name is not listed please use a brief camelcased name and contact me so that I can add it here.
If you are installing this manually, do the following
plugins folder into <GameDirectory>\Bepinex\plugins.