MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Génération d'arbres personnalisé

    Planifier Épinglé Verrouillé Déplacé Résolu Anciennes versions
    1.6.4
    18 Messages 2 Publieurs 3.6k Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • S Hors-ligne
      sisidney
      dernière édition par

      Non justement je n’est aucune idée de comment le crée.

      1 réponse Dernière réponse Répondre Citer 0
      • robin4002R Hors-ligne
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
        dernière édition par

        Après rapide recherche j’ai trouvé ça :
        http://www.minecraftforum.net/topic/1797143-152-16-forge-dimension-tutorial-multi-biome-dimension-ore-gen-basic-house-gen-tree-gen-skyrenderer-githubsrc-code/#entry22270215
        Mais c’est en anglais.

        1 réponse Dernière réponse Répondre Citer 0
        • S Hors-ligne
          sisidney
          dernière édition par

          Ca fonctionne aussi pour la 1.6.4 ??

          1 réponse Dernière réponse Répondre Citer 0
          • robin4002R Hors-ligne
            robin4002 Moddeurs confirmés Rédacteurs Administrateurs
            dernière édition par

            oui.

            1 réponse Dernière réponse Répondre Citer 0
            • S Hors-ligne
              sisidney
              dernière édition par

              Cela fait quelque heures que je regarde mais je n’y comprend ABSOLUMENT rien 😕

              Edit :
              En fait c’est bon j’ai réussi 😛

              Re edit:
              J’ ai un autre problème maintenant, comment je peut faire pour changer la forme de l arbre ?

              1 réponse Dernière réponse Répondre Citer 0
              • S Hors-ligne
                sisidney
                dernière édition par

                Voici la class de l’abre si vous voulez:

                /*
                *** MADE BY MITHION'S .SCHEMATIC TO JAVA CONVERTING TOOL v1.6 ***
                */
                
                package modCrafttech.common;
                
                import java.util.Random;
                
                import cpw.mods.fml.common.IWorldGenerator;
                import net.minecraft.block.Block;
                import net.minecraft.client.main.Main;
                import net.minecraft.util.Direction;
                import net.minecraft.world.World;
                import net.minecraft.world.chunk.IChunkProvider;
                import net.minecraft.world.gen.feature.WorldGenerator;
                import net.minecraftforge.common.ForgeDirection;
                
                public class WorldGenTutorialTree extends WorldGenerator implements IWorldGenerator
                {
                
                private final int minTreeHeight;
                
                private final boolean vinesGrow;
                
                private final int metaWood;
                
                private final int metaLeaves;
                public WorldGenTutorialTree(boolean par1)
                {
                this(par1, 8, 0, 0, false);
                }
                public WorldGenTutorialTree(boolean par1, int par2, int par3, int par4, boolean par5)
                {
                super(par1);
                this.minTreeHeight = par2;
                this.metaWood = par3;
                this.metaLeaves = par4;
                this.vinesGrow = par5;
                }
                public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5)
                {
                int l = par2Random.nextInt(3) + this.minTreeHeight;
                boolean flag = true;
                if (par4 >= 1 && par4 + l + 1 <= 256)
                {
                int i1;
                byte b0;
                int j1;
                int k1;
                for (i1 = par4; i1 <= par4 + 1 + l; ++i1)
                {
                b0 = 1;
                if (i1 == par4)
                {
                b0 = 0;
                }
                if (i1 >= par4 + 1 + l - 2)
                {
                b0 = 2;
                }
                for (int l1 = par3 - b0; l1 <= par3 + b0 && flag; ++l1)
                {
                for (j1 = par5 - b0; j1 <= par5 + b0 && flag; ++j1)
                {
                if (i1 >= 0 && i1 < 256)
                {
                k1 = par1World.getBlockId(l1, i1 -1, j1);
                
                Block block = ModCraftech.Ct19;
                if (k1 != 0 && !block.isLeaves(par1World, l1, i1, j1)
                
                && k1 != ModCraftech.Ct19.blockID
                && k1 != Block.dirt.blockID
                && !block.isWood(par1World, l1, i1, j1))
                {
                flag = false;
                }
                }
                else
                {
                flag = false;
                }
                }
                }
                }
                if (!flag)
                {
                return false;
                }
                else
                {
                i1 = par1World.getBlockId(par3, par4 - 1, par5);
                
                Block soil = ModCraftech.Ct19;
                
                boolean isSoil = (soil != null && soil.canSustainPlant(par1World, par3, par4 - 1, par5, ForgeDirection.UP, (BlockTutorialSapling)ModCraftech.TutorialSapling));
                if (isSoil && par4 < 256 - l - 1)
                {
                soil.onPlantGrow(par1World, par3, par4 - 1, par5, par3, par4, par5);
                b0 = 2;
                byte b1 = 0;
                int i2;
                int j2;
                int k2;
                for (j1 = par4 - b0 + l; j1 <= par4 + l; ++j1)
                {
                k1 = j1 - (par4 + l);
                i2 = b1 + 1 - k1 / 2;
                for (j2 = par3 - i2; j2 <= par3 + i2; ++j2)
                {
                k2 = j2 - par3;
                for (int l2 = par5 - i2; l2 <= par5 + i2; ++l2)
                {
                int i3 = l2 - par5;
                if (Math.abs(k2) != i2 || Math.abs(i3) != i2 || par2Random.nextInt(2) != 0 && k1 != 0)
                {
                int j3 = par1World.getBlockId(j2, j1, l2);
                Block block = Block.blocksList[j3];
                if (block == null || block.canBeReplacedByLeaves(par1World, j2, j1, l2))
                {
                
                this.setBlockAndMetadata(par1World, j2, j1, l2, ModCraftech.TutorialLeaf.blockID, this.metaLeaves);
                }
                }
                }
                }
                }
                for (j1 = 0; j1 < l; ++j1)
                {
                k1 = par1World.getBlockId(par3, par4 + j1, par5);
                Block block = Block.blocksList[k1];
                if (k1 == 0 || block == null || block.isLeaves(par1World, par3, par4 + j1, par5))
                {
                /** Custom Log block **/
                this.setBlockAndMetadata(par1World, par3, par4 + j1, par5, ModCraftech.TutorialLog.blockID, this.metaWood);
                }
                }
                if (par2Random.nextInt(5) == 0 && l > 5)
                {
                for (j1 = 0; j1 < 2; ++j1)
                {
                for (k1 = 0; k1 < 4; ++k1)
                {
                if (par2Random.nextInt(4 - j1) == 0)
                {
                i2 = par2Random.nextInt(3);
                this.setBlockAndMetadata(par1World, par3 + Direction.offsetX[Direction.rotateOpposite[k1]], par4 + l - 5 + j1, par5 + Direction.offsetZ[Direction.rotateOpposite[k1]], Block.cocoaPlant.blockID, i2 << 2 | k1);
                }
                }
                }
                }
                }
                return true;
                }
                }
                return flag;
                }
                @Override
                public void generate(Random random, int chunkX, int chunkZ, World world,
                IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
                {
                for(int i = 0; i < 10; i++)
                {
                int xCoord = chunkX + random.nextInt(16);
                int yCoord = random.nextInt(16);
                int zCoord = chunkZ + random.nextInt(16);
                
                (new WorldGenTutorialTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);
                }
                }
                }
                
                
                1 réponse Dernière réponse Répondre Citer 0
                • robin4002R Hors-ligne
                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                  dernière édition par

                  ctrl + shift + f
                  La ton code est illisible.
                  Je me suis encore jamais intéressé à ça, mais c’est que des world.setBlock, donc il suffit juste de modifier les coordonnées en argument et c’est bon.

                  1 réponse Dernière réponse Répondre Citer 0
                  • S Hors-ligne
                    sisidney
                    dernière édition par

                    Désole revoici le code:

                    
                    /*
                    *** MADE BY MITHION'S .SCHEMATIC TO JAVA CONVERTING TOOL v1.6 ***
                    */
                    
                    package modCrafttech.common;
                    
                    import java.util.Random;
                    
                    import cpw.mods.fml.common.IWorldGenerator;
                    import net.minecraft.block.Block;
                    import net.minecraft.client.main.Main;
                    import net.minecraft.util.Direction;
                    import net.minecraft.world.World;
                    import net.minecraft.world.chunk.IChunkProvider;
                    import net.minecraft.world.gen.feature.WorldGenerator;
                    import net.minecraftforge.common.ForgeDirection;
                    
                    public class WorldGenTutorialTree extends WorldGenerator implements
                    IWorldGenerator {
                    /** The minimum height of a generated tree. */
                    private final int minTreeHeight;
                    /** True if this tree should grow Vines. */
                    private final boolean vinesGrow;
                    /** The metadata value of the wood to use in tree generation. */
                    private final int metaWood;
                    /** The metadata value of the leaves to use in tree generation. */
                    private final int metaLeaves;
                    
                    public WorldGenTutorialTree(boolean par1) {
                    this(par1, 8, 0, 0, false);
                    }
                    
                    public WorldGenTutorialTree(boolean par1, int par2, int par3, int par4,
                    boolean par5) {
                    super(par1);
                    this.minTreeHeight = par2;
                    this.metaWood = par3;
                    this.metaLeaves = par4;
                    this.vinesGrow = par5;
                    }
                    
                    public boolean generate(World par1World, Random par2Random, int par3,
                    int par4, int par5) {
                    int l = par2Random.nextInt(3) + this.minTreeHeight;
                    boolean flag = true;
                    if (par4 >= 1 && par4 + l + 1 <= 256) {
                    int i1;
                    byte b0;
                    int j1;
                    int k1;
                    for (i1 = par4; i1 <= par4 + 1 + l; ++i1) {
                    b0 = 1;
                    if (i1 == par4) {
                    b0 = 0;
                    }
                    if (i1 >= par4 + 1 + l - 2) {
                    b0 = 2;
                    }
                    for (int l1 = par3 - b0; l1 <= par3 + b0 && flag; ++l1) {
                    for (j1 = par5 - b0; j1 <= par5 + b0 && flag; ++j1) {
                    if (i1 >= 0 && i1 < 256) {
                    k1 = par1World.getBlockId(l1, i1 - 1, j1);
                    /** Custom grass block **/
                    Block block = ModCraftech.Ct19;
                    if (k1 != 0
                    && !block.isLeaves(par1World, l1, i1, j1)
                    
                    /** Custom grass block **/
                    && k1 != ModCraftech.Ct19.blockID
                    && k1 != Block.dirt.blockID
                    && !block.isWood(par1World, l1, i1, j1)) {
                    flag = false;
                    }
                    } else {
                    flag = false;
                    }
                    }
                    }
                    }
                    if (!flag) {
                    return false;
                    } else {
                    i1 = par1World.getBlockId(par3, par4 - 1, par5);
                    
                    /** Custom grass block **/
                    Block soil = ModCraftech.Ct19;
                    
                    /** Custom Sapling block **/
                    boolean isSoil = (soil != null && soil.canSustainPlant(
                    par1World, par3, par4 - 1, par5, ForgeDirection.UP,
                    (BlockTutorialSapling) ModCraftech.TutorialSapling));
                    if (isSoil && par4 < 256 - l - 1) {
                    soil.onPlantGrow(par1World, par3, par4 - 1, par5, par3,
                    par4, par5);
                    b0 = 2;
                    byte b1 = 0;
                    int i2;
                    int j2;
                    int k2;
                    for (j1 = par4 - b0 + l; j1 <= par4 + l; ++j1) {
                    k1 = j1 - (par4 + l);
                    i2 = b1 + 1 - k1 / 2;
                    for (j2 = par3 - i2; j2 <= par3 + i2; ++j2) {
                    k2 = j2 - par3;
                    for (int l2 = par5 - i2; l2 <= par5 + i2; ++l2) {
                    int i3 = l2 - par5;
                    if (Math.abs(k2) != i2 || Math.abs(i3) != i2
                    || par2Random.nextInt(2) != 0
                    && k1 != 0) {
                    int j3 = par1World.getBlockId(j2, j1, l2);
                    Block block = Block.blocksList[j3];
                    if (block == null
                    || block.canBeReplacedByLeaves(
                    par1World, j2, j1, l2)) {
                    /** Custom leaf block **/
                    this.setBlockAndMetadata(
                    par1World,
                    j2,
                    j1,
                    l2,
                    ModCraftech.TutorialLeaf.blockID,
                    this.metaLeaves);
                    }
                    }
                    }
                    }
                    }
                    for (j1 = 0; j1 < l; ++j1) {
                    k1 = par1World.getBlockId(par3, par4 + j1, par5);
                    Block block = Block.blocksList[k1];
                    if (k1 == 0
                    || block == null
                    || block.isLeaves(par1World, par3, par4 + j1,
                    par5)) {
                    /** Custom Log block **/
                    this.setBlockAndMetadata(par1World, par3,
                    par4 + j1, par5,
                    ModCraftech.TutorialLog.blockID,
                    this.metaWood);
                    }
                    }
                    if (par2Random.nextInt(5) == 0 && l > 5) {
                    for (j1 = 0; j1 < 2; ++j1) {
                    for (k1 = 0; k1 < 4; ++k1) {
                    if (par2Random.nextInt(4 - j1) == 0) {
                    i2 = par2Random.nextInt(3);
                    this.setBlockAndMetadata(
                    par1World,
                    par3
                    + Direction.offsetX[Direction.rotateOpposite[k1]],
                    par4 + l - 5 + j1,
                    par5
                    + Direction.offsetZ[Direction.rotateOpposite[k1]],
                    Block.cocoaPlant.blockID, i2 << 2
                    | k1);
                    }
                    }
                    }
                    }
                    }
                    return true;
                    }
                    }
                    return flag;
                    }
                    
                    @Override
                    public void generate(Random random, int chunkX, int chunkZ, World world,
                    IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
                    for (int i = 0; i < 10; i++) {
                    int xCoord = chunkX + random.nextInt(16);
                    int yCoord = random.nextInt(16);
                    int zCoord = chunkZ + random.nextInt(16);
                    
                    /** Custom WorldGenTutorialTree block **/
                    (new WorldGenTutorialTree(false, 9, 0, 0, false)).generate(world,
                    random, xCoord, yCoord, zCoord);
                    }
                    }
                    }
                    
                    

                    J’ai essaye de convertir les schématique mais voici le resultat optenu mais pourtant j’ai utilisé le même convertisseur que la personne qui a fait le code :

                    
                    /*
                    *** MADE BY MITHION'S .SCHEMATIC TO JAVA CONVERTING TOOL v1.6 ***
                    */
                    
                    package net.minecraft.src;
                    import java.util.Random;
                    
                    public class arbre extends WorldGenerator
                    {
                    public arbre() { }
                    
                    public boolean generate(World world, Random rand, int i, int j, int k) {
                    world.setBlock(i + 1, j + 7, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 2, j + 6, k + 5, Block.wood.blockID, 4);
                    world.setBlock(i + 2, j + 7, k + 4, -39);
                    world.setBlock(i + 2, j + 9, k + 10, -39);
                    world.setBlock(i + 2, j + 10, k + 7, -39);
                    world.setBlock(i + 2, j + 10, k + 8, -39);
                    world.setBlockAndMetadata(i + 3, j + 5, k + 5, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 3, j + 7, k + 1, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 3, j + 8, k + 5, Block.wood.blockID, 4);
                    world.setBlock(i + 3, j + 10, k + 7, -39);
                    world.setBlockAndMetadata(i + 4, j + 5, k + 5, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 4, j + 5, k + 7, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 4, j + 6, k + 2, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 4, j + 6, k + 8, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 4, j + 6, k + 9, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 4, j + 8, k + 3, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 4, j + 8, k + 5, Block.wood.blockID, 4);
                    world.setBlock(i + 4, j + 9, k + 3, -39);
                    world.setBlock(i + 5, j + 0, k + 5, Block.wood.blockID);
                    world.setBlock(i + 5, j + 1, k + 5, Block.wood.blockID);
                    world.setBlock(i + 5, j + 2, k + 5, Block.wood.blockID);
                    world.setBlock(i + 5, j + 3, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 5, j + 4, k + 3, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 5, j + 4, k + 4, Block.wood.blockID, 8);
                    world.setBlock(i + 5, j + 4, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 5, j + 4, k + 6, Block.wood.blockID, 8);
                    world.setBlock(i + 5, j + 5, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 5, j + 5, k + 6, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 5, j + 5, k + 8, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 5, j + 6, k + 3, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 5, j + 6, k + 4, Block.wood.blockID, 8);
                    world.setBlock(i + 5, j + 6, k + 5, Block.wood.blockID);
                    world.setBlock(i + 5, j + 7, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 5, j + 8, k + 4, Block.wood.blockID, 8);
                    world.setBlock(i + 5, j + 8, k + 5, Block.wood.blockID);
                    world.setBlock(i + 5, j + 9, k + 5, Block.wood.blockID);
                    world.setBlockAndMetadata(i + 6, j + 4, k + 4, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 6, j + 4, k + 6, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 6, j + 6, k + 2, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 6, j + 6, k + 5, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 6, j + 7, k + 6, Block.wood.blockID, 8);
                    world.setBlock(i + 6, j + 9, k + 4, -39);
                    world.setBlock(i + 6, j + 9, k + 5, -39);
                    world.setBlock(i + 6, j + 10, k + 7, -39);
                    world.setBlock(i + 7, j + 0, k + 5, -39);
                    world.setBlockAndMetadata(i + 7, j + 4, k + 3, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 7, j + 4, k + 7, Block.wood.blockID, 8);
                    world.setBlockAndMetadata(i + 7, j + 6, k + 1, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 7, j + 6, k + 4, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 7, j + 7, k + 7, Block.wood.blockID, 8);
                    world.setBlock(i + 7, j + 8, k + 5, -39);
                    world.setBlock(i + 7, j + 8, k + 7, Block.wood.blockID);
                    world.setBlock(i + 7, j + 9, k + 4, -39);
                    world.setBlock(i + 7, j + 9, k + 5, -39);
                    world.setBlock(i + 8, j + 0, k + 5, -39);
                    world.setBlockAndMetadata(i + 8, j + 7, k + 4, Block.wood.blockID, 4);
                    world.setBlockAndMetadata(i + 8, j + 7, k + 8, Block.wood.blockID, 8);
                    world.setBlock(i + 8, j + 8, k + 5, -39);
                    world.setBlockAndMetadata(i + 9, j + 7, k + 3, Block.wood.blockID, 4);
                    world.setBlock(i + 10, j + 1, k + 0, -39);
                    
                    return true;
                    }
                    }
                    
                    1 réponse Dernière réponse Répondre Citer 0
                    • robin4002R Hors-ligne
                      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                      dernière édition par

                      Sûrement car il a modifier lui même par après.
                      Ajoute implements IWorldGenerator { et :

                      @Override
                      public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
                      for (int i = 0; i < 10; i++) {
                      int xCoord = chunkX + random.nextInt(16);
                      int yCoord = random.nextInt(16);
                      int zCoord = chunkZ + random.nextInt(16);
                      
                      /** Custom WorldGenTutorialTree block **/
                      (new arbre()).generate(world, random, xCoord, yCoord, zCoord);
                      }
                      }
                      

                      et ça devrait être bon.

                      1 réponse Dernière réponse Répondre Citer 0
                      • S Hors-ligne
                        sisidney
                        dernière édition par

                        J’ai encore une erreur sur toutes ces ligne la 😕 :

                        world.setBlockAndMetadata(i + 2, j + 6, k + 5, Block.wood.blockID, 4);
                        
                        1 réponse Dernière réponse Répondre Citer 0
                        • robin4002R Hors-ligne
                          robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                          dernière édition par

                          Ha oui, ça a changé depuis la 1.6
                          Faut tout changer en setBlock et ajouter ,3 à la fin.

                          1 réponse Dernière réponse Répondre Citer 0
                          • S Hors-ligne
                            sisidney
                            dernière édition par

                            Je viens de re-test tous sa mais rien de bien concluent, je crash a chaque fois que j’essaye de faire pousser l’arbre 😕

                            Voici mes code, je me suis inspiré du mod NanoCraft:

                            La Sapling

                            
                            public class BlockTutorialSapling extends BlockSapling {
                            
                            public BlockTutorialSapling(int id) {
                            
                            super(id);
                            float f = 0.4F;
                            setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f);
                            }
                            
                            public void registerIcons(IconRegister iconregister)
                            {
                            blockIcon = iconregister.registerIcon("nanotechmod:sapling");
                            }
                            
                            @SideOnly(Side.CLIENT)
                            public Icon getIcon(int side, int metadata)
                            {
                            return blockIcon;
                            }
                            
                            public void growTree(World world, int i, int j, int k, Random random)
                            {
                            System.out.println("test1");
                            int l = world.getBlockMetadata(i, j, k) & 3;
                            world.setBlock(i, j, k, 0);
                            Object obj = null;
                            obj = new WorldGenTutorialTree();
                            if(!((WorldGenerator)(obj)).generate(world, random, i, j, k))
                            {
                            
                            }
                            }
                            
                            @Override
                            protected boolean canThisPlantGrowOnThisBlockID(int blockid)
                            {
                            return blockid == Block.grass.blockID || blockid == Block.dirt.blockID;
                            }
                            
                            }
                            
                            

                            La class de l’abre:

                            
                            public class WorldGenTutorialTree extends WorldGenerator implements IWorldGenerator
                            {
                            public WorldGenTutorialTree() { }
                            @Override
                            public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
                            for (int i = 0; i < 10; i++) {
                            int xCoord = chunkX + random.nextInt(16);
                            int yCoord = random.nextInt(16);
                            int zCoord = chunkZ + random.nextInt(16);
                            
                            /** Custom WorldGenTutorialTree block **/
                            (new WorldGenTutorialTree()).generate(world, random, xCoord, yCoord, zCoord);
                            }
                            }
                            @Override
                            public boolean generate(World world, Random random, int i, int j, int k) {
                            // TODO Auto-generated method stub
                            System.out.println("test3");
                            world.setBlock(i + 1, j + 7, k + 5, Block.wood.blockID);
                            world.setBlock(i + 2, j + 6, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 2, j + 7, k + 4, -39);
                            world.setBlock(i + 2, j + 9, k + 10, -39);
                            world.setBlock(i + 2, j + 10, k + 7, -39);
                            world.setBlock(i + 2, j + 10, k + 8, -39);
                            world.setBlock(i + 3, j + 5, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 3, j + 7, k + 1, Block.wood.blockID, 4,3);
                            world.setBlock(i + 3, j + 8, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 3, j + 10, k + 7, -39);
                            world.setBlock(i + 4, j + 5, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 4, j + 5, k + 7, Block.wood.blockID, 8,3);
                            world.setBlock(i + 4, j + 6, k + 2, Block.wood.blockID, 8,3);
                            world.setBlock(i + 4, j + 6, k + 8, Block.wood.blockID, 8,3);
                            world.setBlock(i + 4, j + 6, k + 9, Block.wood.blockID, 8,3);
                            world.setBlock(i + 4, j + 8, k + 3, Block.wood.blockID, 8,3);
                            world.setBlock(i + 4, j + 8, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 4, j + 9, k + 3, -39);
                            world.setBlock(i + 5, j + 0, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 1, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 2, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 3, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 4, k + 3, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 4, k + 4, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 4, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 4, k + 6, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 5, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 5, k + 6, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 5, k + 8, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 6, k + 3, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 6, k + 4, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 6, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 7, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 8, k + 4, Block.wood.blockID, 8,3);
                            world.setBlock(i + 5, j + 8, k + 5, Block.wood.blockID);
                            world.setBlock(i + 5, j + 9, k + 5, Block.wood.blockID);
                            world.setBlock(i + 6, j + 4, k + 4, Block.wood.blockID, 4,3);
                            world.setBlock(i + 6, j + 4, k + 6, Block.wood.blockID, 4,3);
                            world.setBlock(i + 6, j + 6, k + 2, Block.wood.blockID, 4,3);
                            world.setBlock(i + 6, j + 6, k + 5, Block.wood.blockID, 4,3);
                            world.setBlock(i + 6, j + 7, k + 6, Block.wood.blockID, 8,3);
                            world.setBlock(i + 6, j + 9, k + 4, -39);
                            world.setBlock(i + 6, j + 9, k + 5, -39);
                            world.setBlock(i + 6, j + 10, k + 7, -39);
                            world.setBlock(i + 7, j + 0, k + 5, -39);
                            world.setBlock(i + 7, j + 4, k + 3, Block.wood.blockID, 8,3);
                            world.setBlock(i + 7, j + 4, k + 7, Block.wood.blockID, 8,3);
                            world.setBlock(i + 7, j + 6, k + 1, Block.wood.blockID, 4,3);
                            world.setBlock(i + 7, j + 6, k + 4, Block.wood.blockID, 4,3);
                            world.setBlock(i + 7, j + 7, k + 7, Block.wood.blockID, 8,3);
                            world.setBlock(i + 7, j + 8, k + 5, -39);
                            world.setBlock(i + 7, j + 8, k + 7, Block.wood.blockID);
                            world.setBlock(i + 7, j + 9, k + 4, -39);
                            world.setBlock(i + 7, j + 9, k + 5, -39);
                            world.setBlock(i + 8, j + 0, k + 5, -39);
                            world.setBlock(i + 8, j + 7, k + 4, Block.wood.blockID, 4,3);
                            world.setBlock(i + 8, j + 7, k + 8, Block.wood.blockID, 8,3);
                            world.setBlock(i + 8, j + 8, k + 5, -39);
                            world.setBlock(i + 9, j + 7, k + 3, Block.wood.blockID, 4,3);
                            world.setBlock(i + 10, j + 1, k + 0, -39);
                            return false;
                            }
                            
                            }
                            

                            L’event:

                            public class TutorialEventClass
                            {
                            private int BlockID;
                            /** Used to make the sapling grow the tree **/
                            @ForgeSubscribe
                            public void bonemealUsed(BonemealEvent event)
                            {
                            if(event.ID == ModCraftech.TutorialSapling.blockID)
                            
                            {
                            System.out.println("test2");
                            ((BlockTutorialSapling)ModCraftech.TutorialSapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
                            event.setResult(Result.ALLOW);
                            }
                            }
                            }
                            

                            Merci d’avance pour t’a reponce
                            Cordialement Sidney

                            1 réponse Dernière réponse Répondre Citer 0
                            • robin4002R Hors-ligne
                              robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                              dernière édition par

                              Et le crash report ?

                              1 réponse Dernière réponse Répondre Citer 0
                              • S Hors-ligne
                                sisidney
                                dernière édition par

                                Le voila

                                2014-04-22 22:12:29 [INFO] [STDERR] net.minecraft.util.ReportedException: Ticking memory connection
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                                2014-04-22 22:12:29 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: -39
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.world.chunk.storage.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:88)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:705)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.world.World.setBlock(World.java:559)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.world.World.setBlock(World.java:721)
                                2014-04-22 22:12:29 [INFO] [STDERR] at modCrafttech.common.WorldGenTutorialTree.generate(WorldGenTutorialTree.java:38)
                                2014-04-22 22:12:29 [INFO] [STDERR] at modCrafttech.common.BlockTutorialSapling.growTree(BlockTutorialSapling.java:43)
                                2014-04-22 22:12:29 [INFO] [STDERR] at modCrafttech.common.TutorialEventClass.bonemealUsed(TutorialEventClass.java:18)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraftforge.event.ASMEventHandler_4_TutorialEventClass_bonemealUsed_BonemealEvent.invoke(.dynamic)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.item.ItemDye.onItemUse(ItemDye.java:82)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:434)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
                                2014-04-22 22:12:29 [INFO] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
                                2014-04-22 22:12:29 [INFO] [STDERR] … 6 more
                                2014-04-22 22:12:29 [SEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
                                net.minecraft.util.ReportedException: Ticking memory connection
                                at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
                                at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
                                at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
                                at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
                                at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
                                at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
                                at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
                                Caused by: java.lang.ArrayIndexOutOfBoundsException: -39
                                at net.minecraft.world.chunk.storage.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:88)
                                at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:705)
                                at net.minecraft.world.World.setBlock(World.java:559)
                                at net.minecraft.world.World.setBlock(World.java:721)
                                at modCrafttech.common.WorldGenTutorialTree.generate(WorldGenTutorialTree.java:38)
                                at modCrafttech.common.BlockTutorialSapling.growTree(BlockTutorialSapling.java:43)
                                at modCrafttech.common.TutorialEventClass.bonemealUsed(TutorialEventClass.java:18)
                                at net.minecraftforge.event.ASMEventHandler_4_TutorialEventClass_bonemealUsed_BonemealEvent.invoke(.dynamic)
                                at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
                                at net.minecraft.item.ItemDye.onItemUse(ItemDye.java:82)
                                at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
                                at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:434)
                                at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
                                at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
                                at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
                                at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
                                at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
                                … 6 more
                                2014-04-22 22:12:29 [SEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\sidney-pc\Desktop\Changement de map 1.4.7 1.6.4\TEST ABRE\forge\mcp\jars\.\crash-reports\crash-2014-04-22_22.12.29-server.txt
                                2014-04-22 22:12:29 [INFO] [Minecraft-Server] Stopping server
                                2014-04-22 22:12:29 [INFO] [Minecraft-Server] Saving players
                                2014-04-22 22:12:29 [INFO] [Minecraft-Server] Player229 left the game
                                2014-04-22 22:12:29 [INFO] [Minecraft-Server] Saving worlds
                                2014-04-22 22:12:29 [INFO] [Minecraft-Server] Saving chunks for level 'world'/Overworld
                                2014-04-22 22:12:30 [INFO] [Minecraft-Server] Saving chunks for level 'world'/Nether
                                2014-04-22 22:12:30 [INFO] [Minecraft-Server] Saving chunks for level 'world'/The End
                                2014-04-22 22:12:36 [INFO] [ForgeModLoader] Unloading dimension 0
                                2014-04-22 22:12:36 [INFO] [ForgeModLoader] Unloading dimension -1
                                2014-04-22 22:12:36 [INFO] [ForgeModLoader] Unloading dimension 1
                                2014-04-22 22:12:36 [INFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
                                2014-04-22 22:12:37 [INFO] [STDERR] java.lang.ArrayIndexOutOfBoundsException: -39
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.world.chunk.storage.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:88)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:705)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.world.World.setBlock(World.java:559)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.world.World.setBlock(World.java:721)
                                2014-04-22 22:12:37 [INFO] [STDERR] at modCrafttech.common.WorldGenTutorialTree.generate(WorldGenTutorialTree.java:38)
                                2014-04-22 22:12:37 [INFO] [STDERR] at modCrafttech.common.BlockTutorialSapling.growTree(BlockTutorialSapling.java:43)
                                2014-04-22 22:12:37 [INFO] [STDERR] at modCrafttech.common.TutorialEventClass.bonemealUsed(TutorialEventClass.java:18)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraftforge.event.ASMEventHandler_4_TutorialEventClass_bonemealUsed_BonemealEvent.invoke(.dynamic)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.item.ItemDye.onItemUse(ItemDye.java:82)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:401)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1390)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1868)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.client.main.Main.main(Main.java:93)
                                2014-04-22 22:12:37 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                2014-04-22 22:12:37 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:37 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:37 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                                2014-04-22 22:12:37 [INFO] [STDERR] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                                2014-04-22 22:12:38 [INFO] [STDOUT] –-- Minecraft Crash Report ----
                                2014-04-22 22:12:38 [INFO] [STDOUT] // Sorry :(
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] Time: 22/04/14 22:12
                                2014-04-22 22:12:38 [INFO] [STDOUT] Description: Unexpected error
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] java.lang.ArrayIndexOutOfBoundsException: -39
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.chunk.storage.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:88)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:705)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.World.setBlock(World.java:559)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.World.setBlock(World.java:721)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.WorldGenTutorialTree.generate(WorldGenTutorialTree.java:38)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.BlockTutorialSapling.growTree(BlockTutorialSapling.java:43)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.TutorialEventClass.bonemealUsed(TutorialEventClass.java:18)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler_4_TutorialEventClass_bonemealUsed_BonemealEvent.invoke(.dynamic)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemDye.onItemUse(ItemDye.java:82)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:401)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1390)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1868)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:910)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:838)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
                                2014-04-22 22:12:38 [INFO] [STDOUT] –-------------------------------------------------------------------------------------
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] – Head --
                                2014-04-22 22:12:38 [INFO] [STDOUT] Stacktrace:
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.chunk.storage.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:88)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:705)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.World.setBlock(World.java:559)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.world.World.setBlock(World.java:721)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.WorldGenTutorialTree.generate(WorldGenTutorialTree.java:38)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.BlockTutorialSapling.growTree(BlockTutorialSapling.java:43)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at modCrafttech.common.TutorialEventClass.bonemealUsed(TutorialEventClass.java:18)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler_4_TutorialEventClass_bonemealUsed_BonemealEvent.invoke(.dynamic)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemDye.onItemUse(ItemDye.java:82)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:401)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1390)
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] – Affected level --
                                2014-04-22 22:12:38 [INFO] [STDOUT] Details:
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level name: MpServer
                                2014-04-22 22:12:38 [INFO] [STDOUT] All players: 1 total; [EntityClientPlayerMP['Player229'/154, l='MpServer', x=90,39, y=95,59, z=249,64]]
                                2014-04-22 22:12:38 [INFO] [STDOUT] Chunk stats: MultiplayerChunkCache: 441
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level seed: 0
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level generator: ID 00 - default, ver 1\. Features enabled: false
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level generator options:
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level spawn location: World: (23,73,251), Chunk: (at 7,4,11 in 1,15; contains blocks 16,0,240 to 31,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level time: 61319311 game time, 105001618 day time
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level dimension: 0
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level storage version: 0x00000 - Unknown?
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
                                2014-04-22 22:12:38 [INFO] [STDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
                                2014-04-22 22:12:38 [INFO] [STDOUT] Forced entities: 91 total; [EntityCreeper['Creeper'/410, l='MpServer', x=29,50, y=12,00, z=188,50], EntitySquid['Squid'/137, l='MpServer', x=126,25, y=54,31, z=224,66], EntitySkeleton['Skeleton'/409, l='MpServer', x=33,50, y=17,00, z=214,50], EntityBat['Bat'/140, l='MpServer', x=114,25, y=41,10, z=268,25], EntityZombie['Zombie'/412, l='MpServer', x=30,50, y=12,00, z=186,50], EntityBat['Bat'/142, l='MpServer', x=121,25, y=34,10, z=272,56], EntitySquid['Squid'/129, l='MpServer', x=109,69, y=49,66, z=285,75], EntitySquid['Squid'/131, l='MpServer', x=124,31, y=53,34, z=199,25], EntitySkeleton['Skeleton'/133, l='MpServer', x=117,50, y=15,00, z=239,13], EntityBat['Bat'/132, l='MpServer', x=121,47, y=16,10, z=205,69], EntitySpider['Spider'/135, l='MpServer', x=117,75, y=15,00, z=234,88], EntitySkeleton['Skeleton'/405, l='MpServer', x=114,31, y=14,00, z=227,60], EntitySpider['Spider'/134, l='MpServer', x=111,97, y=16,00, z=233,94], EntityCreeper['Creeper'/152, l='MpServer', x=130,50, y=42,00, z=315,50], EntityClientPlayerMP['Player229'/154, l='MpServer', x=90,39, y=95,59, z=249,64], EntityBat['Bat'/145, l='MpServer', x=115,49, y=15,96, z=208,33], EntitySquid['Squid'/146, l='MpServer', x=133,50, y=54,38, z=209,22], EntityCreeper['Creeper'/147, l='MpServer', x=141,50, y=28,00, z=235,50], EntitySquid['Squid'/149, l='MpServer', x=132,47, y=46,00, z=256,50], EntityBat['Bat'/150, l='MpServer', x=132,49, y=40,21, z=225,93], EntitySkeleton['Skeleton'/151, l='MpServer', x=138,50, y=18,00, z=261,50], EntityItem['item.item.rottenFlesh'/512, l='MpServer', x=66,09, y=68,13, z=263,00], EntityBat['Bat'/524, l='MpServer', x=71,25, y=21,00, z=295,82], EntityBat['Bat'/520, l='MpServer', x=142,84, y=20,17, z=190,32], EntityZombie['Zombie'/532, l='MpServer', x=130,50, y=18,00, z=249,50], EntityCreeper['Creeper'/49, l='MpServer', x=14,59, y=42,00, z=222,97], EntityZombie['Zombie'/529, l='MpServer', x=142,50, y=18,00, z=249,50], EntitySpider['Spider'/55, l='MpServer', x=13,63, y=44,00, z=285,72], EntityZombie['Zombie'/528, l='MpServer', x=142,50, y=18,00, z=252,50], EntityBat['Bat'/53, l='MpServer', x=9,76, y=14,73, z=239,06], EntitySpider['Spider'/530, l='MpServer', x=136,50, y=18,00, z=260,50], EntityBat['Bat'/52, l='MpServer', x=30,48, y=13,53, z=249,77], EntityCreeper['Creeper'/59, l='MpServer', x=21,56, y=23,00, z=251,44], EntityCreeper['Creeper'/58, l='MpServer', x=18,50, y=21,00, z=229,50], EntityBat['Bat'/57, l='MpServer', x=19,44, y=16,10, z=224,50], EntityCreeper['Creeper'/56, l='MpServer', x=27,00, y=12,00, z=239,59], EntityCreeper['Creeper'/62, l='MpServer', x=20,66, y=44,00, z=303,50], EntityZombie['Zombie'/60, l='MpServer', x=19,50, y=23,00, z=253,50], EntityCreeper['Creeper'/479, l='MpServer', x=70,50, y=42,00, z=181,50], EntitySkeleton['Skeleton'/69, l='MpServer', x=47,31, y=12,00, z=216,44], EntitySkeleton['Skeleton'/70, l='MpServer', x=38,78, y=12,00, z=213,63], EntityZombie['Zombie'/71, l='MpServer', x=45,00, y=17,00, z=221,34], EntitySpider['Spider'/64, l='MpServer', x=19,41, y=44,00, z=303,22], EntitySpider['Spider'/65, l='MpServer', x=24,22, y=44,00, z=298,44], EntitySpider['Spider'/66, l='MpServer', x=18,56, y=44,00, z=294,75], EntityCreeper['Creeper'/76, l='MpServer', x=40,50, y=25,00, z=227,50], EntityZombie['Zombie'/78, l='MpServer', x=44,50, y=12,00, z=248,50], EntityZombie['Zombie'/79, l='MpServer', x=43,50, y=12,00, z=246,50], EntityZombie['Zombie'/73, l='MpServer', x=39,50, y=12,00, z=227,50], EntityZombie['Zombie'/74, l='MpServer', x=32,94, y=13,00, z=236,41], EntitySkeleton['Skeleton'/75, l='MpServer', x=41,00, y=12,00, z=224,00], EntityBat['Bat'/85, l='MpServer', x=82,58, y=21,43, z=285,44], EntitySlime['Slime'/84, l='MpServer', x=61,31, y=13,00, z=288,31], EntitySkeleton['Skeleton'/81, l='MpServer', x=48,50, y=12,00, z=216,03], EntitySkeleton['Skeleton'/80, l='MpServer', x=51,59, y=13,00, z=212,13], EntitySkeleton['Skeleton'/83, l='MpServer', x=50,25, y=23,00, z=270,16], EntityZombie['Zombie'/93, l='MpServer', x=78,06, y=63,00, z=233,50], EntityCreeper['Creeper'/95, l='MpServer', x=72,53, y=38,00, z=285,97], EntitySpider['Spider'/94, l='MpServer', x=66,50, y=68,50, z=250,13], EntityCreeper['Creeper'/89, l='MpServer', x=79,50, y=43,00, z=185,50], EntityCreeper['Creeper'/91, l='MpServer', x=74,69, y=30,00, z=202,50], EntityCreeper['Creeper'/329, l='MpServer', x=32,50, y=47,00, z=281,50], EntityCreeper['Creeper'/90, l='MpServer', x=76,00, y=27,00, z=192,41], EntitySquid['Squid'/102, l='MpServer', x=67,41, y=60,81, z=304,25], EntitySpider['Spider'/100, l='MpServer', x=56,72, y=18,00, z=309,72], EntityBat['Bat'/101, l='MpServer', x=79,25, y=18,10, z=310,25], EntitySquid['Squid'/98, l='MpServer', x=70,34, y=59,00, z=296,72], EntityZombie['Zombie'/99, l='MpServer', x=71,09, y=17,00, z=315,25], EntitySkeleton['Skeleton'/96, l='MpServer', x=71,50, y=38,00, z=287,88], EntityZombie['Zombie'/507, l='MpServer', x=60,50, y=24,00, z=271,50], EntitySkeleton['Skeleton'/110, l='MpServer', x=80,78, y=22,00, z=260,66], EntityZombie['Zombie'/111, l='MpServer', x=81,50, y=23,00, z=264,03], EntityCreeper['Creeper'/108, l='MpServer', x=81,41, y=40,00, z=199,06], EntityZombie['Zombie'/109, l='MpServer', x=92,34, y=28,00, z=210,09], EntityCreeper['Creeper'/106, l='MpServer', x=86,38, y=42,00, z=184,06], EntitySkeleton['Skeleton'/107, l='MpServer', x=90,88, y=29,00, z=205,56], EntityBat['Bat'/118, l='MpServer', x=78,07, y=38,00, z=295,50], EntityBat['Bat'/117, l='MpServer', x=94,84, y=34,68, z=295,43], EntitySquid['Squid'/116, l='MpServer', x=102,69, y=54,00, z=279,50], EntityCreeper['Creeper'/115, l='MpServer', x=88,00, y=68,00, z=261,44], EntityItem['item.item.dyePowder.brown'/114, l='MpServer', x=81,41, y=68,13, z=260,72], EntityItem['item.item.dyePowder.brown'/113, l='MpServer', x=82,38, y=67,13, z=266,66], EntityBat['Bat'/112, l='MpServer', x=79,26, y=39,00, z=240,07], EntitySkeleton['Skeleton'/127, l='MpServer', x=105,50, y=22,00, z=273,50], EntitySkeleton['Skeleton'/126, l='MpServer', x=99,50, y=24,00, z=278,91], EntityZombie['Zombie'/124, l='MpServer', x=111,53, y=15,00, z=226,94], EntityCreeper['Creeper'/481, l='MpServer', x=71,50, y=42,00, z=182,50], EntityZombie['Zombie'/123, l='MpServer', x=101,50, y=37,00, z=211,50], EntityCreeper['Creeper'/480, l='MpServer', x=70,50, y=42,00, z=178,50], EntityBat['Bat'/122, l='MpServer', x=111,63, y=34,10, z=212,75], EntitySlime['Slime'/120, l='MpServer', x=98,78, y=29,00, z=192,78]]
                                2014-04-22 22:12:38 [INFO] [STDOUT] Retry entities: 0 total; []
                                2014-04-22 22:12:38 [INFO] [STDOUT] Server brand: fml,forge
                                2014-04-22 22:12:38 [INFO] [STDOUT] Server type: Integrated singleplayer server
                                2014-04-22 22:12:38 [INFO] [STDOUT] Stacktrace:
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2312)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:863)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(Main.java:93)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at java.lang.reflect.Method.invoke(Unknown Source)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
                                2014-04-22 22:12:38 [INFO] [STDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
                                2014-04-22 22:12:38 [INFO] [STDOUT]
                                2014-04-22 22:12:38 [INFO] [STDOUT] – System Details --
                                2014-04-22 22:12:38 [INFO] [STDOUT] Details:
                                2014-04-22 22:12:38 [INFO] [STDOUT] Minecraft Version: 1.6.4
                                2014-04-22 22:12:38 [INFO] [STDOUT] Operating System: Windows 8 (amd64) version 6.2
                                2014-04-22 22:12:38 [INFO] [STDOUT] Java Version: 1.7.0_25, Oracle Corporation
                                2014-04-22 22:12:38 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
                                2014-04-22 22:12:38 [INFO] [STDOUT] Memory: 784556152 bytes (748 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
                                2014-04-22 22:12:38 [INFO] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                2014-04-22 22:12:38 [INFO] [STDOUT] AABB Pool Size: 20425 (1143800 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
                                2014-04-22 22:12:38 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
                                2014-04-22 22:12:38 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63
                                2014-04-22 22:12:38 [INFO] [STDOUT] FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 4 mods loaded, 4 mods active
                                2014-04-22 22:12:38 [INFO] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                2014-04-22 22:12:38 [INFO] [STDOUT] FML{6.4.45.953} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                2014-04-22 22:12:38 [INFO] [STDOUT] Forge{9.11.1.953} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                2014-04-22 22:12:38 [INFO] [STDOUT] modcraftech{1.0.0} [ModCraftech] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                2014-04-22 22:12:38 [INFO] [STDOUT] Launched Version: 1.6
                                2014-04-22 22:12:38 [INFO] [STDOUT] LWJGL: 2.9.0
                                2014-04-22 22:12:38 [INFO] [STDOUT] OpenGL: AMD Radeon HD 7520G GL version 4.3.12798 Compatibility Profile Context 13.350.1005.0, ATI Technologies Inc.
                                2014-04-22 22:12:38 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
                                2014-04-22 22:12:38 [INFO] [STDOUT] Type: Client (map_client.txt)
                                2014-04-22 22:12:38 [INFO] [STDOUT] Resource Pack: Default
                                2014-04-22 22:12:38 [INFO] [STDOUT] Current Language: English (US)
                                2014-04-22 22:12:38 [INFO] [STDOUT] Profiler Position: N/A (disabled)
                                2014-04-22 22:12:38 [INFO] [STDOUT] Vec3 Pool Size: 8360 (468160 bytes; 0 MB) allocated, 17 (952 bytes; 0 MB) used
                                2014-04-22 22:12:38 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\sidney-pc\Desktop\Changement de map 1.4.7 1.6.4\TEST ABRE\forge\mcp\jars\.\crash-reports\crash-2014-04-22_22.12.38-client.txt
                                AL lib: (EE) alc_cleanup: 1 device not closed
                                
                                
                                1 réponse Dernière réponse Répondre Citer 0
                                • robin4002R Hors-ligne
                                  robin4002 Moddeurs confirmés Rédacteurs Administrateurs
                                  dernière édition par

                                  Ha ba oui, tu as des world.setBlock(x, y, z, -39), il n’y a pas de bloc d’id -39

                                  1 réponse Dernière réponse Répondre Citer 0
                                  • S Hors-ligne
                                    sisidney
                                    dernière édition par

                                    Merci beaucoup ! Ca fontionne !

                                    Je vais sans doute refaire un programme pour “desiné” des arbre et ainsi avoir le code en java de l’arbre a la fin 🙂

                                    1 réponse Dernière réponse Répondre Citer 0
                                    • 1 / 1
                                    • Premier message
                                      Dernier message
                                    Design by Woryk
                                    ContactMentions Légales

                                    MINECRAFT FORGE FRANCE © 2024

                                    Powered by NodeBB