Skip to content
e99999 edited this page Dec 18, 2019 · 7 revisions

GT Classic has support for CraftTweaker adding and removing, here some examples:


Industrial Centrifuge

Class

import mods.gtclassic.IndustrialCentrifuge;

Method

/*
 * Arguments: output, input1, input2, totalEu
 *   - IItemStack[] output
 *   - IIngredient input1
 *   - IIngredient input2    - Can be omitted
 *   - int totalEu           - Can be omitted-will default to 3200 if so. Also must be greater then 0
 */
IndustrialCentrifuge.addRecipe([<minecraft:diamond_block>, <minecraft:diamond>], <minecraft:dirt> * 64, <minecraft:grass> * 64, 6400);
IndustrialCentrifuge.addRecipe([<minecraft:diamond_block>, <minecraft:diamond>], <minecraft:dirt> * 64, 6400);
/*
 * Adds Recipe that takes empty glass tubes as the second input.
 * Arguments: output, input1, cells, totalEu
 *   - IItemStack[] output
 *   - IIngredient input1
 *   - int cells             - Must be greater then 0.
 *   - int totalEu           - Can be omitted-will default to 3200 if so. Also must be greater then 0
 */
IndustrialCentrifuge.addCellRecipe([<minecraft:diamond_block>, <minecraft:diamond>], <minecraft:dirt> * 64, 6400);
IndustrialCentrifuge.addCellRecipe([<minecraft:diamond_block>, <minecraft:diamond>], <minecraft:dirt> * 64);

Fusion Reactor

Class

import mods.gtclassic.FusionReactor;

Method

/*
 * Arguments: output, input1, input2, totalEu
 *   - IItemStack output
 *   - IIngredient input1
 *   - IIngredient input2    
 *   - int totalEu           - Must be greater then 0.
 */
FusionReactor.addRecipe(<minecraft:diamond>, <minecraft:dirt> * 64, <minecraft:grass> * 64, 640000);

Matter Fabricator

Class

import mods.gtclassic.MatterFab;

Method

/*
 * Arguments: input, amplifier
 *   - IIngredient input   
 *   - int amplifier       - This value represents the Eu cost to consume the input, as well as its value as an amplifier
 */
MatterFab.addRecipe(<minecraft:diamond>, 640000);

Clone this wiki locally