{"id":22216688,"url":"https://github.com/digitalroot-valheim/digitalroot.custommonobehaviours","last_synced_at":"2026-04-28T20:36:36.314Z","repository":{"id":69395213,"uuid":"388686259","full_name":"Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours","owner":"Digitalroot-Valheim","description":"Digitalroot Custom Mono Behaviours (CMB)","archived":false,"fork":false,"pushed_at":"2022-12-11T01:08:33.000Z","size":16335,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T07:14:01.359Z","etag":null,"topics":["nuget-package","valheim","valheim-mod"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Digitalroot-Valheim.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Digitalroot-Technologies","custom":"https://www.buymeacoffee.com/digitalroot"}},"created_at":"2021-07-23T05:20:49.000Z","updated_at":"2021-11-15T04:47:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"791aac4f-4864-4155-83b2-00675a61adbf","html_url":"https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"Digitalroot-Valheim/Digitalroot.Valheim.ModRepoTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digitalroot-Valheim%2FDigitalroot.CustomMonoBehaviours","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digitalroot-Valheim%2FDigitalroot.CustomMonoBehaviours/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digitalroot-Valheim%2FDigitalroot.CustomMonoBehaviours/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digitalroot-Valheim%2FDigitalroot.CustomMonoBehaviours/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Digitalroot-Valheim","download_url":"https://codeload.github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245414551,"owners_count":20611367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuget-package","valheim","valheim-mod"],"created_at":"2024-12-02T22:13:00.030Z","updated_at":"2026-04-28T20:36:36.285Z","avatar_url":"https://github.com/Digitalroot-Valheim.png","language":"C#","funding_links":["https://github.com/sponsors/Digitalroot-Technologies","https://www.buymeacoffee.com/digitalroot"],"categories":[],"sub_categories":[],"readme":"﻿[![Build](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/builder.yml/badge.svg)](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/builder.yml)\n[![NuGet Package](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/publish.yml/badge.svg)](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/publish.yml)\n[![Release Drafter](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/drafter.yml/badge.svg)](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/actions/workflows/drafter.yml)\n\n# Digitalroot's Custom MonoBehaviours (CMB)\n\nThis repository is trying to answer the question. How do I get custom `MonoBehaviour`s out of Unity and into Valheim? \n\n## License\n:heavy_dollar_sign: Closed-source license is available for commercial or personal use.\n\n### :warning: WARNING :warning:\n- **Upload permission:** You are not allowed to upload any files in this repository to other sites under any circumstances.  \n- **Asset use permission:** You are not allowed to use any of the assets; Unity assets, image files, and icon file, in this repository under any circumstances.    \n\n### Open Source License\n- Is your code private, closed-source, or proprietary?\n- Do you charge money to use your code?\n- Is your code **not** compatable with **GNU Affero General Public License v3.0**?\n\n:exclamation: If you answered **YES** to any of the above, you must acquire a Closed-source license. :exclamation:\n\n:page_with_curl: If you answered **NO** to all the above questions. You may:\n- Direct your users to download the DLL from the GitHub [Releases](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/releases) page.\n- Direct your users to download the DLL from the [nexusmods.com](https://www.nexusmods.com/valheim/mods/1401) page.\n\n#### :man_judge: Exemptions :woman_judge:\n- 1st Exemption: You may [IL Weave](https://michielsioen.be/2017-10-21-il-weaving/) the DLL into your own DLL, if, and only if, you meet the requirements for the [Open Source License](#open-source-license) and you include, in your **ReadMe** file and **Main page** for downloading your code, one of the following [statements](#statements) in clear readable font at 12pt or higher. Take a look at [ILMerge.Fody](https://github.com/tom-englert/ILMerge.Fody) for your IL Weaving needs.\n\n- 2nd Exemption: You may include the DLL as part of a collection of DLLs aka **Mod Packs**, if, and only if, you meet the requirements for the [Open Source License](#open-source-license) and you include, in your **ReadMe** file and **Main page** for downloading your collection, one of the following [statements](#statements) in clear readable font at 12pt or higher.\n\n###### Statements \n\nHTML  \n```html\nUses \u003ca href=\"https://tinyurl.com/drcmbs\"\u003eDigitalroot's Custom MonoBehaviours\u003c/a\u003e \n```\nMarkdown  \n```markdown\nUses [Digitalroot's Custom MonoBehaviours](https://tinyurl.com/drcmbs)\n```\nText  \n```\nUses Digitalroot's Custom MonoBehaviours - https://tinyurl.com/drcmbs\n```\n\n## TL:DR Documentation\n\nTell the `RepositoryLoader` to load your DLL. I put this in `Awake`\n\n```c#\nRepositoryLoader.LoadAssembly(\"Digitalroot.CMB.Repository.dll\");\n```\n\nLater when loading your asset, attach your CMB to the `GameObject`\n\n```c#\nDebug.Log(\"Loading Wizard\");\nvar wizardAssetBundle = Jotunn.Utils.AssetUtils.LoadAssetBundleFromResources(\"wizard\", Assembly.GetExecutingAssembly());\nvar wizard = wizardAssetBundle.LoadAsset\u003cGameObject\u003e(\"Wizard\");\nwizard.AddMonoBehaviour(\"CMB_SpinClockwise\"); // Loaded from Digitalroot.CMB.Repository.dll\nJotunn.Managers.PrefabManager.Instance.AddPrefab(wizard);\nwizardAssetBundle.Unload(false);\n```\n\n[Full Example](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/blob/main/src/Digitalroot.CustomMonoBehaviours.Example/Main.cs)\n\n## Documentation\nCheck out the [Wiki](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/wiki)\n\n## Installation\nThere are a few choices for installation:\n1. Install the NuGet package via dotnet cli. `dotnet add PROJECT package Digitalroot.CustomMonoBehaviours`\n1. Install the NuGet package via Package Manager. `PM\u003e` `Install-Package Digitalroot.CustomMonoBehaviours`\n1.  For projects that support PackageReference, copy this XML node into the project file to reference the package. \u003cbr /\u003e`\u003cPackageReference Include=\"Digitalroot.CustomMonoBehaviours\" Version=\"1.0.*\" /\u003e`\n1. Download the [NuGet Package](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/packages/912070) from GitHub.\n1. Download the DLL from the GitHub [Releases](https://github.com/Digitalroot-Valheim/Digitalroot.CustomMonoBehaviours/releases) page.\n\n## Thanks to \n- [Digitalroot](https://github.com/Digitalroot)\n- [sbtoonz](https://github.com/sbtoonz)\n- The [๖̶̶̶ζ͜͡Odin Plus Team)](https://discord.gg/BHbTumqG7U) Discord community. \n- The [Valheim Discord](https://discord.gg/GUEBuCuAMz) community.\n\n![OdinPlus](https://raw.githubusercontent.com/Digitalroot-Valheim/OdinPlusRemakeJVL/Update/img/OdinTeamHighRezNuGet.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalroot-valheim%2Fdigitalroot.custommonobehaviours","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalroot-valheim%2Fdigitalroot.custommonobehaviours","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalroot-valheim%2Fdigitalroot.custommonobehaviours/lists"}