Modding:Content Tutorial Simple Item: Difference between revisions
m (Going further section.) |
m (More going further...) |
||
Line 39: | Line 39: | ||
Want to make some additional changes to this mod? Try and achieve the following things! | Want to make some additional changes to this mod? Try and achieve the following things! | ||
==== Change the color of the wand ==== | |||
{| class="wikitable mw-collapsible mw-collapsed" | |||
!To achieve this... | |||
|- | |||
!Modify the simplewand.png texture to a different color. | |||
|} | |||
{| class="mw-collapsible mw-collapsed" | ==== Change your modid and domain to something else ==== | ||
{| class="wikitable mw-collapsible mw-collapsed" | |||
!To achieve this... | !To achieve this... | ||
|- | |- | ||
!Modify the | !Modify both the modid entry in modinfo.json, and change the name of the 'simpleitem' folder in 'assets'. | ||
|} | |} | ||
==== Rename your 'Simple Wand' ==== | |||
{| | |||
!To achieve this... | |||
|- | |||
!Change the entry for simplewand in your en.json lang file. | |||
|} | |||
==== Create another wand of different color ==== | |||
{| | {| | ||
!To achieve this... | !To achieve this... | ||
|- | |- | ||
! | !Create a copy of the texture with a different name and color, and a duplicate itemtype file. In the new itemtype file, change the item code and change the texture property to your new texture path. Don't forget to add new lang translation entries! | ||
|} | |} | ||
Revision as of 16:34, 21 March 2024
This page was last verified for Vintage Story version 1.19.4.
Introduction
Objective
In this tutorial, you will create an item - A simple wand! Although this item will have no real functionality, it will demonstrate how to create assets in json, as well as how to use shapes, textures, and lang files.
Assets
Before starting, it is recommended you download the workspace and assets for this tutorial. The completed files can also be found here.
This tutorial starts with the following assets:
- Mod Setup & Folder Structure
- Empty item file
- Template lang file
- Item shape file
- Item texture file
Prerequisites
This tutorial will assume you understand the following topics:
Using the downloaded workspace, have a look at the files that currently exist.
- modinfo.json - The mod info file, which registers your mod with the ID 'simpleitem'.
- modicon.png - The mod icon file, which will be displayed on the mod manager menu.
- assets/simpleitem/itemtypes/simplewand.json - An empty file, this is where you shall put the code for your item.
- assets/simpleitem/lang/en.json - A sample language file, which is where you will add your translation values.
- assets/simpleitem/shapes/item/simplewand.json - A shape file for the wand.
- assets/simpleitem/textures/item/simplewand.png - A texture file for the wand.
Going Further...
Want to make some additional changes to this mod? Try and achieve the following things!
Change the color of the wand
To achieve this... |
---|
Modify the simplewand.png texture to a different color. |
Change your modid and domain to something else
To achieve this... |
---|
Modify both the modid entry in modinfo.json, and change the name of the 'simpleitem' folder in 'assets'. |
Rename your 'Simple Wand'
To achieve this... |
---|
Change the entry for simplewand in your en.json lang file. |
Create another wand of different color
To achieve this... |
---|
Create a copy of the texture with a different name and color, and a duplicate itemtype file. In the new itemtype file, change the item code and change the texture property to your new texture path. Don't forget to add new lang translation entries! |
Conclusion
Congratulations, you have now (created your first item...)! This tutorial should have given you some understanding of (blah blah blah).
Next Steps...
Try out the next tutorial, (link). This will show you how to create a (...)!
Content Modding | |||||||||
---|---|---|---|---|---|---|---|---|---|
Basics | Content Mods • Developing a Content Mod | ||||||||
Tutorials |
|
||||||||
Concepts | Modding Concepts • Variants • Domains • Patching • Remapping • World Properties | ||||||||
Uncategorized |
|
Wondering where some links have gone?
The modding navbox is going through some changes! Check out Navigation Box Updates for more info and help finding specific pages.
Modding | |
---|---|
Modding Introduction | Getting Started • Theme Pack |
Content Modding | Content Mods • Developing a Content Mod • Basic Tutorials • Intermediate Tutorials • Advanced Tutorials • Content Mod Concepts |
Code Modding | Code Mods • Setting up your Development Environment |
Property Overview | Item • Entity • Block • Block Behaviors • Block Classes • Block Entities • Block Entity Behaviors • World properties |
Workflows & Infrastructure | Modding Efficiency Tips • Mod-engine compatibility • Mod Extensibility • VS Engine |
Additional Resources | Community Resources • Modding API Updates • Programming Languages • List of server commands • List of client commands • Client startup parameters • Server startup parameters Example Mods • API Docs • GitHub Repository |