MFF

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

    Création de dynamite

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    31 Messages 8 Publieurs 6.5k 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.
    • YeyvoY Hors-ligne
      Yeyvo
      dernière édition par

      Je voudrais bien créer un dynamite mais pour étre franc avec vous  je n’ai aucune idée de comment faire 
      je sais que sais une entité donc je vas sur liste des tutoriel “Entity” et la il n’''y a que des mobs bon pour faire court 
      pourriez-vous me montré comment faire la dynamite vous serais le prof et moi l’élevé

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

        @‘Yeyvo’:

        Je voudrais bien créer un dynamite mais pour étre franc avec vous  je n’ai aucune idée de comment faire 
        je sais que sais une entité donc je vas sur liste des tutoriel “Entity” et la il n’''y a que des mobs bon pour faire court 
        pourriez-vous me montré comment faire la dynamite vous serais le prof et moi l’élevé

        Comme pour l’autre va voir les sources du mod balkon weapons pour t’inspiré du code

        Voila ma signature

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

          Je ne veux pas copié un code et modifier quelque truc mais apprendre a en faire donc il me faudrais quelqu’un qui peut m’expliqué le fonctionnement … un peut comme un tuto

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

            Alors tu pourrais poster les lignes que tu ne comprends pas et on pourrait te les expliquer ici 🙂

            Envoyé de mon RAINBOW LITE 4G en utilisant Tapatalk

            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 réponse Dernière réponse Répondre Citer 0
            • SCAREXS Hors-ligne
              SCAREX
              dernière édition par

              Pour ne pas te donner tout le code, voici des idées :

              • créer un item et faire apparaître une entité dans la fonction onItemRightClick
              • créer une entité comme la flèche par exemple qui est soumise à la gravité
              • si tu regardes un peu le code et que tu le modifie tu peux faire en sorte que lorsque la dynamite touche le sol elle explose ou qu’elle explose après un certain temps

              PS : si vraiment tu n’y arrives pas je peux te donner du code qui t’aide mais si tu ne fais rien par toi même tu n’arriveras jamais à rien

              Site web contenant mes scripts : http://SCAREXgaming.github.io

              Pas de demandes de support par MP ni par skype SVP.
              Je n'accepte sur skype que l…

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

                Question = comment je pourrait faire apparaître une entity a partir d’un item?

                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

                  world.spawnEntityInWorld(entity);

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

                    EntityProjectile:

                    les erreur sans dans :    * ticksInGround  = 0;
                                                         *inGround1++;
                                                         *if(t != 0 && inGround1 >= t)
                                                         *inGround1 = 0;

                    public class EntityProjectile extends EntityArrow 
                    implements IThrowableEntity
                    {
                    public EntityProjectile(World world)
                       {
                           super(world);
                           xTile = -1;
                           yTile = -1;
                           zTile = -1;
                           inTile = null;
                           inData = 0;
                           inGround1 = false;
                           arrowShake = 0;
                           ticksInAir = 0;
                           yOffset = 0.0F;
                           pickupMode = 0;
                           extraDamage = 0.0F;
                           knockBack = 0;
                           setSize(0.5F, 0.5F);
                       }
                    
                       protected void entityInit()
                       {
                           super.entityInit();
                       }
                    
                       public Entity getThrower()
                       {
                           return shootingEntity;
                       }
                    
                       public void setThrower(Entity entity)
                       {
                           shootingEntity = entity;
                       }
                    
                       protected void setPickupModeFromEntity(EntityLivingBase entityliving)
                       {
                           if(entityliving instanceof EntityPlayer)
                           {
                               if(((EntityPlayer)entityliving).capabilities.isCreativeMode)
                                   setPickupMode(2);
                           } else
                           {
                               setPickupMode(0);
                           }
                       }
                    
                       public void setThrowableHeading(double x, double y, double z, float speed, 
                               float deviation)
                       {
                           float f2 = MathHelper.sqrt_double(x * x + y * y + z * z);
                           x /= f2;
                           y /= f2;
                           z /= f2;
                           x += rand.nextGaussian() * 0.0074999998323619366D * (double)deviation;
                           y += rand.nextGaussian() * 0.0074999998323619366D * (double)deviation;
                           z += rand.nextGaussian() * 0.0074999998323619366D * (double)deviation;
                           x *= speed;
                           y *= speed;
                           z *= speed;
                           motionX  = x;
                           motionY  = y;
                                motionZ  = z;
                           float f3 = MathHelper.sqrt_double(x * x + z * z);
                           prevRotationYaw  = rotationYaw  = (float)((Math.atan2(x, z) * 180D) / Math.PI);
                           prevRotationPitch  = rotationPitch  = (float)((Math.atan2(y, f3) * 180D) / Math.PI);
                           inGround1 = 0;
                       }
                    
                       public void func_70016_h(double d, double d1, double d2)
                       {
                           motionX  = d;
                           motionY  = d1;
                                motionZ  = d2;
                           if(aimRotation() && prevRotationPitch  == 0.0F && prevRotationYaw  == 0.0F)
                           {
                               float f = MathHelper.sqrt_double(d * d + d2 * d2);
                               prevRotationYaw  = rotationYaw  = (float)((Math.atan2(d, d2) * 180D) / Math.PI);
                               prevRotationPitch  = rotationPitch  = (float)((Math.atan2(d1, f) * 180D) / Math.PI);
                               setLocationAndAngles(posX, posY, posZ, rotationYaw , rotationPitch );
                               ticksInGround  = 0;
                           }
                       }
                    
                       public void onUpdate()
                       {
                        onEntityUpdate();
                       }
                    
                       public void onEntityUpdate()
                       {
                           super.onEntityUpdate();
                           if(aimRotation())
                           {
                               float f = MathHelper.sqrt_double(motionX  * motionX  + motionZ * motionZ);
                               prevRotationYaw  = rotationYaw  = (float)((Math.atan2(motionX , motionZ) * 180D) / Math.PI);
                               prevRotationPitch  = rotationPitch  = (float)((Math.atan2(motionY , f) * 180D) / Math.PI);
                           }
                           Block i = worldObj.getBlock(xTile, yTile, zTile);
                           if(i != null)
                           {
                               i.setBlockBoundsBasedOnState(worldObj, xTile, yTile, zTile);
                               AxisAlignedBB axisalignedbb = i.getCollisionBoundingBoxFromPool(worldObj, xTile, yTile, zTile);
                               if(axisalignedbb != null && axisalignedbb.isVecInside(Vec3.createVectorHelper(posX, posY, posZ)))
                                   inGround1 = true;
                           }
                           if(arrowShake > 0)
                               arrowShake–;
                           if(inGround1)
                           {
                               Block j = worldObj.getBlock(xTile, yTile, zTile);
                               int k = worldObj.getBlockMetadata(xTile, yTile, zTile);
                               if(j == inTile && k == inData)
                               {
                                   inGround1++;
                                   int t = getMaxLifetime();
                                   if(t != 0 && inGround1 >= t)
                                    setDead();
                               } else
                               {
                                   inGround1 = false;
                                   motionX  *= rand.nextFloat() * 0.2F;
                                   motionY  *= rand.nextFloat() * 0.2F;
                                   motionZ *= rand.nextFloat() * 0.2F;
                                   inGround1 = 0;
                                   ticksInAir = 0;
                               }
                               return;
                           }
                           ticksInAir++;
                           Vec3 vec3d = Vec3.createVectorHelper(posX, posY, posZ);
                           Vec3 vec3d1 = Vec3.createVectorHelper(posX + motionX , posY + motionY , posZ + motionZ);
                           MovingObjectPosition movingobjectposition = worldObj.func_147447_a(vec3d, vec3d1, false, true, false);
                           vec3d = Vec3.createVectorHelper(posX, posY, posZ);
                           vec3d1 = Vec3.createVectorHelper(posX + motionX , posY + motionY , posZ + motionZ);
                           if(movingobjectposition != null)
                               vec3d1 = Vec3.createVectorHelper(movingobjectposition.hitVec.xCoord , movingobjectposition.hitVec.yCoord , movingobjectposition.hitVec.zCoord );
                           Entity entity = null;
                           List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.addCoord(motionX , motionY , motionZ).expand(1.0D, 1.0D, 1.0D));
                           double d = 0.0D;
                           for(int l = 0; l < list.size(); l++)
                           {
                               Entity entity1 = (Entity)list.get(l);
                               if(!entity1.canBeCollidedWith() || entity1 == shootingEntity && ticksInAir < 5)
                                   continue;
                               float f4 = 0.3F;
                               AxisAlignedBB axisalignedbb1 = entity1.boundingBox.expand(f4, f4, f4);
                               MovingObjectPosition movingobjectposition1 = axisalignedbb1.calculateIntercept(vec3d, vec3d1);
                               if(movingobjectposition1 == null)
                                   continue;
                               double d1 = vec3d.distanceTo(movingobjectposition1.hitVec);
                               if(d1 < d || d == 0.0D)
                               {
                                   entity = entity1;
                                   d = d1;
                               }
                           }
                    
                           if(entity != null)
                               movingobjectposition = new MovingObjectPosition(entity);
                           if(movingobjectposition != null)
                               if(movingobjectposition.entityHit != null)
                                   onEntityHit(movingobjectposition.entityHit);
                               else
                                   onGroundHit(movingobjectposition);
                           if(getIsCritical())
                           {
                               for(int i1 = 0; i1 < 2; i1++)
                                   worldObj.spawnParticle("crit", posX + (motionX * i1) / 4D, posY + (motionY * i1) / 4D, posZ + (motionZ * i1) / 4D, -motionX, -motionY + 0.20000000000000000001D, -motionZ);
                    
                           }
                           posX += motionX ;
                           posY += motionY ;
                           posZ += motionZ;
                           if(aimRotation())
                           {
                               float f2 = MathHelper.sqrt_double(motionX  * motionX  + motionZ * motionZ);
                               rotationYaw  = (float)((Math.atan2(motionX , motionZ) * 180D) / Math.PI);
                               for(rotationPitch  = (float)((Math.atan2(motionY , f2) * 180D) / Math.PI); rotationPitch  - prevRotationPitch  < -180F; prevRotationPitch  -= 360F);
                               for(; rotationPitch  - prevRotationPitch  >= 180F; prevRotationPitch  += 360F);
                               for(; rotationYaw  - prevRotationYaw  < -180F; prevRotationYaw  -= 360F);
                               for(; rotationYaw  - prevRotationYaw  >= 180F; prevRotationYaw  += 360F);
                               rotationPitch  = prevRotationPitch  + (rotationPitch  - prevRotationPitch ) * 0.2F;
                               rotationYaw  = prevRotationYaw  + (rotationYaw  - prevRotationYaw ) * 0.2F;
                           }
                           float res = getAirResistance();
                           float grav = getGravity();
                           if(isInWater())
                           {
                               beenInGround = true;
                               for(int i1 = 0; i1 < 4; i1++)
                               {
                                   float f6 = 0.25F;
                                   worldObj.spawnParticle("bubble", posX - motionX  * (double)f6, posY - motionY  * (double)f6, posZ - motionZ * (double)f6, motionX , motionY , motionZ);
                               }
                    
                               res *= 0.8080808F;
                           }
                           motionX  *= res;
                           motionY  *= res;
                                motionZ  *= res;
                           motionY  -= grav;
                           setPosition(posX, posY, posZ);
                           func_145775_I();
                       }
                    
                       public void onEntityHit(Entity entity)
                       {
                           bounceBack();
                           applyEntityHitEffects(entity);
                       }
                    
                       public void applyEntityHitEffects(Entity entity)
                       {
                           if(isBurning() && !(entity instanceof EntityEnderman))
                               entity.setFire(5);
                           if(entity instanceof EntityLivingBase)
                           {
                               EntityLivingBase entityliving = (EntityLivingBase)entity;
                               if(knockBack > 0)
                               {
                                   float f = MathHelper.sqrt_double(motionX  * motionX  + motionZ * motionZ);
                                   if(f > 0.0F)
                                       entity.addVelocity((motionX  * (double)knockBack * 0.59999999999999998D) / (double)f, 0.10000000000000001D, (motionZ * (double)knockBack * 0.59999999999999998D) / (double)f);
                               }
                               if(shootingEntity instanceof EntityLivingBase)
                               {
                                   EnchantmentHelper.func_151384_a(entityliving, shootingEntity);
                                   EnchantmentHelper.func_151385_b((EntityLivingBase)shootingEntity, entityliving);
                               }
                               if((shootingEntity instanceof EntityPlayerMP) && shootingEntity != entity && (entity instanceof EntityPlayer))
                                   ((EntityPlayerMP)shootingEntity).playerNetServerHandler.sendPacket(new S2BPacketChangeGameState(6, 0.0F));
                           }
                       }
                    
                       public void onGroundHit(MovingObjectPosition mop)
                       {
                           xTile = mop.blockX;
                           yTile = mop.blockY;
                           zTile = mop.blockZ;
                           inTile = worldObj.getBlock(xTile, yTile, zTile);
                           inData = worldObj.getBlockMetadata(xTile, yTile, zTile);
                           motionX  = mop.hitVec.xCoord  - posX;
                           motionY  = mop.hitVec.yCoord  - posY;
                                motionZ  = mop.hitVec.zCoord  - posZ;
                           float f1 = MathHelper.sqrt_double(motionX  * motionX  + motionY  * motionY  + motionZ * motionZ);
                           posX -= (motionX  / (double)f1) * 0.050000000000000003D;
                           posY -= (motionY  / (double)f1) * 0.050000000000000003D;
                           posZ -= (motionZ / (double)f1) * 0.050000000000000003D;
                           inGround1 = true;
                           beenInGround = true;
                           func_70243_d(false);
                           arrowShake = getMaxArrowShake();
                           playHitSound();
                           if(inTile != null)
                               inTile.onEntityCollidedWithBlock(worldObj, xTile, yTile, zTile, this);
                       }
                    
                       protected void bounceBack()
                       {
                           motionX  *= -0.10000000000000001D;
                           motionY  *= -0.10000000000000001D;
                                motionZ  *= -0.10000000000000001D;
                           rotationYaw  += 180F;
                           prevRotationYaw  += 180F;
                           ticksInAir = 0;
                       }
                    
                       public final double getTotalVelocity()
                       {
                           return Math.sqrt(motionX  * motionX  + motionY  * motionY  + motionZ * motionZ);
                       }
                    
                       public boolean aimRotation()
                       {
                           return true;
                       }
                    
                       public int getMaxLifetime()
                       {
                           return 1200;
                       }
                    
                       public ItemStack getPickupItem()
                       {
                           return null;
                       }
                    
                       public float getAirResistance()
                       {
                           return 0.99F;
                       }
                    
                       public float getGravity()
                       {
                           return 0.05F;
                       }
                    
                       public int getMaxArrowShake()
                       {
                           return 7;
                       }
                    
                       public void playHitSound()
                       {
                       }
                    
                       public boolean canBeCritical()
                       {
                           return false;
                       }
                    
                       public void func_70243_d(boolean flag)
                       {
                           if(canBeCritical())
                            dataWatcher.updateObject(16, Byte.valueOf((byte)(flag ? 1 : 0)));
                       }
                    
                       public boolean getIsCritical()
                       {
                           return canBeCritical() && dataWatcher.getWatchableObjectByte(16) != 0;
                       }
                    
                       public void setExtraDamage(float f)
                       {
                           extraDamage = f;
                       }
                    
                       public void func_70240_a(int i)
                       {
                           knockBack = i;
                       }
                    
                       public void setPickupMode(int i)
                       {
                           pickupMode = i;
                       }
                    
                       public int getPickupMode()
                       {
                           return pickupMode;
                       }
                    
                       public boolean canPickup(EntityPlayer entityplayer)
                       {
                           if(pickupMode == 1)
                               return true;
                           if(pickupMode == 2)
                               return entityplayer.capabilities.isCreativeMode;
                           if(pickupMode == 3)
                               return entityplayer == shootingEntity;
                           else
                               return false;
                       }
                    
                       public void func_70100_b_(EntityPlayer entityplayer)
                       {
                           if(inGround1 && arrowShake <= 0 && canPickup(entityplayer) && !worldObj.isRemote)
                           {
                               ItemStack item = getPickupItem();
                               if(item == null)
                                   return;
                               if(pickupMode == 2 && entityplayer.capabilities.isCreativeMode  || entityplayer.inventory.addItemStackToInventory(item))
                               {
                                worldObj.playSoundAtEntity(this, "random.pop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F + 1.0F) * 2.0F);
                    onItemPickup(entityplayer);
                    setDead();
                               }
                           }
                       }
                    
                       protected void onItemPickup(EntityPlayer entityplayer)
                       {
                           entityplayer.onItemPickup(this, 1);
                       }
                    
                       public float func_70053_R()
                       {
                           return 0.0F;
                       }
                    
                       protected boolean func_70041_e_()
                       {
                           return false;
                       }
                    
                       public void writeEntityToNBT(NBTTagCompound nbttagcompound)
                       {
                           nbttagcompound.setShort("xTile", (short)xTile);
                           nbttagcompound.setShort("yTile", (short)yTile);
                           nbttagcompound.setShort("zTile", (short)zTile);
                           nbttagcompound.setByte("inTile", (byte)Block.getIdFromBlock(inTile));
                           nbttagcompound.setByte("inData", (byte)inData);
                           nbttagcompound.setByte("shake", (byte)arrowShake);
                           nbttagcompound.setBoolean("inGround", inGround1);
                           nbttagcompound.setBoolean("beenInGround", beenInGround);
                           nbttagcompound.setByte("pickup", (byte)pickupMode);
                       }
                    
                       public void readEntityFromNBT(NBTTagCompound nbttagcompound)
                       {
                           xTile = nbttagcompound.getShort("xTile");
                           yTile = nbttagcompound.getShort("yTile");
                           zTile = nbttagcompound.getShort("zTile");
                           inTile = Block.getBlockById(nbttagcompound.getByte("inTile") & 0xff);
                           inData = nbttagcompound.getByte("inData") & 0xff;
                           arrowShake = nbttagcompound.getByte("shake") & 0xff;
                           inGround1 = nbttagcompound.getBoolean("inGround");
                           beenInGround = nbttagcompound.getBoolean("beenInGrond");
                           pickupMode = nbttagcompound.getByte("pickup");
                       }
                    
                       public static final int NO_PICKUP = 0;
                       public static final int PICKUP_ALL = 1;
                       public static final int PICKUP_CREATIVE = 2;
                       public static final int PICKUP_OWNER = 3;
                       protected int xTile;
                       protected int yTile;
                       protected int zTile;
                       protected Block inTile;
                       protected int inData;
                       protected boolean inGround1;
                       public int pickupMode;
                       protected int inGround;
                       protected int ticksInAir;
                       public boolean beenInGround;
                       public float extraDamage;
                       public int knockBack;
                    }
                    
                    

                    J’ai une erreur sur “world.spawnEntityInWorld(new DynamiteEntity(world, entityplayer, 40 + itemRand.nextInt(10)));”

                    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
                    {
                    if (entityplayer.inventory.consumeInventoryItem(this))
                    {
                    world.playSoundAtEntity(entityplayer, "game.tnt.primed", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));
                    if (!world.isRemote)
                    {
                    world.spawnEntityInWorld(new DynamiteEntity(world, entityplayer, 40 + itemRand.nextInt(10)));
                    }
                    }
                    return itemstack;
                    }
                    
                    

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

                      Tu peut aussi regarder du coter de la snowball

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

                        Quels sont les messages de tes erreurs ?

                        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 réponse Dernière réponse Répondre Citer 0
                        • DeletedD Hors-ligne
                          Deleted
                          dernière édition par

                          Après si tu souhaites que ta dynamite ait un mouvement particulier lors du lancer, une logique spécifique, le mieux reste d’éviter le copié-coller de la flèche qui te restreindra sur plein d’éléments 😃

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

                            **les erreur **

                            inGround1 = 0 ;     =======>    Type mismach cannot convert type from int to bolean   
                            ticksInGround = 0; =======>    The field EntityArrow.ticksInGround is not visible
                            inGround1++;        =======>    Type mismach cannot convert type from bolean to  int
                            inGround1 >= t      =======>    The operator >= is undefined for the Type(s) bolean, int
                            inGround1 = 0;      =======>     Type mismach cannot convert type from int to bolean

                            je sait mais pour l’instant le arrow me convient

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

                              Bases en Java
                              Comme d’hab, j’ai envie de dire 😮

                              Tes variables ne sont sûrement pas déclarés avec le bon type. Des boolean à la place de int et des conditions mal faites …

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

                                Comme l’a dit Plaigon, essaye de revoir tes bases, et pour faire ton entité, sois tu prend le code de la flèche, sans modifier les variables comme tu as fait et sans l’extends, soit tu mets l’extends et tu ne met rien dans ta classe à part le constructeur et la méthode où tu vas gérer ton explosion.

                                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 réponse Dernière réponse Répondre Citer 0
                                • YeyvoY Hors-ligne
                                  Yeyvo
                                  dernière édition par

                                  dans ma classe Advence Explosion j’ai l’erreur Label0 is missing 
                                  la ligne ou il y a l’erreur"continue label0;"

                                  au faite pour le problemme d’assigniation de type au variable toujour pas resolus car quand je change en boolean j’ai encore plus d’erreur qui me disent de changer le type en int

                                  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

                                    Si ça fait des erreurs ailleurs c’est alors qu’il faut changer les opérations et non le type de variable.

                                    Pour le label manquant c’est un petit truc devant les boucles :

                                    label0 : for(int i = 0; ….

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

                                      je sais qu’il faut changer les operation mais quand je cherch sur internet il y a le meme code avec les meme erreur ❗

                                      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

                                        Essaies déjà de comprendre le code que tu copies/colles, ça devrait t’aider à résoudre le problème.

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

                                          enfaite j’avais confondue le nom de deux variable donc logique que ca me fasse une erreur___la dynamite n’as pas de texture (entity) de plus qu’elle ne fais rien sauf le song et des déga au mobe au contacte pas a cause de l’explosion

                                          
                                          [13:52:40] [main/INFO] [GradleStart]: username: Yeyvo
                                          [13:52:40] [main/INFO] [GradleStart]: Extra: []
                                          [13:52:40] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/SUNABELKEK/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, Yeyvo, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                          [13:52:40] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                          [13:52:40] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                          [13:52:40] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                          [13:52:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                          [13:52:40] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
                                          [13:52:40] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_91, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_91
                                          [13:52:40] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                          [13:52:41] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                          [13:52:41] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                          [13:52:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                          [13:52:42] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                          [13:52:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                          [13:52:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                          [13:52:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                          [13:52:45] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                          [13:52:45] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                          [13:52:45] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                          [13:52:45] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                          [13:52:48] [main/INFO]: Setting user: Yeyvo
                                          [13:52:51] [Client thread/INFO]: LWJGL Version: 2.9.1
                                          [13:52:56] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                                          // There are four lights!
                                          
                                          Time: 06/05/16 13:52
                                          Description: Loading screen debug info
                                          
                                          This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
                                          
                                          A detailed walkthrough of the error, its code path and all known details is as follows:
                                          ---------------------------------------------------------------------------------------
                                          
                                          -- System Details --
                                          Details:
                                          Minecraft Version: 1.7.10
                                          Operating System: Windows 7 (x86) version 6.1
                                          Java Version: 1.8.0_91, Oracle Corporation
                                          Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                          Memory: 967396552 bytes (922 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
                                          JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                          AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                          IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
                                          FML: 
                                          GL info: ' Vendor: 'Intel' Version: '3.1.0 - Build 9.17.10.3347' Renderer: 'Intel(R) HD Graphics 3000'
                                          [13:52:56] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                          [13:52:56] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
                                          [13:52:57] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                                          [13:52:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                          [13:52:58] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                                          [13:52:58] [Client thread/INFO] [FML]: Searching C:\Users\SUNABELKEK\Desktop\forge\eclipse\mods for mods
                                          [13:53:20] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                          [13:53:21] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at CLIENT
                                          [13:53:21] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at SERVER
                                          [13:53:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                                          [13:53:22] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                          [13:53:22] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                          [13:53:22] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                                          [13:53:22] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                                          [13:53:22] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                          [13:53:23] [Client thread/INFO] [FML]: Applying holder lookups
                                          [13:53:23] [Client thread/INFO] [FML]: Holder lookups applied
                                          [13:53:23] [Client thread/INFO] [FML]: Injecting itemstacks
                                          [13:53:23] [Client thread/INFO] [FML]: Itemstack injection complete
                                          [13:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:24] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                          [13:53:24] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                          [13:53:24] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                          [13:53:32] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                          [13:53:32] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:32] [Sound Library Loader/INFO]: Sound engine started
                                          [13:53:42] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                                          [13:53:42] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                                          [13:53:42] [Client thread/INFO] [FML]: Injecting itemstacks
                                          [13:53:42] [Client thread/INFO] [FML]: Itemstack injection complete
                                          [13:53:42] [Client thread/INFO] [FML]:   Unknown recipe class! ma.Yeyvo.Paladium.common.recipe.recipemachine Modder please refer to net.minecraftforge.oredict.RecipeSorter
                                          [13:53:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                          [13:53:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                                          [13:53:44] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                                          [13:53:45] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                          [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                          [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                          [13:53:45] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                          [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                          [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                          [13:53:45] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                          [13:53:45] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:53:45] [Sound Library Loader/INFO]: Sound engine started
                                          [13:54:12] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                                          [13:54:12] [Server thread/INFO]: Generating keypair
                                          [13:54:13] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                                          [13:54:13] [Server thread/INFO] [FML]: Applying holder lookups
                                          [13:54:13] [Server thread/INFO] [FML]: Holder lookups applied
                                          [13:54:13] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                                          [13:54:14] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                                          [13:54:14] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@292d94)
                                          [13:54:14] [Server thread/INFO]: Preparing start region for level 0
                                          [13:54:15] [Server thread/INFO]: Preparing spawn area: 16%
                                          [13:54:16] [Server thread/INFO]: Changing view distance to 2, from 10
                                          [13:54:18] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
                                          [13:54:18] [Netty IO #1/INFO] [FML]: Client protocol version 2
                                          [13:54:18] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : paladium@1.0.0,FML@7.10.99.99,Forge@10.13.4.1558,mcp@9.05
                                          [13:54:18] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                                          [13:54:18] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                                          [13:54:18] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                                          [13:54:18] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                                          [13:54:18] [Server thread/INFO]: Yeyvo[local:E:3fc5e328] logged in with entity id 229 at (221.77814834129305, 5.6232412136219585, 645.2166616744742)
                                          [13:54:19] [Server thread/INFO]: Yeyvo a rejoint la partie
                                          [13:54:20] [Server thread/INFO]: Saving and pausing game…
                                          [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [13:54:21] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [13:54:23] [Client thread/WARN]: Failed to load texture: minecraft:textures/entity/dynamite.png
                                          java.io.FileNotFoundException: minecraft:textures/entity/dynamite.png
                                          at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                          at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                          at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[SimpleTexture.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
                                          at net.minecraft.client.renderer.entity.Render.bindTexture(Render.java:60) [Render.class:?]
                                          at net.minecraft.client.renderer.entity.Render.bindEntityTexture(Render.java:55) [Render.class:?]
                                          at ma.Yeyvo.Paladium.common.Dyna.RenderDynamite.renderDynamite(RenderDynamite.java:24) [RenderDynamite.class:?]
                                          at ma.Yeyvo.Paladium.common.Dyna.RenderDynamite.doRender(RenderDynamite.java:82) [RenderDynamite.class:?]
                                          at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:300) [RenderManager.class:?]
                                          at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:278) [RenderManager.class:?]
                                          at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:251) [RenderManager.class:?]
                                          at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:527) [RenderGlobal.class:?]
                                          at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1300) [EntityRenderer.class:?]
                                          at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) [EntityRenderer.class:?]
                                          at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) [Minecraft.class:?]
                                          at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
                                          at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
                                          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
                                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
                                          at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
                                          at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
                                          at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
                                          at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                          at GradleStart.main(Unknown Source) [start/:?]
                                          [13:55:29] [Server thread/INFO]: Saving and pausing game…
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [13:55:29] [Server thread/INFO]: Stopping server
                                          [13:55:29] [Server thread/INFO]: Saving players
                                          [13:55:29] [Server thread/INFO]: Saving worlds
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                                          [13:55:29] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                                          [13:55:30] [Server thread/INFO] [FML]: Unloading dimension 0
                                          [13:55:30] [Server thread/INFO] [FML]: Unloading dimension -1
                                          [13:55:30] [Server thread/INFO] [FML]: Unloading dimension 1
                                          [13:55:30] [Server thread/INFO] [FML]: Applying holder lookups
                                          [13:55:30] [Server thread/INFO] [FML]: Holder lookups applied
                                          [13:55:31] [Client thread/INFO]: Stopping!
                                          [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                          [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                          [13:55:31] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                          Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                                          
                                          

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

                                            Classe du render et du client proxy stp

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB