Jump to content

Recommended Posts

Posted

How would I go about Overriding Vanilla ore Gens, Iron to be more specific.

 

What I'm trying to do is replace Iron Ore with my own Iron Ore, and have it gen instead of Vanilla's.

Posted

If you already know how to generate ore couldn't you just do a loop on gen to search for vanilla iron and replace it with your own? Its probably not the best way to do it but its an idea!

Posted

If you already know how to generate ore couldn't you just do a loop on gen to search for vanilla iron and replace it with your own? Its probably not the best way to do it but its an idea!

 

That's what I'm trying to find out how to do, I've thought of multiple ways of how to do it but I'm not sure how to do it.

  • 2 weeks later...
Posted

I don't think this is a wise move, as iron ore is something that's used a LOT, so removing it and putting your own might cause a lot of incompatibility issues. Is there any way of doing what you want to accomplish without replacing the ore?

Posted

a cool trick would be to override iron ore in the blockList and let minecraft gen your ore in iron ores place. This would cause already generated ore to become your ore as well as new ores.

int i = Block.glass.blockID;//get the blocks id
Block.blocksList[i] = null;    //set the block to null in the block list
Block BlockGlass = new net.minecraft.src.GSM.BlockGlass(20);//let modloader replace block slot 20 with yours

Posted

a cool trick would be to override iron ore in the blockList and let minecraft gen your ore in iron ores place. This would cause already generated ore to become your ore as well as new ores.

int i = Block.glass.blockID;//get the blocks id
Block.blocksList[i] = null;    //set the block to null in the block list
Block BlockGlass = new net.minecraft.src.GSM.BlockGlass(20);//let modloader replace block slot 20 with yours

 

Would this be modifying Base Classes?

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.