Jump to content

Bamberger

Members
  • Posts

    16
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Bamberger's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ok, i fixed it! How? 1. put some magix in your pc, one pineapple, pray to god, and wait 1 week, helped for me Okay, after one week, i reinstalled Forge a few times and suddenly it worked and the src/main/java and src/main/resources-folders were there, ready to rumble. I hope, it works for u, the person who is reading this, too!
  2. Hey Guys, I have a little problem with my Forge (Eclipse), i downloaded today: There is no src/main/java and src/main/resources, but a main folder with some example-stuff in it, so i tried to work with the main-Folder. The next problem is, that Eclipse doens't react to missing imports and any other mistakes like misplaced brackets etc. Hope somebody can help me! win10(64bit), eclipse, u need more info?
  3. Can somebody else tell me whats wrong?
  4. Can somebody else tell me whats wrong?
  5. ok, thanks for ur help
  6. ok, thanks for ur help
  7. mmhh, no problem, could that be a forge-bug?
  8. mmhh, no problem, could that be a forge-bug?
  9. package generation; import java.util.Random; import net.minecraft.block.state.IBlockState; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class BlockGenerator extends WorldGenMinable implements IWorldGenerator{ private int frequency; public BlockGenerator(IBlockState state, int blockCount, int frequency) { super(state, blockCount); this.frequency = frequency; } @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) { for(int i = 0; i < frequency; i++) { int offsetX = random.nextInt(16); int offsetZ = random.nextInt(16); int posX = chunkX * 16 + offsetX; int posZ = chunkZ * 16 + offsetZ; int posY = random.nextInt(50); generate(world, random, new BlockPos(posX, posY, posZ)); } } }
  10. package generation; import java.util.Random; import net.minecraft.block.state.IBlockState; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class BlockGenerator extends WorldGenMinable implements IWorldGenerator{ private int frequency; public BlockGenerator(IBlockState state, int blockCount, int frequency) { super(state, blockCount); this.frequency = frequency; } @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) { for(int i = 0; i < frequency; i++) { int offsetX = random.nextInt(16); int offsetZ = random.nextInt(16); int posX = chunkX * 16 + offsetX; int posZ = chunkZ * 16 + offsetZ; int posY = random.nextInt(50); generate(world, random, new BlockPos(posX, posY, posZ)); } } }
  11. Here is a part of the FMLInitializationEvent: (sry: erz=ore in english) GameRegistry.registerWorldGenerator(new BlockGenerator(eiserz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(endererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(erdeerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(feuererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(lufterz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(magieerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(naturerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(nethererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(untergrunderz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(wassererz.getDefaultState(), 15, 500), 6);
  12. Here is a part of the FMLInitializationEvent: (sry: erz=ore in english) GameRegistry.registerWorldGenerator(new BlockGenerator(eiserz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(endererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(erdeerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(feuererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(lufterz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(magieerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(naturerz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(nethererz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(untergrunderz.getDefaultState(), 15, 500), 6); GameRegistry.registerWorldGenerator(new BlockGenerator(wassererz.getDefaultState(), 15, 500), 6);
  13. I mean with "only 1 ore is spawning", I have implemented 10 new Ores (PlatinumOre, SilverOre,....), but only 1 (for example: PlatinumOre) is Spawning
  14. I mean with "only 1 ore is spawning", I have implemented 10 new Ores (PlatinumOre, SilverOre,....), but only 1 (for example: PlatinumOre) is Spawning
  15. Hey Forge Community, My Problem is, that the second Parameter of the registerWorldGenerator method is "modGenerationWeight", so my problem is, I implemented more than 1 ore, but only one spawning, when I test the Mod. I know (through testing) that its affected by the "modGenerationWeight", but in every Test, only 1 is spawning. So how can I get every ore spawning? sry for my bad english
×
×
  • Create New...

Important Information

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