-
Notifications
You must be signed in to change notification settings - Fork 0
Adding your first item
Heres the tutorial for adding your first item!
It is highly encourged to check out these pages before continuing!
We will start with the dataside of your mod. In any folder of your mod, add a new json. The json's name can be anything, but I typically set it to the item's name for simplicity.

First, Lets add in the following values to this json:
"internalname", which in this case i will be calling "examplyitem"
"displayname", which for this example i will be setting to "Example-like item"
"bulletdamage", which i will set to {"damage":3}
then finally
"recipedata", which i will be putting as {"def:furnace":"def:copper"}
In this example, exampleyitem will go into a default furnace then turn into default copper

In any folder, add this png to your mod. Feel free to change it however you see fit, or make your completely own texture. Proper Spriting has sources you can take from to help you create!


Now that you have your image imported, simply rename the image to the internalname in the json. So in this example, it would be "examplyitem".

But wait, if you think about it, we have nothing that turns into our new examplyitem! So we will need to overwrite a recipe to create this new item.
In this tutorial we will have it so when wood goes into a furnace, rather than making charcoal it makes examplyitem.
Inside of your recipedata value, add "def:wood":{}

Anything thats inside of that {} will replace that item for wood. So to replace the furnace recipe, we simply add "def:furnace":"examplyitem"

You added your item!
