t0stiman 9f3e043e9a | ||
---|---|---|
ItemBundleBuilder | ||
items/Blahaj | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.MD | ||
info.json | ||
package.ps1 | ||
repository.json | ||
screenshot.png |
README.MD
Blåhaj
This mod adds Blåhaj to Derail Valley.
How to install
- install Unity Mod Manager(UMM)
- install Custom Item Mod
- download this mods zip from the Releases tab and manually extract into DV's mod folder
After installing, you can buy the item in the shops.
How to create your own custom item
You can use this project as an example. In a nutshell, these are the steps you need to take:
- Download this repository.
- The
ItemBundleBuilder
folder is a Unity project. Open it with Unity Hub. - Replace the assets with your own.
- Open
Assets/DontBuildThis/SampleScene
. - Click on the
Script
object. - In the inspector -> Bundle Builder, fill in a bundle name and set the export folder to
<your mod folder>/items/Blahaj/
. - Click the button to build the asset bundle. Note: files in the
DontBuildThis
folder will not be included in the bundle. - Edit
<your mod folder>/items/Blahaj/item_info.json
to your liking.
Name = the name of your custom item
Description = description of the item (shown in the shops)
Amount = How many of this item the player can buy. If they buy this amount, the item will be out of stock.
Price = price in DV dollars
AssetBundleName = name of the asset bundle (from step 6)
PrefabPath = path to the prefab of the item
IconStandardPath = Path to the standard icon. This will be the icon of the item in the players inventory.
IconDroppedPath = Path to the dropped icon. This icon will be shown in your inventory when you've dropped the item. For vanilla game items, this is a blue (#72A2B3) silhouette of the item.
- Go to
<your mod folder>/items
and rename theBlahaj
folder to the name of your item (doesn't have to be an exact match). - To copy the required files to DV's mod folder, you can use the
package.ps1
PowerShell script. Before you execute it, set your DV installation folder in the first line of the script.
If you don't know how to use PowerShell, you can also manually copy the files over. Just replicate the file structure of this mods zip.
Credits
"Blahaj" (https://skfb.ly/oGwQt) by Kaine_G is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).