Hello everyone again! I have found a solution to the problem, even though it’s long and tedious, it does work. First, you need to install
CraftTweaker. I will demonstrate the solution using the example of adding 5 sockets to the Supremium Helmet. The overall solution to the task will consist of two parts: creating a new crafting recipe and removing the old one.
==============================================================================================
If you have the
EasyTweaker mod, the first part will be easier:
In a creative test world, give yourself a command block.
Enter the following command:
give <YourNickName> <minecraft_mod_name>:<item_name>{affix_data:{sockets:number_of_sockets}} 1
In my case, it is:
give ItsMeReally mysticalagriculture:supremium_helmet{affix_data:{sockets:5}} 1
Using the
Recipe Manager item from the EasyTweaker mod, add the crafting recipe:
Place the crafting recipe (you can use the same one as in the original mod)
Left Switch must be turned on! This is what makes each item contain tags responsible for the presence and number of sockets.
Down Switch is optional.
Set Right Switch to position “addition mode”.
Click Add recipe.
==============================================================================================
If you don’t have the
EasyTweaker mod, then find the “scripts” folder in the version folder and create a file with a “.zs” extension there.
Open it using Notepad or another text editor (Sublime Text, Notepad++, etc.).
Insert the following line:
craftingTable.addShaped("<Name_Of_Craft>", <item:minecraft_mod_name:item_name>.withTag({Damage:0,affix_data:{sockets:number_of_sockets}}) * 1, [recipe_of_item]);
For my example:
craftingTable.addShaped("item_mysticalagriculture_supremium_helmet", <item:mysticalagriculture:supremium_helmet>.withTag({Damage:0,affix_data:{sockets:5}}) * 1, [[<item:minecraft:air>, <item:mysticalagriculture:supremium_gemstone>, <item:minecraft:air>], [<item:mysticalagriculture:supremium_ingot>, <item:mysticalagriculture:imperium_helmet>, <item:mysticalagriculture:supremium_ingot>], [<item:minecraft:air>, <item:mysticalagriculture:supremium_gemstone>, <item:minecraft:air>]]);
==============================================================================================
After adding the new crafting recipe, it is necessary to remove the old one.
Sometimes you can remove the recipe through the same
EasyTweaker. To do this, place the item that is the result of crafting in the output slot, set Right Switch to position “remove mode”, set Down Switch to “Off”, and click
Add recipe.
However, this method may not work for every mod (for the
Mystical Agriculture mod, the quick removal method does not work), so there is a more reliable option:
In
JEI, check the crafting recipe name of the item from the mod itself.
craftingTable.removeByName("Recipe_ID_From_JEI");==============================================================================================
That’s it! Now every time you craft the item, it will contain tags that provide sockets for gems from the
Apotheosis mod.
Thank you for your attention!