Making Custom Onions
Updated 6 hours agoImportant: You need to have at least some basic knowledge of Unity.
Custom onions and custom pikmin types do not necessarily need to be in different .lethalmin bundles.
Unity Set-up
- Download the Lethal Company Unity Project Template from here or here.
- To fix the reference errors, follow the DLL instructions from here.
- Download the LethalMin.dll file and import it into Unity.
- IMPORTANT: With the LethalMin.dll selected in Unity, uncheck "Validate References" in the inspector to remove the reference errors.
- In Unity create a new folder.
- With the folder selected, go to AssetBundle and create a new one. Name it something like "MyOnion.lethalmin".
- Open the folder and right click in it. Click {Create -> Lethalmin -> OnionType}
Basic Onion Set-up
The Onion's Texture/Material do not need to be filled out.
- Set the Onion's Color
- Input the TypeName
- Important, add the pikmin types you want to be held in the onion to TypeCanHold.
- Check "SpawnInAsItem" Unless you want to program in a special way for your onion to be obtained.
- Go to the PikminTypes you set in TypesCanHold and set their target onion to your custom onion.
Onion Fuse Rules
- Open the Onion's folder and right click in it. Click {Create -> Lethalmin -> OnionFuseRules}
- Input the custom onions you want to fuse in to the CompatibleOnions array.
Building
- After setting up your Onion type, go to the Unity Package Manager and install this with the git URL: "https://github.com/Unity-Technologies/AssetBundles-Browser.git"
- Go to the AssetBundles window and look at the Configure tab to make sure everything is okay.
- Then go to the Build tab and build the AssetBundle.
- When built, take your asset bundle file and put it in the BepInEx plugins folder. Make sure it has the .lethalmin file extension.
- Then run the game, and depending on your spawn variables, your Onion should start spawning in the game!
- If you have multiple onions with their FuseRules set up, then when the ship leaves, the onions should fuse when they land again.