GeoDoX Posted November 3, 2012 Share Posted November 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
shadoskill Posted November 3, 2012 Share Posted November 3, 2012 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! Quote Link to comment Share on other sites More sharing options...
GeoDoX Posted November 3, 2012 Author Share Posted November 3, 2012 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. Quote Link to comment Share on other sites More sharing options...
GeoDoX Posted November 4, 2012 Author Share Posted November 4, 2012 any ideas? Quote Link to comment Share on other sites More sharing options...
samhalo007 Posted November 14, 2012 Share Posted November 14, 2012 You juste have to go in BiomeDecorator and remove the iron generation in it. Quote Link to comment Share on other sites More sharing options...
Groxkiller Posted November 15, 2012 Share Posted November 15, 2012 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? Quote Link to comment Share on other sites More sharing options...
samhalo007 Posted November 15, 2012 Share Posted November 15, 2012 Just add an ore without removing the iron ore ! Quote Link to comment Share on other sites More sharing options...
DarkGuardsman Posted November 15, 2012 Share Posted November 15, 2012 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 Quote http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img] Link to comment Share on other sites More sharing options...
GeoDoX Posted November 15, 2012 Author Share Posted November 15, 2012 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.