[EH Class] How to add value attributes to an item [EH] Ecohelper Minecraft Game

How to modify and add custom exchange items

Many yuba/players may modify the original convertible items (default emerald) when using this MOD. The module uses the RECIPES system to store the value attribute by default, and loaded it through the data packet format.Here are how to modify and add new items value attributes.

First of all, we open the module in a compressed package format. At this time, you should see this format:

Go to the ./data/ecohelper/recipes/tradable_item folder in the module directory. At this time, you will see the file as shown in the figure below:

If you want to modify the value attribute of the emerald, double -click "EMERALD.JSON"; if you want to delete the value attribute of the emerald, check the title of the next chapter; if you want to increase the value attribute of the new item, see the fifth point.

Double -click "Emerald.json", you should see the structure shown in the figure below: Among them, "Type" is the synthetic formula defined by the module: ecohelper: tradable_item, which is used to define and recognize whether the item has value attributes.The store system that depends on the module IRCIPES category requires this label, please do not modify it.

Among them, the "Item" under "Ingredient" is the identifier of the item that needs to define the value attribute. The default is the emerald. Do not modify the original own. If there is a need to add the value attributes of new itemsEssence

Among them, the "Worth" attribute defines the value of the items above, and the default is 10.Please modify it according to your own situation. If you modify this value, please modify the default_balance_unit_worth value in the config (see another tutorial for details -detailed explanation of the Ecohelper configuration file).

Add new items value attributes: Please create a new JSON file in the same level of "EMERALD.JSON". The file name is your item name (cannot be Chinese, it is best to use MC's recognized item identification information), and then open this to open thisJSON file, copy the things in "EMERALD.JSON" to copy it to the new JSON file.

Among them, you need to modify "Item" and "Worth" under "Ingredient"."Item" is a recognized item identifier that has just been found, such as "Minecraft: Diamond", "Alexmobs: Ancient_ore" and so on.The "word" is the same as the method of modifying the emerald above. It is used to define the value of this new item and modify it according to its own situation.

Don't forget to save it in the compressed package!

At this time, restart your game and server, you should see a small gold coin icon in the Lore of the new item, which labeled the value information you set later.

Delete the default emerald

The value attribute of deleting emerald is more troublesome. It is strongly recommended not to delete it. If you want to delete, please follow the tutorial:

First, delete the "EMERALD.JSON" file in the module packet

If you want to close the item exchange mechanism, go to the configuration file and set the default_balance_unit to "Minecraft: Air".

If you want to replace the emerald with other items, check out how to add new items value attributes above, and create a new JSON file to add.After the addition is completed, set the default_balance_unit of the configuration file to the identifier of the newly -built items.

At the same time, modify the default_balance_unit_worth to the value of the configuration file to the value of just new items.