Jump to content

Own TungstenOre Recipe


Schuby

Recommended Posts

Hi there,

 

i have a little private Server and i want to give tungsten ore a little use: Smelting Tungsten gives 1 diamond...

 

Minecraft is starting but in game, when i place tungsten in a furnace nothing happens.

 

Here the sourcecode,

 

	public void load(FMLInitializationEvent event)
	{
		proxy.registerRenders();

		//Variablen
		int TungstenOre = OreDictionary.getOreID("oreTungsten");


		//Smelting Recipes
		GameRegistry.addSmelting(TungstenOre, new ItemStack(Item.diamond), 2.0F);
	}

 

Am I doing something wrong?

Link to comment
Share on other sites

I have a similar code that works perfectly, only difference I see between yours and mine is you have:

proxy.registerRenders();

 

and I have:

proxy.registerRenderThings();

 

When I try to add yours, eclipse says that method needs to be created.

Link to comment
Share on other sites

Tanks for you reply

This function is empty in my source:

 

CommonProxy.java

public class CommonProxy {

public static String ITEM_PNG = "/items.png";
public static String BLOCK_PNG = "/blocks.png";

public void registerRenders() {}


}

 

The two _PNG are placeholder for the future. The png's don't exists. Should i delete these lines or am i missing something in my function?

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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