Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Xexanos

Members
  • Joined

  • Last visited

Everything posted by Xexanos

  1. Xexanos replied to Xexanos's topic in Mods
    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 posted a topic in Mods
    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:

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.