• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Bug minerai

    Sans suite
    1.7.10
    3
    5
    877
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zokyt last edited by

      Bonjours voici mon code :

      package com.mod.exonia.world;
      
      import java.util.Random;
      
      import com.mod.exonia.init.BlockMod;
      
      import cpw.mods.fml.common.IWorldGenerator;
      import net.minecraft.block.Block;
      import net.minecraft.init.Blocks;
      import net.minecraft.world.World;
      import net.minecraft.world.chunk.IChunkProvider;
      import net.minecraft.world.gen.feature.WorldGenMinable;
      
      public class WorldGen implements IWorldGenerator
      {
          @Override
          public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
          {
              switch(world.provider.dimensionId)
              {
                  case -1:
                      GenerateNether(world, chunkX * 16, chunkZ * 16, random);
                      break;
      
                  case 0:
                      GenerateOverWorld(world, chunkX * 16, chunkZ * 16, random);
                      break;
      
                  case 1:
                      GenerateEnd(world, chunkX * 16, chunkZ * 16, random);
                      break;
              }
          }
      
          private void addOre(Block block, Block blockSpawn, Random random, World world, int posX, int posZ, int minY, int maxY, int minV, int maxV, int spawnChance)
          {
              for(int i = 0; i < spawnChance; i++)
              {
                  int chunkSize = 16;
                  int Xpos = posX + random.nextInt(chunkSize);
                  int Ypos = minY + random.nextInt(maxY - minY);
                  int Zpos = posZ + random.nextInt(chunkSize);
      
                  new WorldGenMinable(block, maxV, blockSpawn).generate(world, random, Xpos, Ypos, Zpos);
              }
          }
      
          private void addStructure(int string, Random random, World world, int posX, int posZ, int minY, int maxY, int spawnChance)
          {
              for(int i = 0; i < spawnChance ; i++)
              {
                  int chunkSize = 16;
                  int Xpos = posX + random.nextInt(chunkSize);
                  int Ypos = minY + random.nextInt(maxY - minY);
                  int Zpos = posZ + random.nextInt(chunkSize);
      
              }
          }
      
          private void GenerateNether(World world, int i, int j, Random random)
          {
      
          }
      
          private void GenerateOverWorld(World world, int i, int j, Random random)
          {
              addOre(BlockMod.minerubis, Blocks.stone, random, world, i, j, 5, 15, 1, 6, 1);
              addOre(BlockMod.mineonyx, Blocks.stone, random, world, i, j, 3, 13, 1, 5, 1);
              addOre(BlockMod.minesaphir, Blocks.stone, random, world, i, j, 3, 10, 1, 4, 1);
              addOre(BlockMod.mineexonite, Blocks.stone, random, world, i, j, 100, 200, 1, 3, 100);
          }
      
          private void GenerateEnd(World world, int i, int j, Random random)
          {
      
          }
      }
      

      Mais mon block de Exonite ne spawn pas jai mit des valeurs grandes pour voir si il spawn mais non il spawn pas aider moi plz ?
      Je tien a presicer il y a aucune ligne rouge et robin si tu peut regarder je tes donner mon SRC

      1 Reply Last reply Reply Quote 0
      • A
        aypristyle last edited by

        Bonjour Zokyt as-tu des erreurs dans tes logs ? Si oui tu pourrais les mettre en réponse ?
        Et as-tu regarder si l’erreur ne viendrai pas de l’initialisation de ton bloc ?

        **Je suis un membre apprécié et joueur, j'ai déjà obtenu 1[ point de réputation./…

        1 Reply Last reply Reply Quote 0
        • Z
          Zokyt last edited by

          @‘aypristyle’:

          Bonjour Zokyt as-tu des erreurs dans tes logs ? Si oui tu pourrais les mettre en réponse ?
          Et as-tu regarder si l’erreur ne viendrai pas de l’initialisation de ton bloc ?

          J’ai tout verif tout les bloc se genere j’ai aucune erreur il y a que l’exonite qui se genere pas

          1 Reply Last reply Reply Quote 0
          • AymericRed
            AymericRed last edited by

            Peut-être parce que tu as mis 100 en postion y minimale, et qu’il n’y a plus beaucoup de cobble à cet hauteur (à part dans de rares biomes).

            Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

            AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

            Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
            Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

            1 Reply Last reply Reply Quote 0
            • Z
              Zokyt last edited by

              Je go ytest

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Design by Woryk
              Contact / Mentions Légales

              MINECRAFT FORGE FRANCE © 2018

              Powered by NodeBB