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.

Artemis

Members
  • Joined

  • Last visited

Everything posted by Artemis

  1. This is how to do what you are saying. Create a class that extends WorldGenLakes and implements IWorldGenerator. Then, register a copy of it specifying your oil block as the block type. import java.util.Random; import cpw.mods.fml.common.IWorldGenerator; import net.minecraft.block.Block; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenLakes; public class OilLakeWorldGenerator extends WorldGenLakes implements IWorldGenerator{ // Constructors. public OilLakeWorldGenerator(Block fluidBlock) { super(fluidBlock); } // Methods. @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { int x = (chunkX*16) + random.nextInt(16) + 8; int y = random.nextInt(256); int z = (chunkZ*16) + random.nextInt(16) + 8; super.generate(world, random, x, y, z); } } Change the y when you want it to spawn at only certain levels.

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.