Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static HashMap recipelist = new HashMap();
- AlchemyAspects = new AspectList().add(Aspect.ENTROPY,4);
- addCrucibleRecipe("ENT","_BROD", new ItemStack(Items.blaze_powder,6,0), new ItemStack(Items.blaze_rod,1,0), AlchemyAspects);
- addCrucibleRecipe("CO","_DIA", new ItemStack(Items.diamond,1,0), new ItemStack(Blocks.coal_block,1,0), AlchemyAspects);
- ENT_BROD works, CO_DIA does not.
- private static void addCrucibleRecipe(String tag, String tagAddon, ItemStack result, Object catalyst, AspectList alchemyAspects)
- {
- CrucibleRecipe crucibleRecipe = ThaumcraftApi.addCrucibleRecipe(tag, result, catalyst, alchemyAspects);
- recipelist.put(tag+tagAddon, crucibleRecipe);
- }
- This method puts my mod's recipe into a hashmap that is used to retrieve them and put them in the thaumonomicon's research page.
- This in unrelated to vanilla thaumcraft's list of recipe it iterates to find a working one, and it's working since the recipes do show up in the book.
- ThaumcraftApi.addCrucibleRecipe() puts them into an arraylist that is looped to find the recipe while using a crafting device, such as the crucible or thaumatorium.
- Now the code for those 2 recipes is the same, isn't it? However crafting the last one is impossible.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement