MuckApi
A Api For Muck With Working Items And Commands
About this mod Author’s original text
Muck Api
A Working API for all things muck
Features
Commands
Custom Items
Add as a Dependency
then in your Main.cs define undeer
[BepInPlugin(GUID, MODNAME, VERSION)]
add
[BepInDependency("MuckApiGithub_MuckApi")]
Custom Items: How To Use
Create a unity asset bundle then drag it into your project then you can do this
MuckApi.Main.LoadAllItemsFromResoruce("asset_bundle_filename", Assembly.GetExecutingAssembly())
this creates an item for each scriptable object in that asset bundle
How To Create a Asset Bundle:
comming soon
Commands: How To Use
to use it create a method of what you want to run useing this template for your method
public static bool Template(string message)
{
var MessageArgs = message.Substring(1).Split(' ');
ChatBox Chat = ChatBox.Instance;
//Code Goes Here
return true;
}
to add commands to be registered in your main.cs under Start() do the following
MuckApi.Main.AddChatCommand("", new Func());
or
MuckApi.Main.AddChatCommand("", "", new Func());
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: