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.

SimonSlime

Members
  • Joined

  • Last visited

Everything posted by SimonSlime

  1. ok then maybe did you mean this? sorry but it's my first generation { for(int i = 0; i < 50; i++) { int x = chunkX + random.nextInt(16); int y = random.nextInt(300); int z = chunkZ + random.nextInt(16); (new WorldGenMinable(simonsoresMod.PlatinumOre, 50)).generate(world, random, x, y, z); }
  2. I tried in this way, did you mean this? private void generateInOverworld(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 50; i++) { int x = chunkX + random.nextInt(16); int y = random.nextInt(300); int z = random.nextInt(15); (new WorldGenMinable(simonsoresMod.PlatinumOre, 50)).generate(world, random, x, y, z); }
  3. SimonGenerator.java package com.example.simonsores.generation; import java.util.Random; import com.example.simonsores.simonsoresMod; import net.minecraft.block.Block; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class SimonGenerator implements IWorldGenerator { private static final int chunkY = 0; public SimonGenerator() { // TODO Auto-generated constructor stub } @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId) { case -1: generateInNether(world, random, chunkX * 16, chunkZ * 16); break; case 0: generateInOverworld(world, random, chunkX * 16, chunkZ * 16); break; case 1: generateInEnd(world, random, chunkX * 16, chunkZ * 16); break; } } private void generateInNether(World world, Random random, int chunkX, int chunkZ) { } private void generateInOverworld(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 50; i++) { int x = chunkX + random.nextInt(16); int y = random.nextInt(300); int z = random.nextInt(16); (new WorldGenMinable(simonsoresMod.PlatinumOre, 50)).generate(world, random, x, y, z); } { for(int i = 0; i < 20; i++) { int x = chunkX + random.nextInt(16); int y = random.nextInt(300); int z = random.nextInt(16); (new WorldGenMinable(simonsoresMod.CobaltOre, 20)).generate(world, random, x, y, z);}} } private void generateInEnd(World world, Random random, int chunkX, int chunkZ) { } }
  4. I tried (new WorldGenMinable(simonsoresMod.PlatinumOre, 50)).generate(world, random, x, y, z); but it's equal
  5. the client runs normally but I searched the new ores in the world but they doesn't generate. where I mistake?

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.