Content Tool Tutorial ‐ Create New Definition - FlansMods/FlansModReloaded GitHub Wiki
Requirements
Create a Unity .asset
Open your Unity Project.
Open the Project window (Ctrl+5).
Navigate to "Assets\Content Packs{your pack id}".
Depending on the type of content you want to make, create or enter the approriate subfolder, such as "guns", "attachments" or "magazines".
Right-click in the folder and select "Create -> Flans Mod -> GunDefinition" or whichever definition type you want to make.
Name the gun, using Minecraft ID naming conventions.
Edit the Definition
Left-click on your new {definition_id}.asset you made.
This should open the Inspector window in Unity.
From here, you can change all the variables for this definition.
Some things will be strings, some numbers, and some arrays, where you can add any number of child objects.
For help with the Unity inspector, you can check out Explore the Unity Editor.
At present, default Definitions have NO data in them, this means that guns won't fire and vehicles won't do anything. Templates and wizards are coming soon. As a workaround, you can get a copy of another pack and duplicate assets from there with Ctrl+D.
Definition Specifics
Type | Guide |
---|---|
Attachments | Creating Content - Attachments |
Bullets | Creating Content - Bullets |
Guns | Creating Content - Guns |
Magazines | Creating Content - Magazines |
Materials | Creating Content - Materials |
NPCs | Creating Content - NPCs |
Parts | Creating Content - Parts |
Traits | Creating Content - Traits |