ZYCraft

ZYCraft

2M Downloads

1.16.4 Suggestion add tags to make compatible

Staegrin opened this issue ยท 2 comments

commented

Maby add the forge:ingots/aluminum and forge:ingots/aluminium to the aluminium produced from smelting aluminium ore. Also allow other mods' aluminium to be used in zycraft recipes.

Thanks for all the hard work.

commented

If you install CraftTweaker and CreateTweaker, you can put the following script in the "scripts" folder to add aluminium support for the crushing wheels:

import mods.create.CrushingManager;
import mods.create.SplashingManager;

// Create ore processing for Zycraft Alumin(i)um

recipetype:create:crushing.addRecipe( "crushing_zycraft_aluminium",
[ item:create:crushed_aluminum_ore, item:create:crushed_aluminum_ore % 75,
item:create:crushed_aluminum_ore % 50, item:create:experience_nugget % 75 ],
item:zycraft:aluminium_ore, 200 );

recipetype:create:splashing.addRecipe( "wash_crushed_aluminum",
[ item:zycraft:aluminium, item:zycraft:aluminium % 10 ],
item:create:crushed_aluminum_ore, 200 );

furnace.addRecipe( "smelt_crushed_aluminum", item:zycraft:aluminium,
item:create:crushed_aluminum_ore, 1.0, 200 );

commented

Leaving a script for KubeJS to add aluminum tags here:

onEvent('item.tags', e => {
    console.info("Item Tags Event: Updating ZYCAluminum Tags...");
    e.add("forge:ingots", "zycraft:aluminium");
    e.add("forge:ingots/aluminium", "zycraft:aluminium");
    e.add("forge:ingots/aluminum", "zycraft:aluminium");
    console.info("ZYC Tags fix success!");
});

onEvent('recipes', e => {
    console.info("Recipes Event: Updating ZYC Crafting Recipes...");
    e.replaceInput({}, 'zycraft:aluminium', '#forge:ingots/aluminum');
    console.info("ZYC Recipes fix success!");
});

And here is a general CraftTweaker script to do the same thing:

import crafttweaker.api.recipe.Replacer;

println("Replacing ZYC Aluminum in recipes with Forge Aluminum oredicts...");
Replacer.forEverything().replace(<item:zycraft:aluminium>, <tag:items:forge:ingots/aluminum>).execute();
println("Replace complete!");

println("Adding tags to ZYC Aluminum...");
<tag:items:forge:ingots>.add(<item:zycraft:aluminium>);
<tag:items:forge:ingots/aluminium>.add(<item:zycraft:aluminium>);
<tag:items:forge:ingots/aluminum>.add(<item:zycraft:aluminium>);
println("Aluminum tags applied!");