Minecraft MOD Register items in Ore dictionary [1.10.2/1.12.2]

TOP > Tutorial listRegister items in Ore dictionary [1.10.2/1.12.2]


posted 15 May 2018

This time is a tutorial on how to register items to be added in your MOD to Ore dictionary.

Ore dictionary is a mechanism used to share material items added by Mod, such as Copper, Silver and Sapphire.

 

1. How the Ore dictionary works

In Ore dictionary, the naming rule of the material name is decided as follows.

・Ore・・・oreCopper、oreTungsten、oreUranium
・Ingot・・・ingotPlatinum、ingotSilver、ingotTin
・Nugget・・・nuggetCopper、nuggetTin、nuggetPlatinum
・Jewel・・・gemGreenSapphire、gemSapphire、gemRuby

By linking these material names of Ore dictionary and items to be added by your MOD, the ore dictionary attempts to share the items.

For material names in Ore dictionary, please refer to Forge Ore Dictionary List and Use of ore dictionary.

 

2. Register items in Ore dictionary

ChinjufuMod also registers Aluminum and Bauxite ore in Ore dictionary using the following 2 classes.

OreDictionaryHandler.java

By writing 【OreDictionary.registerOre (“Material name”, Item);】, I link the material name of Ore dictionary with the item.

 

ChinjufuMod.java

By calling up the contents registered in OreDictionaryHandler.java, you can link it with the item of your MOD and the material name of Ore dictionary.

 

Summary

This time, I explained how to register the material items prepared by your MOD into Ore dictionary.

However, Ore dictionary is a mechanism to share material items. Therefore, if you prepare a recipe using Ore dictionary, you can also make recipes that use material items not added in your MOD.

If the ore MOD you like is compatible with Ore dictionary, you can do it in cooperation with that MOD without making material items with your MOD. How you think about cooperation with other MOD depends on the creator. But, it is good to remember that there are such options.

By the way, I have been watching the MOD that development stops whenever Minecraft advances updates. So, on the premise of preparing including material items, I am making ChinjufuMod.


このチュートリアルは参考になりましたか? シェアはこちらをご利用ください。
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 を使っています。コメントデータの処理方法の詳細はこちらをご覧ください