Tech Reborn

Tech Reborn

30M Downloads

Crafttweaker add a way to disable ore dict checking

CelestialPhoenix opened this issue ยท 4 comments

commented

Using CraftTweaker to add new processing recipes;
mods.techreborn.compressor.addRecipe(<minecraft:iron_block>, <ore:ingotIron>*9, 200, 5);

Script does not throw any errors with /ct syntax
Compressor takes 1 iron ingot and produces 1 iron block
(iron plate recipe removed, otherwise it produces iron plates)

Multiple item output is perfectly fine
mods.techreborn.compressor.addRecipe(<minecraft:iron_block>*9, <ore:ingotIron>*9, 200, 5);
Produces 9 iron blocks from 1 ingot.

Reborn Core 3.6.9.216
Tech Reborn 2.12.4.496
Forge 14.23.1.2607

commented

Ore Dictionary entries cannot have a size. The following works:

mods.techreborn.compressor.addRecipe(<minecraft:iron_block>, <minecraft:iron_ingot>*9, 200, 5);

commented

I see- it automatically adds in the ore-dictionary function. Thats pretty clever. I like it.

However it does cause a slighty different issue;
mods.techreborn.compressor.addRecipe(<minecraft:lapis_block>, <minecraft:dye:4>*9, 200, 5);
allows any ore:dye, ore:dyeBlue, and ore:gemLapis to be used in the recipe.
(causes things like Botania's floral dyes or Minecraft's bonemeal to work in the recipe)

Removing the additional ore tags from lapis would work, but would likely screw up the other mods relying on those tags.

Is there a way I can just use the ore:gemLapis tag or target specifically minecraft:dye:4?

Thanks for the help

commented

ah ok, what I need to do is add some methods to allow you to disable the auto ore dict checking for recipes. I will most likely do this next week.

commented

Ok, OreDict checking can be disabled like so:

mods.techreborn.alloySmelter.addRecipe(<minecraft:gold_ingot>, <minecraft:iron_ingot>, <minecraft:diamond>, 20, 100).setUseOreDict(false);

Note the .setUseOreDict(false); this should work on all recipes that use the RecipeCrafter.