Posted July 6, 201411 yr I am working on a vanilla tweaks mod and am wishing to remove the XP that is gained from smelting. Is there a specific event that I would have to use a @Subscribe event with?
July 6, 201411 yr Author I was able to find the getSmeltingList(), but I cannot get it to call the remove method from the list. I have ran the following init method. @EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this); FurnaceRecipes.smelting().getSmeltingList().remove(Blocks.iron_ore); GameRegistry.addSmelting(Blocks.coal_ore, new ItemStack(Items.coal, 1),0); GameRegistry.addSmelting(Blocks.iron_ore, new ItemStack(Items.iron_ingot, 1),0); GameRegistry.addSmelting(Blocks.gold_ore, new ItemStack(Items.gold_ingot, 1),0); GameRegistry.addSmelting(Blocks.diamond_ore, new ItemStack(Items.diamond, 1),0); GameRegistry.addSmelting(Blocks.redstone_ore, new ItemStack(Items.redstone, 4),0); }
July 6, 201411 yr Author I'm sorry, but I am still not following. What I am wanting to do is just remove the recipe, and re-create it. Personally I feel as this is the way that I will want to go with it, as it seems simpler in my head. I noticed that they created a Map equaling a new HashMap. I am able to remove crafting recipes just fine by adding a generic to a List, and then calling a while loop to see if it finds the output of the recipes. Is there a way to do the same method with furnace recipes? I have not been able to find much about removing them in 1.7.2.
July 6, 201411 yr Author Ok, I have found the map and method that adds the XP to the output. (Map experienceList) Just to be sure, from here I have to modify the entry in the Map from a separate class? If so, how would I go about setting the float for the output in the method to 0?
July 6, 201411 yr Author I am not fully sure what reflection is. I have taken a course on Java, but I do not recall ever hearing of reflection.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.