Modding FR

val166

Bucheron
5 Mai 2011
753
11
13
bon sa fait longtemps que j'avias pas poster d'erreur ici donc je demande votre aide svp pour comprendre se qu'il cloche merci

Code:
== MCP v4.3 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
 bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java fai
led.
Return code : 1

== ERRORS FOUND ==

src\minecraft\net\minecraft\src\SaveOldDir.java:34: unreachable statement
if(worldprovider instanceof WorldProviderSlime)
^

1 error
==================

> Done in 22.02 seconds
> Recompiling server...
!! Can not find server sources !!
Appuyez sur une touche pour continuer...
 

Zangestunaka

Bucheron
7 Mai 2011
102
0
11
Hello, je voudrais créer un nouveau bateau mais je ne sais pas comment le déclarer dans mod_Mymod. Quelqu'un pourrait-il m'aider ?
 

Zangestunaka

Bucheron
7 Mai 2011
102
0
11
non sa marche pas

Code:
package net.minecraft.src;
public class Mod_Bateau extends BaseMod
{
public Mod_Bateau()
{

        entityRenderMap.put(net.minecraft.src.EntityBoatMetal.class, new RenderBoatMetal());


}

public String Version()
{
return "1.5_01";
}


}


J'ai aussi un fichier entity***, Render***, et Model***

Avez vous une idée :Question:
 

mysterioxes

Bucheron
8 Juin 2011
118
0
11
bonjour chez moddeur aujourd'hui un autre problème est venu a moi je me suis mit en tête de faire une échelle mais voila il y a a des erreur voila le mod_mymod , blockmyblock et les erreur:

mod_mymod

Code:
	package net.minecraft.src;

	import java.util.Map;

		public class mod_mh extends BaseMod
		{
		public mod_mh()
	{
		ModLoader.RegisterBlock(Liane-echelle);
	}
	{
		    ModLoader.AddRecipe(newItemStack(Liane-echelle,1),newObject[]
        {"##","##","##",Character.valueOf('#'), Block.cobblestone});
	}
	
    Liane-echelle = (new BlockLadder(65, 83)).setHardness(0.4F).setStepSound(soundWoodFootstep).setBlockName("Liane Grimpante").disableNeighborNotifyOnMetadataChange();

		public String Version()
		{
		return "1.7_01";
		}

		}
block my block
Code:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode 

package net.minecraft.src;

import java.util.Random;

// Referenced classes of package net.minecraft.src:
//            Block, Material, World, AxisAlignedBB

public class BlockLiane-echelle extends BlockLadder
{

    protected BlockLiane-echelle(int i, int j)
    {
        super(i, j, Material.circuits);
    }

    public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
    {
        int l = world.getBlockMetadata(i, j, k);
        float f = 0.125F;
        if(l == 2)
        {
            setBlockBounds(0.0F, 0.0F, 1.0F - f, 1.0F, 1.0F, 1.0F);
        }
        if(l == 3)
        {
            setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f);
        }
        if(l == 4)
        {
            setBlockBounds(1.0F - f, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
        }
        if(l == 5)
        {
            setBlockBounds(0.0F, 0.0F, 0.0F, f, 1.0F, 1.0F);
        }
        return super.getCollisionBoundingBoxFromPool(world, i, j, k);
    }

    public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
    {
        int l = world.getBlockMetadata(i, j, k);
        float f = 0.125F;
        if(l == 2)
        {
            setBlockBounds(0.0F, 0.0F, 1.0F - f, 1.0F, 1.0F, 1.0F);
        }
        if(l == 3)
        {
            setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, f);
        }
        if(l == 4)
        {
            setBlockBounds(1.0F - f, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
        }
        if(l == 5)
        {
            setBlockBounds(0.0F, 0.0F, 0.0F, f, 1.0F, 1.0F);
        }
        return super.getSelectedBoundingBoxFromPool(world, i, j, k);
    }

    public boolean isOpaqueCube()
    {
        return false;
    }

    public boolean renderAsNormalBlock()
    {
        return false;
    }

    public int getRenderType()
    {
        return 8;
    }

    public boolean canPlaceBlockAt(World world, int i, int j, int k)
    {
        if(world.func_28100_h(i - 1, j, k))
        {
            return true;
        }
        if(world.func_28100_h(i + 1, j, k))
        {
            return true;
        }
        if(world.func_28100_h(i, j, k - 1))
        {
            return true;
        }
        return world.func_28100_h(i, j, k + 1);
    }

    public void onBlockPlaced(World world, int i, int j, int k, int l)
    {
        int i1 = world.getBlockMetadata(i, j, k);
        if((i1 == 0 || l == 2) && world.func_28100_h(i, j, k + 1))
        {
            i1 = 2;
        }
        if((i1 == 0 || l == 3) && world.func_28100_h(i, j, k - 1))
        {
            i1 = 3;
        }
        if((i1 == 0 || l == 4) && world.func_28100_h(i + 1, j, k))
        {
            i1 = 4;
        }
        if((i1 == 0 || l == 5) && world.func_28100_h(i - 1, j, k))
        {
            i1 = 5;
        }
        world.setBlockMetadataWithNotify(i, j, k, i1);
    }

    public void onNeighborBlockChange(World world, int i, int j, int k, int l)
    {
        int i1 = world.getBlockMetadata(i, j, k);
        boolean flag = false;
        if(i1 == 2 && world.func_28100_h(i, j, k + 1))
        {
            flag = true;
        }
        if(i1 == 3 && world.func_28100_h(i, j, k - 1))
        {
            flag = true;
        }
        if(i1 == 4 && world.func_28100_h(i + 1, j, k))
        {
            flag = true;
        }
        if(i1 == 5 && world.func_28100_h(i - 1, j, k))
        {
            flag = true;
        }
        if(!flag)
        {
            dropBlockAsItem(world, i, j, k, i1);
            world.setBlockWithNotify(i, j, k, 0);
        }
        super.onNeighborBlockChange(world, i, j, k, l);
    }

    public int quantityDropped(Random random)
    {
        return 1;
    }
}
erreurs
Code:
== MCP v4.2 ==
> Recompiling client...
javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin
put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d
 bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec
raft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java fai
led.
Return code : 1

== ERRORS FOUND ==

src\minecraft\net\minecraft\src\BlockLiane-echelle.java:12: '{' expected
public class BlockLiane-echelle extends BlockLadder
^

src\minecraft\net\minecraft\src\BlockLiane-echelle.java:15: <identifier> expecte
d
protected BlockLiane-echelle(int i, int j)
^

src\minecraft\net\minecraft\src\BlockLiane-echelle.java:15: invalid method decla
ration; return type required
protected BlockLiane-echelle(int i, int j)
^

src\minecraft\net\minecraft\src\mod_mh.java:46: <identifier> expected
Liane-echelle = (new BlockLadder(65, 83)).setHardness(0.4F).setStepSound(soundWo
odFootstep).setBlockName("Liane Grimpante").disableNeighborNotifyOnMetadataChang
e();
^

src\minecraft\net\minecraft\src\mod_mh.java:46: <identifier> expected
Liane-echelle = (new BlockLadder(65, 83)).setHardness(0.4F).setStepSound(soundWo
odFootstep).setBlockName("Liane Grimpante").disableNeighborNotifyOnMetadataChang
e();
^

5 errors
==================

> Done in 1.16 seconds
> Recompiling server...
!! Can not find server sources !!
Appuyez sur une touche pour continuer...
merci de votre comprehansion