Jump to content

Recommended Posts

Posted

You have to multiply the chunkX and chunkZ by 16. Or just use my class:

Then just use the addOre method in your Registry...

 

  Reveal hidden contents

 

 

EDIT: I forgot the package :/

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted
  On 3/18/2014 at 9:02 PM, Busti said:

You have to multiply the chunkX and chunkZ by 16. Or just use my class:

Then just use the addOre method in your Registry...

 

  Reveal hidden contents

 

 

EDIT: I forgot the package :/

Sorry, but...when you say use the addOre with your registry...what do you mean? For my ore I've got:

RadialOre = new RadialOre().setBlockName("radialore").setHardness(5.0F).setResistance(5.0F).setLightLevel(0.8F).setStepSound(Block.soundTypeStone).setCreativeTab(RadialTabs).setBlockTextureName(modid + ":radialore");
	GameRegistry.registerBlock(RadialOre, "radialore").addOre(RadialOre);
	RadialOre.setHarvestLevel("pickaxe", 3);

That gives me an error, though. Am I putting it in the wrong spot?

Posted

SureenInk, Busti is referring to the Forge OreDictionary (i believe). If you are creating new ores, you would do well to register them in the Ore registry so other mods can use them in recipes, too. Or simply not have a conflict about it when there are more than 1 lead ores in the game.

Posted

[quote name="sequituri" post="88900" timestamp="1395475684"]
SureenInk, Busti is referring to the Forge OreDictionary (i believe). If you are creating new ores, you would do well to register them in the Ore registry so other mods can use them in recipes, too. Or simply not have a conflict about it when there are more than 1 lead ores in the game.
[/quote]
Sorry...I'm horribly new at this...so then I just have to add [codepublic static void oreRegistration()
{
	OreDictionary.registerOre("radialore", RadialOre);
}

I'm sorry...I really am new at this (just started the other day), so I'm still very confused x.x

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.