Skip to content

Adding your first item

Kaplin86 edited this page Aug 6, 2024 · 1 revision

Heres the tutorial for adding your first item!

PREREQUISITES

It is highly encourged to check out these pages before continuing!

Dataside

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.

image

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

image

Visualside

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!

ExampleItem

image

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".

image

Overwriting recipes

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":{}

image

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

image

Congrats!

You added your item!

image

Clone this wiki locally