-
src/main/java and src/main/resources are missing
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!
-
src/main/java and src/main/resources are missing
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?
-
ModGenerationWeight
Can somebody else tell me whats wrong?
-
ModGenerationWeight
Can somebody else tell me whats wrong?
-
ModGenerationWeight
ok, thanks for ur help
-
ModGenerationWeight
ok, thanks for ur help
-
ModGenerationWeight
mmhh, no problem, could that be a forge-bug?
-
ModGenerationWeight
mmhh, no problem, could that be a forge-bug?
-
ModGenerationWeight
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)); } } }
-
ModGenerationWeight
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)); } } }
-
ModGenerationWeight
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);
-
ModGenerationWeight
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);
-
ModGenerationWeight
I mean with "only 1 ore is spawning", I have implemented 10 new Ores (PlatinumOre, SilverOre,....), but only 1 (for example: PlatinumOre) is Spawning
-
ModGenerationWeight
I mean with "only 1 ore is spawning", I have implemented 10 new Ores (PlatinumOre, SilverOre,....), but only 1 (for example: PlatinumOre) is Spawning
-
ModGenerationWeight
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
IPS spam blocked by CleanTalk.