How would I make a mod for Vallheim that made it so that you had a skill level threshold you couldn't go under when you died.   Otherwise you would loose levels as normal when you died.   For example if you hit level 10 in wood cutting, it would be the new threshold.   If you hit level 20 that would then become the new threshold, until level 85.
To create a mod for Valheim that implements a skill level threshold upon death, you will need to do the following:

1. Install the Valheim modding framework, BepInEx. You can find instructions on how to do this on the BepInEx website.

2. Create a new mod project in Visual Studio or another IDE of your choice.

3. In your mod's code, you will need to hook into the game's death event and check the player's skill levels. If the player's skill levels are above the current threshold, then set the new threshold to the current level.

4. When the player respawns, check their skill levels again. If any of their skill levels are below the current threshold, then reset them to the current threshold.

Here is some sample code that demonstrates how to implement this functionality:
```
using BepInEx;
using HarmonyLib;

namespace ValheimSkillThresholdMod
{
    [BepInPlugin(com.example.skillthresholdmod, Skill Threshold Mod, 1.0.0)]
    public class SkillThresholdMod : BaseUnityPlugin
    {
        private static int _skillThreshold = 10; // Initial skill threshold of 10

        private void Awake()
        {
            // Hook into the game's death event
            Harmony.CreateAndPatchAll(typeof(SkillThresholdMod));
        }

        [HarmonyPatch(typeof(Player), OnDeath)]
        public static void OnPlayerDeath(Player __instance)
        {
            // Check the player's skill levels
            foreach (KeyValuePair<Skills.SkillType, Skills.Skill> entry in __instance.GetSkills().m_skills)
            {
                if (entry.Value.m_level >= _skillThreshold)
                {
                    // Set the new skill threshold to the current skill level
                    _skillThreshold = entry.Value.m_level + 1;
                }
            }
        }

        [HarmonyPatch(typeof(Player), OnSpawned)]
        public static void OnPlayerRespawn(Player __instance)
        {
            // Check the player's skill levels
            foreach (KeyValuePair<Skills.SkillType, Skills.Skill> entry in __instance.GetSkills().m_skills)
            {
                if (entry.Value.m_level < _skillThreshold)
                {
                    // Reset the skill level to the current skill threshold
                    entry.Value.m_level = _skillThreshold;
                }
            }
        }
    }
}
```
Note that this is just a basic example and you may need to customize it further based on your specific needs and the structure of the Valheim code. Additionally, you will need to build and install the mod to test it in the game.
How do I build and install the mod to test it?