Jump to content

Xexanos

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Xexanos's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Xexanos

    [1.7.10] PoorOres

    I just added localisation to the mod. If you have a good language file (I only speak german and english) feel free to contribute it to my github.
  2. I know, this is a little bit of an old thread,but I have a similar Problem and tried to solve it with the code provided by diesieben07: For a mod I am writing at the Moment (PoorOres) I need to disable worldgen for the ores I add myself. to do that I used the following code: public void onEvent(PopulateChunkEvent.Pre event) { // replace all oreblocks of a type with stone // diesieben07 came up with this method (http://www.minecraftforge.net/forum/index.php/topic,21625.0.html) Chunk chunk = event.world.getChunkFromChunkCoords(event.chunkX, event.chunkZ); for (ExtendedBlockStorage storage : chunk.getBlockStorageArray()) { if (storage != null) { for (int x = 0; x < 16; ++x) { for (int y = 0; y < 16; ++y) { for (int z = 0; z < 16; ++z) { Block curBlock = storage.getBlockByExtId(x, y, z); for (PoorOre poorOre : Reference.WORLDGEN) { if (curBlock == poorOre.getBaseBlock()) { // LogHelper.info("Replace " + poorOre.getBaseBlock().getLocalizedName() + " at " + x + ", " + y + ", " + z + " with " + poorOre.getUnderlyingBlock().getLocalizedName()); storage.func_150818_a(x, y, z, poorOre.getUnderlyingBlock()); } } } } } } } chunk.isModified = true; // this is important as it marks it to be saved } Any idea, what I am doing wrong? It works fine, when I try to replace stone or grass. Edit: found out, what I was doing wrong. I simply used the OreGenEvent.GenerateMinable event instead and now it works like a charm.
  3. Xexanos

    [1.7.10] PoorOres

    Download: Download can be found here This mod adds customizable poor ores to worldgen. It is heavily inspired by the DenseOres mod by RWTema and by the poor ores added by Railcraft. After mining you can smelt the poor ores into nuggets and combine 9 of these nuggets int the corresponding "normal" item you would get by smelting the original ore. I also added Support for custom Textures (which are quite necessary for the nuggets). Pictures:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.