Minecraft MOD Add Custom Items for 1.10.2

TOP > Tutorial list > Minecraft MOD Add Customs Item for 1.10.2


updated 27 April 2018 – posted 15 April 2018

This time is MOD production tutorial for Minecraft JE version 1.10.2.

About the method of adding items, I will explain while watching the source of Chinjufu MOD.

There are two kinds of items of Minecraft.

・Items with Class · · · Pickle and Sword etc.
・Items without Class · · · Wood sticks and Ingots etc.

For each additional method, I will explain the items separately.

There are points to note about the source posted in the link in the article. In order to avoid confusion of explanation, I deleted unnecessary sources.

The source of Chinjufu MOD is released on GitHub. If you are interested please visit there.

 

1. Add an Item with Class

First of all, let’s take a tutorial about adding an item that has a class (= design drawing of an item etc). I use ‘CHAWAN’ of CHinjufu MOD as an example.

 

1-1. Classes relationship and link to each source

In ChinjufuMod[1.10.2], the classes for adding items are divided for each role. Each classes make relationship like the image like by using reference.

The source is on the links of the image map. Recommend maximize the window.

Add an Item with Class 1.10.2

Reference.java ChinjufuMod.java CommonProxy.java ClientProxy.java RecipeHandler.java CraftingTTimeItems.java TTimeItems.java ItemChawan.java

 

1-2. 8 sheets is a results of division for each role

The roles of each class are as follows.

ChinjufuMod.java Create an instance of Mod
Reference.java Management of frequently referenced values
CommonProxy.java Processing on server
ClientProxy.java Processing on client
TTimeItems.java Manage item registration
ItemChawan.java Design of individual item
RecipeHandler.java Manage recipes
CraftingTTimeItems.java Design of individual recipe

First time Minecraft MOD producer may think that “Do you use 8 sheets?”. Also, if you want to do so, it is also possible to combine it into one sheet.

However, if you think about adding some items, it is easier to divide the class for each role.

 

2. Add some Items

Next, there is a tutorial when there are multiple items to be added.

‘CHAWAN’ of the Chinjufu MOD burns ‘Modeled clay_CHAWAN’ and makes it. So, I will add ‘Modeled clay_CHAWAN’ here.

 

2-1. Classes relationship and link to each source

When you add some items, the relationship of the classes looks like the image in ChinjufuMod[1.10.2].

The source is on the links of the image map. Recommend maximize the window.

Add some Items 1.10.2

Reference.java ChinjufuMod.java CommonProxy.java ClientProxy.java RecipeHandler.java CraftingTTimeItems.java TTimeItems.java ItemChawan.java ItemClay_Chawan.java

If you divide the class for each role in advance, only the 3 classes that changed red when new items are added. You do not have to touch others.

On the other hand, If you do not use references, you will need to write duplicate code in each classes.

 

3. Add an Item without Class

Next, let’s take a tutorial about adding an item without a class (= design drawing of an item etc). I use ‘Flour(KOMUGI)’ of Chinjufu MOD as an example.

 

3-1. Classes relationship and link to each source

In ChinjufuMod[1.10.2], the classes for adding items are divided for each role. Each classes make relationship like the image by using reference.

The source is on the links of the image map. Recommend maximize the window.

Add an Item without Class 1.10.2

 

Reference.java ChinjufuMod.java CommonProxy.java ClientProxy.java RecipeHandler.java CraftingTTimeItems.java TTimeItems.java

 

Summary

If you do a test after the tutorial so far, it should be like a image.

Add some items Test 1.10.2

It is purple because it does not touch resources (such as texture or item name). However, if items can be added, they are displayed like a image.

Java is a programming language that avoids rewriting duplicate sources by using file references. If you are planning to add some items, I recommend that you divide the class for each role.


このチュートリアルは参考になりましたか? シェアはこちらをご利用ください。
Was this tutorial helpful? Please use here for market share.

当サイトは年間6,480円のサーバー代がかかるため、投げ銭をしてもらえると助かります。
This site costs 6,480 yen per year for server fee. It will be helpful if you make a donation.

Bitcoinで投げ銭をする Bitcoin donations

¥
Personal Info

Terms

Donation Total: ¥100

MONAで投げ銭をする MONA donations
MONAで投げ銭をする MONA donations. tipmonaとは?

コメントを残す

メールアドレスが公開されることはありません。

コメント

お名前

ウェブサイトURL

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください