Posted November 3, 201213 yr 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.
November 3, 201213 yr 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!
November 3, 201213 yr Author 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.
November 15, 201212 yr 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?
November 15, 201212 yr 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 http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
November 15, 201212 yr Author 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.