Jump to content

Override Vanilla Ore Gen


GeoDoX

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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?

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.