Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

  • 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);

    }

  • 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.

  • 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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.