Difference between revisions of "Mods:IC2 Support"
From MineTweaker 3
Line 1: | Line 1: | ||
− | ''NOTICE: | + | ''NOTICE: This page uses the 1.7.2 item names'' |
+ | ''NOTICE: The canner has not yet been tested. Adjust this message if you tried its recipes. | ||
IC2 support enables addition of recipes for IC2 machines. | IC2 support enables addition of recipes for IC2 machines. | ||
− | NOTE: | + | NOTE: recipes for these machines cannot reload. Once added, you need to restart Minecraft to undo them. |
+ | |||
+ | == Crafting with electric items == | ||
+ | |||
+ | You can use and discharge IC2 tools in crafting recipes. For example: | ||
+ | |||
+ | val chainsaw = <IC2:itemToolChainsaw>.anyDamage(); | ||
+ | recipes.addShapeless(<minecraft:stick> * 3, [<ore:plankWood>, chainsaw.onlyIC2ChargeAtLeast(100).transformIC2Discharge(100)]); | ||
== Machines == | == Machines == | ||
The following machines are supported: | The following machines are supported: | ||
+ | * Canner | ||
* Compressor | * Compressor | ||
* Extractor | * Extractor | ||
Line 13: | Line 22: | ||
* Metal Former | * Metal Former | ||
* Ore Washer | * Ore Washer | ||
+ | * Recycler | ||
* Thermal Centrifuge | * Thermal Centrifuge | ||
Each of these machines can have new recipes added: | Each of these machines can have new recipes added: | ||
+ | import mods.ic2.Canner; | ||
import mods.ic2.Compressor; | import mods.ic2.Compressor; | ||
import mods.ic2.Extractor; | import mods.ic2.Extractor; | ||
Line 24: | Line 35: | ||
import mods.ic2.ThermalCentrifuge; | import mods.ic2.ThermalCentrifuge; | ||
+ | // TODO: make some proper examples and test them | ||
+ | Canner.addBottleRecipe(output, container, fillIngredient); | ||
+ | Canner.addBottleRecipe(output, container, water); | ||
+ | Canner.addEnrichRecipe(output, input, additiveItem); | ||
+ | Canner.addEnrichRecipe(output, input, additiveLiquid); | ||
+ | |||
Compressor.addRecipe(<minecraft:planks>, <minecraft:stick>); | Compressor.addRecipe(<minecraft:planks>, <minecraft:stick>); | ||
Extractor.addRecipe(<minecraft:wheat>, <minecraft:bread>); | Extractor.addRecipe(<minecraft:wheat>, <minecraft:bread>); | ||
Line 32: | Line 49: | ||
OreWasher.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = water usage | OreWasher.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = water usage | ||
ThermalCentrifuge.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = minimum temperature | ThermalCentrifuge.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = minimum temperature | ||
+ | |||
+ | == Recycler blacklist == | ||
+ | |||
+ | You can add additional items to the recycler blacklist: | ||
+ | |||
+ | import mods.ic2.Recycler; | ||
+ | |||
+ | Recycler.addBlacklist(<minecraft:planks:*>); | ||
+ | |||
+ | == Semifluid generator == | ||
+ | |||
+ | It is possible to add new fuels to the semifluid generator: | ||
+ | |||
+ | import mods.ic2.SemiFluidGenerator; | ||
+ | |||
+ | // first argument is the amount of liquid used per cycle, the second the energy production / tick | ||
+ | SemiFluidGenerator.addFluid(<liquid:lava> * 10, 5); | ||
+ | |||
+ | == Scrapbox == | ||
+ | |||
+ | You can register new items to the scrapbox: | ||
+ | |||
+ | import mods.ic2.ScrapBox; | ||
+ | |||
+ | ScrapBox.addDrop(<minecraft:emerald>.weight(0.05)); | ||
+ | |||
+ | As a reference, diamond has weight 0.1, dirt has weight 5 and wooden tools have weight 1. |
Revision as of 13:09, 6 July 2014
NOTICE: This page uses the 1.7.2 item names NOTICE: The canner has not yet been tested. Adjust this message if you tried its recipes.
IC2 support enables addition of recipes for IC2 machines.
NOTE: recipes for these machines cannot reload. Once added, you need to restart Minecraft to undo them.
Contents
Crafting with electric items
You can use and discharge IC2 tools in crafting recipes. For example:
val chainsaw = <IC2:itemToolChainsaw>.anyDamage(); recipes.addShapeless(<minecraft:stick> * 3, [<ore:plankWood>, chainsaw.onlyIC2ChargeAtLeast(100).transformIC2Discharge(100)]);
Machines
The following machines are supported:
- Canner
- Compressor
- Extractor
- Macerator
- Metal Former
- Ore Washer
- Recycler
- Thermal Centrifuge
Each of these machines can have new recipes added:
import mods.ic2.Canner; import mods.ic2.Compressor; import mods.ic2.Extractor; import mods.ic2.Macerator; import mods.ic2.MetalFormer; import mods.ic2.OreWasher; import mods.ic2.ThermalCentrifuge; // TODO: make some proper examples and test them Canner.addBottleRecipe(output, container, fillIngredient); Canner.addBottleRecipe(output, container, water); Canner.addEnrichRecipe(output, input, additiveItem); Canner.addEnrichRecipe(output, input, additiveLiquid);
Compressor.addRecipe(<minecraft:planks>, <minecraft:stick>); Extractor.addRecipe(<minecraft:wheat>, <minecraft:bread>); Macerator.addRecipe(<minecraft:wheat> * 2, <minecraft:bread>); MetalFormer.addCuttingRecipe(<minecraft:stick> * 3, <minecraft:planks:*>); MetalFormer.addExtrudingRecipe(<minecraft:stick> * 3, <minecraft:planks:*>); MetalFormer.addRollingRecipe(<minecraft:stick> * 3, <minecraft:planks:*>); OreWasher.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = water usage ThermalCentrifuge.addRecipe([<minecraft:wheat>, <minecraft:wheat_seeds>], <minecraft:bread>, 1000); // 1000 = minimum temperature
Recycler blacklist
You can add additional items to the recycler blacklist:
import mods.ic2.Recycler; Recycler.addBlacklist(<minecraft:planks:*>);
Semifluid generator
It is possible to add new fuels to the semifluid generator:
import mods.ic2.SemiFluidGenerator; // first argument is the amount of liquid used per cycle, the second the energy production / tick SemiFluidGenerator.addFluid(<liquid:lava> * 10, 5);
Scrapbox
You can register new items to the scrapbox:
import mods.ic2.ScrapBox; ScrapBox.addDrop(<minecraft:emerald>.weight(0.05));
As a reference, diamond has weight 0.1, dirt has weight 5 and wooden tools have weight 1.