Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. public static HashMap recipelist = new HashMap();
  2.  
  3.  
  4.  
  5. AlchemyAspects = new AspectList().add(Aspect.ENTROPY,4);
  6. addCrucibleRecipe("ENT","_BROD", new ItemStack(Items.blaze_powder,6,0), new ItemStack(Items.blaze_rod,1,0), AlchemyAspects);
  7. addCrucibleRecipe("CO","_DIA", new ItemStack(Items.diamond,1,0), new ItemStack(Blocks.coal_block,1,0), AlchemyAspects);
  8.  
  9. ENT_BROD works, CO_DIA does not.
  10.  
  11.  
  12. private static void addCrucibleRecipe(String tag, String tagAddon, ItemStack result, Object catalyst, AspectList alchemyAspects)
  13. {
  14. CrucibleRecipe crucibleRecipe = ThaumcraftApi.addCrucibleRecipe(tag, result, catalyst, alchemyAspects);
  15. recipelist.put(tag+tagAddon, crucibleRecipe);
  16. }
  17.  
  18. 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.
  19. 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.
  20.  
  21. 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.
  22.  
  23. 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