Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/22/18 in all areas

  1. How can I generate ores in other dimensions? I already figured out how to generate in the overworld, but if I run the code with a different world in the arguments, the game crashes. Code: https://pastebin.com/TvCCh5NF Does anyone have an answer?
    1 point
  2. I Can't get my ore to generate in the nether i Have the same coding as my ruby ore generation but i cant seem to get the ore to generate in the nether: package com.moreoresmod.main.worldgeneration; import java.util.Random; import com.moreoresmod.main.init.MoreOresModBlocks; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class NetherDiamondGeneration implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.getDimensionId()){ case 1: generateEnd(world, random, chunkX, chunkZ); break; case 0: generateOverworld(world, random, chunkX, chunkZ); break; case -1: generateNether(world, random, chunkX, chunkZ); break; } } public void generateEnd(World world, Random random, int x, int z){ } public void generateOverworld(World world, Random random, int x, int z){ } public void generateNether(World world, Random random, int x, int z){ generateOre(MoreOresModBlocks.nether_diamond, world, random, x, z, 2, 8, 50, 2, 256, Blocks.netherrack); } public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize, int maxVienSize, int chance , int minY, int maxY, Block generateIn){ int vienSize = minVienSize + random.nextInt(maxVienSize - minVienSize); int hightRange = maxY - minY; WorldGenMinable gen = new WorldGenMinable(block.getDefaultState(), vienSize); for(int i = 0; i < chance; i++){ int xRand = chunkX * 16 + random.nextInt(16); int yRand = random.nextInt(hightRange) + minY; int zRand = chunkZ * 16 + random.nextInt(16); gen.generate(world, random,new BlockPos(xRand, yRand, zRand)); } } }
    1 point
  3. I am making a Minecraft mod using the 14.23.4.2705 mdk. It works in eclipse but when I put it in the Minecraft mods folder and try to run, it throws a NoSuchFieldError. Apparently, the mod wasn't obfuscated, but I can't find anything that can obfuscate it. Does anyone know how I can fix my mod?
    1 point
  4. I pressed run in the ide so I think that I built with the ide
    1 point
  5. Where do I find the [modid]-[version].jar file? log is pastebin.com/UPuTtV57
    1 point
  6. By default Forge generates a [modid]-[version].jar and a [modid]-[version]-sources.jar. The first one is the one that is used when playing the mod, the second one is used as a library in dev environments to create addons for the mod. The way this works is your mod is not obfuscated, but every call back to vanilla minecraft is replaced with a searge mapping that stands between obfuscated and unobfuscated(MCP Mapping). To provide any further assistance I'll need logs as described in my signature below.
    1 point
  7. Translation only happens on the client. What is most likely happening is that the mods in question are hard coding the strings they output instead of translating it
    1 point
  8. come on Skype I have what you need.Will post in the topic if you want .Skype killer96624
    1 point
  9. i do know basic java but i sometimes have a hard time understanding somethings
    1 point
  10. Will It Work Now? package com.moreoresmod.main.worldgeneration; import java.util.Random; import akka.japi.Predicate; import com.moreoresmod.main.init.MoreOresModBlocks; import net.minecraft.block.Block; import net.minecraft.block.state.pattern.BlockHelper; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class NetherDiamondGeneration implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { BlockHelper.forBlock(Blocks.netherrack); switch(world.provider.getDimensionId()){ case 1: generateEnd(world, random, chunkX, chunkZ); break; case 0: generateOverworld(world, random, chunkX, chunkZ); break; case -1: generateNether(world, random, chunkX, chunkZ); break; } } public void generateEnd(World world, Random random, int x, int z){ } public void generateOverworld(World world, Random random, int x, int z){ } public void generateNether(World world, Random random, int x, int z){ generateOre(MoreOresModBlocks.nether_diamond, world, random, x, z, 2, 8, 50, 2, 256, Blocks.netherrack); } public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVienSize, int maxVienSize, int chance , int minY, int maxY, Block generateIn){ int vienSize = minVienSize + random.nextInt(maxVienSize - minVienSize); int hightRange = maxY - minY; WorldGenMinable gen = new WorldGenMinable(block.getDefaultState(), vienSize); for(int i = 0; i < chance; i++){ int xRand = chunkX * 16 + random.nextInt(16); int yRand = random.nextInt(hightRange) + minY; int zRand = chunkZ * 16 + random.nextInt(16); gen.generate(world, random,new BlockPos(xRand, yRand, zRand)); } } }
    1 point
  11. 1 point
×
×
  • Create New...

Important Information

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