MFF

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

    Baton et item de reparation et GUI

    Planifier Épinglé Verrouillé Déplacé Sans suite
    1.7.10
    41 Messages 7 Publieurs 7.8k 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

      **C’est pour quand le joueur veut le ré****parer il le réparé via une table spéciale dont le craft est 
      **
      **Assez cher
      **Je vous les deja dis le 1de dura a pour but d’evité que l’objet disparaisse car il coute cher

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

        Eh bien si tu souhaites que ton item soit endommageable, mais incassable en gardant toujours 1 d’utilisation, je te conseille de cancel l’event PlayerDestroyItemEvent en ayant check avant si il s’agissait bien de ton item dont il est question. Apres avoir cancel l’event, je pense que ton item aura automatiquement gardé 1 de dura.

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

          Ou sinon plus simple si il te reste 1 de dura, tu empèche cette ligne de s’éxécuter dans ta fonction onItemRightClick : “stack.setItemDamage(stack.getItemDamage() + 1);”

          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

            Ouep effectivement une petite condition ternaire devrait faire l’affaire 😃

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

              j’ai reussi a pour le ring 
              mais quand j’ai ajoutté un gui et des recette mon jeux crash 
              Mes Logs:

              –-- Minecraft Crash Report ----
              
              // Who set us up the TNT?
              
              Time: 01/05/16 01:56
              Description: Initializing game
              
              java.lang.NullPointerException: Initializing game
              at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:219)
              at ma.Yeyvo.Paladium.common.ModPaladium.init(ModPaladium.java:223)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
              at com.google.common.eventbus.EventBus.post(EventBus.java:275)
              at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
              at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
              at com.google.common.eventbus.EventBus.post(EventBus.java:275)
              at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
              at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
              at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
              at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
              at net.minecraft.client.Minecraft.run(Minecraft.java:942)
              at net.minecraft.client.main.Main.main(Main.java:164)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
              at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
              at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
              at GradleStart.main(Unknown Source)
              
              A detailed walkthrough of the error, its code path and all known details is as follows:
              ---------------------------------------------------------------------------------------
              
              -- Head --
              Stacktrace:
              at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:219)
              at ma.Yeyvo.Paladium.common.ModPaladium.init(ModPaladium.java:223)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
              at com.google.common.eventbus.EventBus.post(EventBus.java:275)
              at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
              at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
              at com.google.common.eventbus.EventBus.post(EventBus.java:275)
              at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
              at cpw.mods.fml.common.Loader.initializeMods(Loader.java:737)
              at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311)
              at net.minecraft.client.Minecraft.startGame(Minecraft.java:597)
              
              -- Initialization --
              Details:
              Stacktrace:
              at net.minecraft.client.Minecraft.run(Minecraft.java:942)
              at net.minecraft.client.main.Main.main(Main.java:164)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
              at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
              at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
              at GradleStart.main(Unknown Source)
              
              -- 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: 932285952 bytes (889 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active
              States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
              UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
              UCHI FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
              UCHI Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
              UCHE paladium{1.0.0} [Paladium] (bin) 
              GL info: ' Vendor: 'Intel' Version: '3.1.0 - Build 9.17.10.3347' Renderer: 'Intel(R) HD Graphics 3000'
              Launched Version: 1.7.10
              LWJGL: 2.9.1
              OpenGL: Intel(R) HD Graphics 3000 GL version 3.1.0 - Build 9.17.10.3347, Intel
              GL Caps: Using GL 1.3 multitexturing.
              Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
              Anisotropic filtering is supported and maximum anisotropy is 16.
              Shaders are available because OpenGL 2.1 is supported.
              
              Is Modded: Definitely; Client brand changed to 'fml,forge'
              Type: Client (map_client.txt)
              Resource Packs: []
              Current Language: Français (France)
              Profiler Position: N/A (disabled)
              Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
              Anisotropic Filtering: Off (1)
              

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

                Sur ton instance, tu as mis “@Instance(“MODID”)”, et comme tu as mis MODID entre guillements, il considère que c’est l’instance du mod qui as comme modid “MODID” (qui n’est pas ton mod), il faut donc que tu mettes le modid de ton mod, en retirant les guillements.

                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

                  Mes texture et mon Gui ne s’afiche pas dans minecraft par contre les recettes et les slots oui

                  #MachinePala (MachinePala )

                  import ma.Yeyvo.Paladium.common.ModPaladium;
                  import net.minecraft.block.Block;
                  import net.minecraft.block.BlockContainer;
                  import net.minecraft.block.material.Material;
                  import net.minecraft.client.renderer.texture.IIconRegister;
                  import net.minecraft.creativetab.CreativeTabs;
                  import net.minecraft.entity.item.EntityItem;
                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.inventory.IInventory;
                  import net.minecraft.item.ItemStack;
                  import net.minecraft.nbt.NBTTagCompound;
                  import net.minecraft.tileentity.TileEntity;
                  import net.minecraft.util.IIcon;
                  import net.minecraft.world.World;
                  
                  public class MachinePala extends BlockContainer
                  {
                      public MachinePala()
                      {
                          super(Material.rock);
                          setResistance(8F);
                          setHarvestLevel("pickaxe", 2);
                          setCreativeTab(CreativeTabs.tabBlock);
                          setHardness(8F);
                      }
                      public TileEntity createNewTileEntity(World world, int metadata)
                      {
                          return new TileEntityMachinePala();
                      }
                      public boolean hasTileEntity(int metadata)
                      {
                          return true;
                      }
                  
                      public void breakBlock(World world, int x, int y, int z, Block block, int metadata)
                      {
                          TileEntity tileentity = world.getTileEntity(x, y, z);
                          if(tileentity instanceof IInventory)
                          {
                              IInventory inv = (IInventory)tileentity;
                              for(int i1 = 0; i1 < inv.getSizeInventory(); i1++)
                              {
                                  ItemStack itemstack = inv.getStackInSlot(i1);
                                  if(itemstack == null)
                                      continue;
                                  float f = world.rand.nextFloat() * 0.8F + 0.1F;
                                  float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
                                  float f2 = world.rand.nextFloat() * 0.8F + 0.1F;
                                  while(itemstack.stackSize > 0) 
                                  {
                                      int j1 = world.rand.nextInt(21) + 10;
                                      if(j1 > itemstack.stackSize)
                                          j1 = itemstack.stackSize;
                                      itemstack.stackSize -= j1;
                                      EntityItem entityitem = new EntityItem(world, (float)x + f, (float)y + f1, (float)z + f2, new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
                                      float f3 = 0.05F;
                                      entityitem.motionX = (float)world.rand.nextGaussian() * f3;
                                      entityitem.motionY = (float)world.rand.nextGaussian() * f3 + 0.2F;
                                      entityitem.motionZ = (float)world.rand.nextGaussian() * f3;
                                      if(itemstack.hasTagCompound())
                                          entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                                      world.spawnEntityInWorld(entityitem);
                                  }
                              }
                  
                              world.func_147453_f(x, y, z, block);
                          }
                          super.breakBlock(world, x, y, z, block, metadata);
                      }
                  
                      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
                      {
                          if(world.isRemote)
                          {
                              return true;
                          } else
                          {
                              player.openGui(ModPaladium.instance, 0, world, x, y, z);
                              return true;
                          }
                      }
                  
                      public void registerIcons(IIconRegister iiconRegister)
                      {
                      blockIcon = iiconRegister.registerIcon(ModPaladium.MODID + ":cote");
                          top = iiconRegister.registerIcon(ModPaladium.MODID + ":haut");
                          bottom = iiconRegister.registerIcon(ModPaladium.MODID + ":cote");
                      }
                  
                      public IIcon getIcon(int side, int metadata)
                      {
                      if(side == 0)
                      {
                      return this.bottom;
                      }
                      else if(side == 1)
                      {
                      return this.top;
                      }
                          return this.blockIcon;
                      }
                  
                      IIcon icontop;
                      private IIcon iconbottom;
                      private IIcon top;
                      private IIcon bottom;
                  }
                  

                  #GuiMachine (GuiMachine )

                  import org.lwjgl.opengl.GL11;
                  
                  import net.minecraft.client.gui.inventory.GuiContainer;
                  import net.minecraft.client.resources.I18n;
                  import net.minecraft.entity.player.InventoryPlayer;
                  import net.minecraft.inventory.IInventory;
                  import net.minecraft.util.ResourceLocation;
                  
                  public class GuiMachine extends GuiContainer
                  {
                  
                      public GuiMachine(TileEntityMachinePala tile, InventoryPlayer inventory)
                      {
                          super(new ContainerMachine(tile, inventory));
                          tileCompressor = tile;
                          playerInv = inventory;
                          allowUserInput = true;
                          ySize = 340;
                          xSize = 200;
                      }
                  
                      protected void drawGuiContainerBackgroundLayer(float partialRenderTick, int x, int y)
                      {
                          GL11.glColor4f(1.0F, 1.5F, 1.0F, 1.0F);
                          mc.getTextureManager().bindTexture(GuiPaladium);
                          int k = (width - xSize) / 2;
                          int l = (height - ySize) / 2;
                          drawTexturedModalRect(k, l, 0, 0, xSize, ySize);
                          if(tileCompressor.isBurning())
                          {
                              int i = tileCompressor.getCookProgress();
                              drawTexturedModalRect(k + 90, l + 122, 201, 105, 20, i);
                          }
                      }
                  
                      protected void drawGuiContainerForegroundLayer(int x, int y)
                      {
                      fontRendererObj.drawString(playerInv.hasCustomInventoryName() ? playerInv.getInventoryName() : I18n.format(playerInv.getInventoryName(), new Object[0]), 15, ySize - 180, 0x404040);
                      }
                  
                      private static final ResourceLocation GuiPaladium = new ResourceLocation("textures/gui/container/GuiPaladium.png");
                      private TileEntityMachinePala tileCompressor;
                      private IInventory playerInv;
                  
                  }
                  
                  

                  #ContainerMachine (ContainerMachine )

                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.entity.player.InventoryPlayer;
                  import net.minecraft.inventory.Container;
                  import net.minecraft.inventory.Slot;
                  import net.minecraft.item.ItemStack;
                  
                  public class ContainerMachine extends Container
                  {
                  
                      public ContainerMachine(TileEntityMachinePala tile, InventoryPlayer inventory)
                      {
                          tileMachinePala = tile;
                          addSlotToContainer(new Slot(tile, 0, 89, 95));
                          addSlotToContainer(new Slot(tile, 1, 25, 103));
                          addSlotToContainer(new Slot(tile, 2, 53, 123));
                          addSlotToContainer(new Slot(tile, 3, 153, 103));
                          addSlotToContainer(new Slot(tile, 4, 125, 123));
                          addSlotToContainer(new SlotResulte(tile, 5, 89, 146));
                          bindPlayerInventory(inventory);
                      }
                  
                      public boolean canInteractWith(EntityPlayer player)
                      {
                          return tileMachinePala.isUseableByPlayer(player);
                      }
                  
                      private void bindPlayerInventory(InventoryPlayer inventory)
                      {
                          for(int i = 0; i < 3; i++)
                          {
                              for(int j = 0; j < 9; j++)
                              addSlotToContainer(new Slot(inventory, j + i * 9 + 9, 17 + j * 18, 171 + i * 18));
                  
                          }
                  
                          for(int i = 0; i < 9; i++)
                          addSlotToContainer(new Slot(inventory, i, 17 + i * 18, 229));
                  
                      }
                  
                      public ItemStack transferStackInSlot(EntityPlayer player, int quantity)
                      {
                          ItemStack itemstack = null;
                          Slot slot = (Slot)inventorySlots.get(quantity);
                          if(slot != null && slot.getHasStack())
                          {
                              ItemStack itemstack1 = slot.getStack();
                              itemstack = itemstack1.copy();
                              if(quantity < tileMachinePala.getSizeInventory())
                              {
                                  if(!mergeItemStack(itemstack1, tileMachinePala.getSizeInventory(), inventorySlots.size(), true))
                                      return null;
                              } else
                              if(!mergeItemStack(itemstack1, 0, tileMachinePala.getSizeInventory(), false))
                                  return null;
                              if(itemstack1.stackSize == 0)
                                  slot.putStack((ItemStack)null);
                              else
                                  slot.onSlotChanged();
                          }
                          return itemstack;
                      }
                  
                      public void onContainerClosed(EntityPlayer player)
                      {
                          super.onContainerClosed(player);
                          tileMachinePala.closeInventory();
                      }
                  
                      private TileEntityMachinePala tileMachinePala;
                  }
                  
                  

                  #GuiHandler(GuiHandler)

                  import cpw.mods.fml.common.network.IGuiHandler;
                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.tileentity.TileEntity;
                  import net.minecraft.world.World;
                  
                  public class GuiHandler
                      implements IGuiHandler
                  {
                  
                      public GuiHandler()
                      {
                      }
                  
                      public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
                      {
                          TileEntity tile = world.getTileEntity(x, y, z);
                          if(tile instanceof TileEntityMachinePala)
                              return new ContainerMachine((TileEntityMachinePala)tile, player.inventory);
                          else
                              return null;
                      }
                  
                      public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
                      {
                          TileEntity tile = world.getTileEntity(x, y, z);
                          if(tile instanceof TileEntityMachinePala)
                              return new GuiMachine((TileEntityMachinePala)tile, player.inventory);
                          else
                              return null;
                      }
                  }
                  

                  #TileEntityMachinePala (TileEntityMachinePala )

                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.inventory.IInventory;
                  import net.minecraft.item.ItemStack;
                  import net.minecraft.nbt.NBTTagCompound;
                  import net.minecraft.nbt.NBTTagList;
                  import net.minecraft.tileentity.TileEntity;
                  
                  public class TileEntityMachinePala extends TileEntity
                  implements IInventory
                  {
                  
                      public TileEntityMachinePala()
                      {
                          contents = new ItemStack[6];
                          workingTime = 0;
                          workingTimeNeeded = 200;
                      }
                      @Override
                      public void writeToNBT(NBTTagCompound compound)
                      {
                      super.writeToNBT(compound);
                          NBTTagList nbttaglist = new NBTTagList();
                          for(int i = 0; i < contents.length; i++)
                              if(contents* != null)
                              {
                                  NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                                  nbttagcompound1.setByte("Slot", (byte)i);
                                  contents*.writeToNBT(nbttagcompound1);
                                  nbttaglist.appendTag(nbttagcompound1);
                              }
                  
                          compound.setTag("Items", nbttaglist);
                          compound.setShort("workingTime", (short)workingTime);
                          compound.setShort("workingTimeNeeded", (short)workingTimeNeeded);
                      }
                  
                      public int getCookProgress()
                      {
                          return (workingTime * 16) / workingTimeNeeded;
                      }
                      @Override
                      public void readFromNBT(NBTTagCompound compound)
                      {
                          super.readFromNBT(compound);
                          NBTTagList nbttaglist = compound.getTagList("Items", 10);
                          contents = new ItemStack[getSizeInventory()];
                          for(int i = 0; i < nbttaglist.tagCount(); i++)
                          {
                              NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                              int j = nbttagcompound1.getByte("Slot");
                              if(j >= 0 && j < contents.length)
                                  contents[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
                          }
                  
                          workingTime = compound.getShort("workingTime");
                          workingTimeNeeded = compound.getShort("workingTimeNeeded");
                      }
                      @Override
                      public int getSizeInventory()
                      {
                          return contents.length;
                      }
                      @Override
                      public ItemStack getStackInSlot(int slotIndex)
                      {
                          return contents[slotIndex];
                      }
                      @Override
                      public ItemStack decrStackSize(int slotIndex, int amount)
                      {
                          if(contents[slotIndex] != null)
                          {
                              ItemStack itemstack;
                              if(contents[slotIndex].stackSize <= amount)
                              {
                                  itemstack = contents[slotIndex];
                                  contents[slotIndex] = null;
                                  markDirty();
                                  return itemstack;
                              }
                              itemstack = contents[slotIndex].splitStack(amount);
                              if(contents[slotIndex].stackSize == 0)
                                  contents[slotIndex] = null;
                              markDirty();
                              return itemstack;
                          } else
                          {
                              return null;
                          }
                      }
                      @Override
                      public ItemStack getStackInSlotOnClosing(int slotIndex)
                      {
                          if(contents[slotIndex] != null)
                          {
                              ItemStack itemstack = contents[slotIndex];
                              contents[slotIndex] = null;
                              return itemstack;
                          } else
                          {
                              return null;
                          }
                      }
                      @Override
                      public void setInventorySlotContents(int slotIndex, ItemStack stack)
                      {
                          contents[slotIndex] = stack;
                          if(stack != null && stack.stackSize > getInventoryStackLimit())
                              stack.stackSize = getInventoryStackLimit();
                          markDirty();
                      }
                      @Override
                      public String getInventoryName()
                      {
                          return "tile.Machinetuto";
                      }
                      @Override
                      public boolean hasCustomInventoryName()
                      {
                          return false;
                      }
                      @Override
                      public int getInventoryStackLimit()
                      {
                          return 64;
                      }
                      @Override
                      public boolean isUseableByPlayer(EntityPlayer player)
                      {
                          return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this ? player.getDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D) <= 64D : false;
                      }
                      @Override
                      public void openInventory()
                      {
                      }
                      @Override
                      public void closeInventory()
                      {
                      }
                      @Override
                      public boolean isItemValidForSlot(int slot, ItemStack stack)
                      {
                          return slot != 5;
                      }
                  
                      public boolean isBurning()
                      {
                          return workingTime > 0;
                      }
                  
                      private boolean canSmelt()
                      {
                          if(contents[0] == null || contents[1] == null || contents[2] == null || contents[3] == null || contents[4] == null)
                              return false;
                          ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                              contents[0], contents[1], contents[2], contents[3], contents[4]
                          });
                          if(itemstack == null)
                              return false;
                          if(contents[5] == null)
                              return true;
                          if(!contents[5].isItemEqual(itemstack))
                          {
                              return false;
                          } else
                          {
                              int result = contents[5].stackSize + itemstack.stackSize;
                              return result <= getInventoryStackLimit() && result <= contents[5].getMaxStackSize();
                          }
                      }
                  
                      public void updateEntity()
                      {
                          if(isBurning() && canSmelt())
                              workingTime++;
                          if(canSmelt() && !isBurning())
                              workingTime = 1;
                          if(canSmelt() && workingTime == workingTimeNeeded)
                          {
                              smeltItem();
                              workingTime = 0;
                          }
                          if(!canSmelt())
                              workingTime = 0;
                      }
                  
                      public void smeltItem()
                      {
                          if(canSmelt())
                          {
                              ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                                  contents[0], contents[1], contents[2], contents[3], contents[4]
                              });
                              if(contents[5] == null)
                                  contents[5] = itemstack.copy();
                              else
                              if(contents[5].getItem() == itemstack.getItem())
                                  contents[5].stackSize += itemstack.stackSize;
                              contents[0].stackSize–;
                              contents[1].stackSize–;
                              contents[2].stackSize–;
                              contents[3].stackSize–;
                              contents[4].stackSize–;
                              if(contents[0].stackSize <= 0)
                                  contents[0] = null;
                              if(contents[1].stackSize <= 0)
                                  contents[1] = null;
                              if(contents[2].stackSize <= 0)
                                  contents[2] = null;
                              if(contents[3].stackSize <= 0)
                                  contents[3] = null;
                              if(contents[4].stackSize <= 0)
                                  contents[4] = null;
                          }
                      }
                  
                      private ItemStack contents[];
                      private int workingTime;
                      private int workingTimeNeeded;
                  
                  }
                  
                  [font=monospace**#SlotResulte(SlotResulte)**]
                  
                  
                  import net.minecraft.entity.player.EntityPlayer;
                  import net.minecraft.inventory.IInventory;
                  import net.minecraft.inventory.Slot;
                  import net.minecraft.item.ItemStack;
                  
                  public class SlotResulte extends Slot
                  {
                  
                      public SlotResulte(IInventory inventory, int id, int x, int y)
                      {
                          super(inventory, id, x, y);
                      }
                  
                      public boolean isItemValid(ItemStack stack)
                      {
                          return false;
                      }
                  
                      public ItemStack decrStackSize(int amount)
                      {
                          return super.decrStackSize(amount);
                      }
                  
                      public void onPickupFromSlot(EntityPlayer player, ItemStack stack)
                      {
                          super.onCrafting(stack);
                          super.onPickupFromSlot(player, stack);
                      }
                  }
                  
                  

                  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

                    Il te manque de le modid dans le chemin de la texture :
                    private static final ResourceLocation GuiPaladium = new ResourceLocation(“textures/gui/container/GuiPaladium.png”);
                    ->
                    private static final ResourceLocation GuiPaladium = new ResourceLocation(“paladium”,“textures/gui/container/GuiPaladium.png”);

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

                      maintenant le Gui est ok mais la texture du block elle ne marche pas

                      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

                        Tu peux envoyer les logs du lancement du jeu ?

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

                          [13:45:22] [main/INFO] [GradleStart]: username: Yeyvo
                          [13:45:22] [main/INFO] [GradleStart]: Extra: []
                          [13:45:22] [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:45:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                          [13:45:22] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                          [13:45:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                          [13:45:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                          [13:45:22] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
                          [13:45:22] [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:45:23] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                          [13:45:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                          [13:45:23] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                          [13:45:23] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                          [13:45:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                          [13:45:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                          [13:45:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                          [13:45:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                          [13:45:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                          [13:45:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                          [13:45:23] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                          [13:45:26] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                          [13:45:26] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                          [13:45:26] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                          [13:45:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                          [13:45:27] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                          [13:45:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                          [13:45:27] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                          [13:45:29] [main/INFO]: Setting user: Yeyvo
                          [13:45:31] [Client thread/INFO]: LWJGL Version: 2.9.1
                          [13:45:36] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ----
                          // But it works on my machine.
                          
                          Time: 01/05/16 13:45
                          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: 967230008 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:45:36] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                          [13:45:36] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
                          [13:45:36] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                          [13:45:36] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                          [13:45:36] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                          [13:45:36] [Client thread/INFO] [FML]: Searching C:\Users\SUNABELKEK\Desktop\forge\eclipse\mods for mods
                          [13:45:54] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                          [13:45:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at CLIENT
                          [13:45:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at SERVER
                          [13:45:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                          [13:45:56] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                          [13:45:56] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                          [13:45:56] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
                          [13:45:56] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
                          [13:45:56] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                          [13:45:56] [Client thread/INFO] [FML]: Applying holder lookups
                          [13:45:56] [Client thread/INFO] [FML]: Holder lookups applied
                          [13:45:56] [Client thread/INFO] [FML]: Injecting itemstacks
                          [13:45:56] [Client thread/INFO] [FML]: Itemstack injection complete
                          [13:45:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:45:56] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                          [13:45:57] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                          [13:45:57] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                          [13:45:57] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                          [13:45:57] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:45:57] [Sound Library Loader/INFO]: Sound engine started
                          [13:46:02] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
                          [13:46:02] [Client thread/INFO]: Created: 16x16 textures/items-atlas
                          [13:46:02] [Client thread/INFO] [STDOUT]: [ma.Yeyvo.Paladium.Proxy.ClientProxy:registerRender:9]: methode cot� client
                          [13:46:02] [Client thread/INFO] [FML]: Injecting itemstacks
                          [13:46:02] [Client thread/INFO] [FML]: Itemstack injection complete
                          [13:46:02] [Client thread/INFO] [FML]:   Unknown recipe class! ma.Yeyvo.Paladium.common.recipe.recipemachine Modder please refer to net.minecraftforge.oredict.RecipeSorter
                          [13:46:02] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                          [13:46:02] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Paladium
                          [13:46:03] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
                          [13:46:04] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                          [13:46:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:46:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                          [13:46:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                          [13:46:04] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:46:04] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:46:04] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                          [13:46:04] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                          [13:46:04] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                          [13:46:04] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                          [13:46:05] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:46:05] [Sound Library Loader/INFO]: Sound engine started
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN minecraft
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: –------------------------------------------------
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:   domain minecraft is missing 1 texture
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:     domain minecraft has 3 locations:
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod FML resources at C:\Users\SUNABELKEK\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod Forge resources at C:\Users\SUNABELKEK\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain minecraft are:
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/blocks/MISSING_ICON_BLOCK_178_MachinePala.png
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: –-----------------------
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain minecraft
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
                          [13:46:19] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                          [13:46:19] [Server thread/INFO]: Generating keypair
                          [13:46:19] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                          [13:46:19] [Server thread/INFO] [FML]: Applying holder lookups
                          [13:46:19] [Server thread/INFO] [FML]: Holder lookups applied
                          [13:46:19] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@5ccaf4)
                          [13:46:19] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@5ccaf4)
                          [13:46:19] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@5ccaf4)
                          [13:46:19] [Server thread/INFO]: Preparing start region for level 0
                          [13:46:20] [Server thread/INFO]: Preparing spawn area: 18%
                          [13:46:22] [Server thread/INFO]: Changing view distance to 2, from 10
                          [13:46:25] [Server thread/INFO]: Stopping server
                          [13:46:25] [Server thread/INFO]: Saving players
                          [13:46:25] [Server thread/INFO]: Saving worlds
                          [13:46:25] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                          [13:46:26] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                          [13:46:26] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                          [13:46:26] [Server thread/INFO] [FML]: Unloading dimension 0
                          [13:46:26] [Server thread/INFO] [FML]: Unloading dimension -1
                          [13:46:26] [Server thread/INFO] [FML]: Unloading dimension 1
                          [13:46:26] [Server thread/INFO] [FML]: Applying holder lookups
                          [13:46:26] [Server thread/INFO] [FML]: Holder lookups applied
                          [13:46:26] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                          [13:46:26] [Server thread/INFO]: Generating keypair
                          [13:46:27] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                          [13:46:27] [Server thread/INFO] [FML]: Applying holder lookups
                          [13:46:27] [Server thread/INFO] [FML]: Holder lookups applied
                          [13:46:27] [Server thread/INFO] [FML]: Loading dimension 0 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@34f899)
                          [13:46:27] [Server thread/INFO] [FML]: Loading dimension 1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@34f899)
                          [13:46:27] [Server thread/INFO] [FML]: Loading dimension -1 (Nouveau monde) (net.minecraft.server.integrated.IntegratedServer@34f899)
                          [13:46:27] [Server thread/INFO]: Preparing start region for level 0
                          [13:46:28] [Server thread/INFO]: Preparing spawn area: 94%
                          [13:46:28] [Server thread/INFO]: Changing view distance to 2, from 10
                          [13:46:28] [Netty Client IO #1/INFO] [FML]: Server protocol version 2
                          [13:46:28] [Netty IO #3/INFO] [FML]: Client protocol version 2
                          [13:46:28] [Netty IO #3/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:46:28] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                          [13:46:28] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                          [13:46:28] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                          [13:46:28] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                          [13:46:28] [Server thread/INFO]: Yeyvo[local:E:5f3e9f75] logged in with entity id 512 at (-198.95641604416977, 71.0, -231.00564216912252)
                          [13:46:28] [Server thread/INFO]: Yeyvo a rejoint la partie
                          [13:47:23] [Server thread/INFO]: Saving and pausing game…
                          [13:47:23] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                          [13:47:23] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                          [13:47:23] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                          [13:47:24] [Server thread/INFO]: Stopping server
                          [13:47:24] [Server thread/INFO]: Saving players
                          [13:47:24] [Server thread/INFO]: Saving worlds
                          [13:47:24] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Overworld
                          [13:47:24] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/Nether
                          [13:47:24] [Server thread/INFO]: Saving chunks for level 'Nouveau monde'/The End
                          [13:47:24] [Server thread/INFO] [FML]: Unloading dimension 0
                          [13:47:24] [Server thread/INFO] [FML]: Unloading dimension -1
                          [13:47:24] [Server thread/INFO] [FML]: Unloading dimension 1
                          [13:47:24] [Server thread/INFO] [FML]: Applying holder lookups
                          [13:47:25] [Server thread/INFO] [FML]: Holder lookups applied
                          [13:47:25] [Client thread/INFO]: Stopping!
                          [13:47:25] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                          [13:47:25] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                          [13:47:25] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                          [13:47:25] [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
                          
                          

                          [13:46:08] [Client thread/ERROR] [TEXTURE ERRORS]:       The missing resources for domain minecraft  are:            textures/blocks/MISSING_ICON_BLOCK_178_MachinePala.png

                          voila les logs

                          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

                            public void registerIcons(IIconRegister iiconRegister)
                            ->
                            public void registerBlockIcons(IIconRegister iiconRegister)

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

                              **Le serveur crash aussi **(il souvre pendans 10 seconde et crash)

                              [16:08:10] [main/INFO] [GradleStart]: Extra: []
                              [16:08:10] [main/INFO] [GradleStart]: Running with arguments: [–tweakClass, cpw.mods.fml.common.launcher.FMLServerTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                              [16:08:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
                              [16:08:11] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
                              [16:08:11] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                              [16:08:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker
                              [16:08:11] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
                              [16:08:11] [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
                              [16:08:11] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                              [16:08:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                              [16:08:12] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                              [16:08:12] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                              [16:08:12] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:08:12] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                              [16:08:12] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                              [16:08:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:08:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                              [16:08:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                              [16:08:12] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                              [16:08:14] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                              [16:08:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                              [16:08:14] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                              [16:08:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                              [16:08:15] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                              [16:08:15] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                              [16:08:15] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
                              [16:08:25] [main/WARN] [FML]: =============================================================
                              [16:08:25] [main/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!
                              [16:08:25] [main/WARN] [FML]: Offendor: net/minecraft/server/gui/MinecraftServerGui$1.windowClosing(Ljava/awt/event/WindowEvent;)V
                              [16:08:25] [main/WARN] [FML]: Use FMLCommonHandler.exitJava instead
                              [16:08:25] [main/WARN] [FML]: =============================================================
                              [16:08:25] [Server thread/INFO]: Starting minecraft server version 1.7.10
                              [16:08:25] [Server thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                              [16:08:25] [Server thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
                              [16:08:25] [Server thread/INFO] [FML]: Replaced 183 ore recipies
                              [16:08:26] [Server thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                              [16:08:26] [Server thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
                              [16:08:26] [Server thread/INFO] [FML]: Searching C:\Users\SUNABELKEK\Desktop\forge\eclipse\mods for mods
                              [16:08:38] [Server thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                              [16:08:38] [Server thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at CLIENT
                              [16:08:38] [Server thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, paladium] at SERVER
                              [16:08:38] [Server thread/ERROR] [FML]: An error occured trying to load a proxy into {serverSide=ma.Yeyvo.Paladium.proxy.CommonProxy, clientSide=ma.Yeyvo.Paladium.Proxy.ClientProxy}.ma.Yeyvo.Paladium.common.ModPaladium
                              java.lang.ClassNotFoundException: ma.Yeyvo.Paladium.proxy.CommonProxy
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]
                              at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
                              at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) [ProxyInjector.class:?]
                              at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) [FMLModContainer.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) [LoadController.class:?]
                              at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) [LoadController.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
                              at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) [Loader.class:?]
                              at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) [FMLServerHandler.class:?]
                              at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314) [FMLCommonHandler.class:?]
                              at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120) [DedicatedServer.class:?]
                              at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
                              at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                              Caused by: java.lang.NoClassDefFoundError: ma/Yeyvo/Paladium/proxy/CommonProxy (wrong name: ma/Yeyvo/Paladium/Proxy/CommonProxy)
                              at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
                              … 34 more
                              [16:08:38] [Server thread/ERROR] [FML]: Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
                              [16:08:38] [Server thread/ERROR] [FML]: 
                              States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                              UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
                              UC FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                              UC Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) 
                              UE paladium{1.0.0} [Paladium] (bin) 
                              [16:08:38] [Server thread/ERROR] [FML]: The following problems were captured during this phase
                              [16:08:38] [Server thread/ERROR] [FML]: Caught exception from paladium
                              cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: ma.Yeyvo.Paladium.proxy.CommonProxy
                              
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?]
                              at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) ~[FMLModContainer.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:?]
                              at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
                              at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) [Loader.class:?]
                              at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) [FMLServerHandler.class:?]
                              at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314) [FMLCommonHandler.class:?]
                              at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120) [DedicatedServer.class:?]
                              at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
                              at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                              Caused by: java.lang.ClassNotFoundException: ma.Yeyvo.Paladium.proxy.CommonProxy
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]
                              at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
                              at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?]
                              … 28 more
                              Caused by: java.lang.NoClassDefFoundError: ma/Yeyvo/Paladium/proxy/CommonProxy (wrong name: ma/Yeyvo/Paladium/Proxy/CommonProxy)
                              at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]
                              at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
                              at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?]
                              … 28 more
                              [16:08:38] [Server thread/ERROR]: Encountered an unexpected exception
                              cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: ma.Yeyvo.Paladium.proxy.CommonProxy
                              
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76) ~[ProxyInjector.class:?]
                              at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:512) ~[FMLModContainer.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:?]
                              at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
                              at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
                              at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) ~[LoadController.class:?]
                              at cpw.mods.fml.common.Loader.loadMods(Loader.java:513) ~[Loader.class:?]
                              at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) ~[FMLServerHandler.class:?]
                              at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:314) ~[FMLCommonHandler.class:?]
                              at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:120) ~[DedicatedServer.class:?]
                              at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
                              at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                              Caused by: java.lang.ClassNotFoundException: ma.Yeyvo.Paladium.proxy.CommonProxy
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]
                              at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
                              at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?]
                              … 28 more
                              Caused by: java.lang.NoClassDefFoundError: ma/Yeyvo/Paladium/proxy/CommonProxy (wrong name: ma/Yeyvo/Paladium/Proxy/CommonProxy)
                              at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_91]
                              at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:58) ~[ModClassLoader.class:?]
                              at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
                              at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_91]
                              at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:59) ~[ProxyInjector.class:?]
                              … 28 more
                              [16:08:38] [Server thread/ERROR]: This crash report has been saved to: C:\Users\SUNABELKEK\Desktop\forge\eclipse\.\crash-reports\crash-2016-05-01_16.08.38-server.txt
                              [16:08:38] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
                              [16:08:38] [Server thread/INFO] [FML]: Applying holder lookups
                              [16:08:38] [Server thread/INFO] [FML]: Holder lookups applied
                              [16:08:38] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
                              [16:08:38] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.
                              Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                              
                              

                              Mon common Proxy

                              package ma.Yeyvo.Paladium.Proxy;
                              
                              public class CommonProxy 
                              {    
                              public CommonProxy()
                                  {
                                  }    
                              
                              public void registerRender()
                              {
                              System.out.println("methode coté serveur");
                              }
                              }
                              
                              

                              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

                                Le chemin que tu as indiqué dans ta classe principale pour le common proxy est invalide.

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

                                  ah oui  au lieu d’un ‘P’ j’ai mis un ‘p’

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

                                    Yo les gens ,
                                    Je me permet de revenir sur se sujet car je me suis rendu compte que ma machine ne prenait pas en compte les métadata donc une fois de plusse je me tourne vers vous (ce seras la dernier aprés vous ne me donerais plus de code promi  😉 )

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

                                      J’ai remarqué il y a peu qu’il y avait des erreurs dans le tutoriel, envoi ta classe avec les recettes et la TileEntity si tu veux que je le corrige 😉

                                      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

                                        MachineRecipes

                                        public class MachineRecipes
                                        {
                                        
                                            public MachineRecipes()
                                            {
                                                smeltingList = new HashMap();
                                                addRecipe(ModPaladium.PaladiumOre, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, new ItemStack(ModPaladium.smallring, 1));
                                                addRecipe(ModPaladium.smallring, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, new ItemStack(ModPaladium.mediumring, 1));
                                                addRecipe(ModPaladium.mediumring, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, new ItemStack(ModPaladium.bigring, 1));
                                                addRecipe(ModPaladium.smallring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.smallring, 1));
                                                addRecipe(ModPaladium.mediumring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.mediumring, 1));
                                                addRecipe(ModPaladium.bigring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.bigring, 1));
                                                addRecipe(ModPaladium.orbeheal, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.healstick, 1));
                                                addRecipe(ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, new ItemStack(ModPaladium.superhealstick, 1));
                                                addRecipe(ModPaladium.orbespeed, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.speedstick, 1));
                                                addRecipe(ModPaladium.orbestrength, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.strengthstick, 1));
                                                addRecipe(ModPaladium.orbejump, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.jumpstick, 1));
                                                addRecipe(ModPaladium.CompressPaladium, ModPaladium.strengthstick, ModPaladium.speedstick, ModPaladium.healstick, ModPaladium.findium, new ItemStack(ModPaladium.StickOfGod, 1));
                                            }
                                        
                                            public void addRecipe(ItemStack stack1, ItemStack stack2, ItemStack stack3, ItemStack stack4, ItemStack stack5, ItemStack stack)
                                            {
                                                ItemStack stackList[] = {
                                                    stack1, stack2, stack3, stack4, stack5
                                                };
                                                smeltingList.put(stackList, stack);
                                            }
                                        
                                            public void addRecipe(Item item1, Block item2, Item item3, Block item4, Item item5, ItemStack stack)
                                            {
                                                addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                            }
                                        
                                            public void addRecipe(Item item1, Item item2, Item item3, Item item4, Item item5, ItemStack stack)
                                            {
                                                addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                            }
                                        
                                            public void addRecipe(Block item1, Block item2, Item item3, Block item4, Block item5, ItemStack stack)
                                            {
                                                addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                            }
                                        
                                            public void addRecipe(Item item1, Block item2, Block item3, Block item4, Block item5, ItemStack stack)
                                            {
                                                addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                            }
                                        
                                            public ItemStack getSmeltingResult(ItemStack stack[])
                                            {
                                                Iterator iterator = smeltingList.entrySet().iterator();
                                                java.util.Map.Entry entry;
                                                do
                                                {
                                                    if(!iterator.hasNext())
                                                        return null;
                                                    entry = (java.util.Map.Entry)iterator.next();
                                                } while(!isSameKey(stack, (ItemStack[])(ItemStack[])entry.getKey()));
                                                return (ItemStack)entry.getValue();
                                            }
                                        
                                            private boolean isSameKey(ItemStack stackList[], ItemStack stackList2[])
                                            {
                                                boolean isSame = false;
                                                for(int i = 0; i <= 4; i++)
                                                    if(stackList*.getItem() == stackList2*.getItem())
                                                        isSame = true;
                                                    else
                                                        return false;
                                        
                                                return isSame;
                                            }
                                        
                                            public Map getSmeltingList()
                                            {
                                                return smeltingList;
                                            }
                                        
                                            public static MachineRecipes smelting()
                                            {
                                                return smeltingBase;
                                            }
                                        
                                            private static final MachineRecipes smeltingBase = new MachineRecipes();
                                            private Map smeltingList;
                                        
                                        

                                        **TileEntityMachinePala **

                                        public class TileEntityMachinePala extends TileEntity
                                        implements IInventory
                                        {
                                        
                                            public TileEntityMachinePala()
                                            {
                                                contents = new ItemStack[6];
                                                workingTime = 0;
                                                workingTimeNeeded = 200;
                                            }
                                            @Override
                                            public void writeToNBT(NBTTagCompound compound)
                                            {
                                            super.writeToNBT(compound);
                                                NBTTagList nbttaglist = new NBTTagList();
                                                for(int i = 0; i < contents.length; i++)
                                                    if(contents* != null)
                                                    {
                                                        NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                                                        nbttagcompound1.setByte("Slot", (byte)i);
                                                        contents*.writeToNBT(nbttagcompound1);
                                                        nbttaglist.appendTag(nbttagcompound1);
                                                    }
                                        
                                                compound.setTag("Items", nbttaglist);
                                                compound.setShort("workingTime", (short)workingTime);
                                                compound.setShort("workingTimeNeeded", (short)workingTimeNeeded);
                                            }
                                        
                                            public int getCookProgress()
                                            {
                                                return (workingTime * 16) / workingTimeNeeded;
                                            }
                                            @Override
                                            public void readFromNBT(NBTTagCompound compound)
                                            {
                                                super.readFromNBT(compound);
                                                NBTTagList nbttaglist = compound.getTagList("Items", 10);
                                                contents = new ItemStack[getSizeInventory()];
                                                for(int i = 0; i < nbttaglist.tagCount(); i++)
                                                {
                                                    NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                                                    int j = nbttagcompound1.getByte("Slot");
                                                    if(j >= 0 && j < contents.length)
                                                        contents[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
                                                }
                                        
                                                workingTime = compound.getShort("workingTime");
                                                workingTimeNeeded = compound.getShort("workingTimeNeeded");
                                            }
                                            @Override
                                            public int getSizeInventory()
                                            {
                                                return contents.length;
                                            }
                                            @Override
                                            public ItemStack getStackInSlot(int slotIndex)
                                            {
                                                return contents[slotIndex];
                                            }
                                            @Override
                                            public ItemStack decrStackSize(int slotIndex, int amount)
                                            {
                                                if(contents[slotIndex] != null)
                                                {
                                                    ItemStack itemstack;
                                                    if(contents[slotIndex].stackSize <= amount)
                                                    {
                                                        itemstack = contents[slotIndex];
                                                        contents[slotIndex] = null;
                                                        markDirty();
                                                        return itemstack;
                                                    }
                                                    itemstack = contents[slotIndex].splitStack(amount);
                                                    if(contents[slotIndex].stackSize == 0)
                                                        contents[slotIndex] = null;
                                                    markDirty();
                                                    return itemstack;
                                                } else
                                                {
                                                    return null;
                                                }
                                            }
                                            @Override
                                            public ItemStack getStackInSlotOnClosing(int slotIndex)
                                            {
                                                if(contents[slotIndex] != null)
                                                {
                                                    ItemStack itemstack = contents[slotIndex];
                                                    contents[slotIndex] = null;
                                                    return itemstack;
                                                } else
                                                {
                                                    return null;
                                                }
                                            }
                                            @Override
                                            public void setInventorySlotContents(int slotIndex, ItemStack stack)
                                            {
                                                contents[slotIndex] = stack;
                                                if(stack != null && stack.stackSize > getInventoryStackLimit())
                                                    stack.stackSize = getInventoryStackLimit();
                                                markDirty();
                                            }
                                            @Override
                                            public String getInventoryName()
                                            {
                                                return "tile.Machinetuto";
                                            }
                                            @Override
                                            public boolean hasCustomInventoryName()
                                            {
                                                return false;
                                            }
                                            @Override
                                            public int getInventoryStackLimit()
                                            {
                                                return 64;
                                            }
                                            @Override
                                            public boolean isUseableByPlayer(EntityPlayer player)
                                            {
                                                return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this ? player.getDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D) <= 64D : false;
                                            }
                                            @Override
                                            public void openInventory()
                                            {
                                            }
                                            @Override
                                            public void closeInventory()
                                            {
                                            }
                                            @Override
                                            public boolean isItemValidForSlot(int slot, ItemStack stack)
                                            {
                                                return slot != 5;
                                            }
                                        
                                            public boolean isBurning()
                                            {
                                                return workingTime > 0;
                                            }
                                        
                                            private boolean canSmelt()
                                            {
                                                if(contents[0] == null || contents[1] == null || contents[2] == null || contents[3] == null || contents[4] == null)
                                                    return false;
                                                ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                                                    contents[0], contents[1], contents[2], contents[3], contents[4]
                                                });
                                                if(itemstack == null)
                                                    return false;
                                                if(contents[5] == null)
                                                    return true;
                                                if(!contents[5].isItemEqual(itemstack))
                                                {
                                                    return false;
                                                } else
                                                {
                                                    int result = contents[5].stackSize + itemstack.stackSize;
                                                    return result <= getInventoryStackLimit() && result <= contents[5].getMaxStackSize();
                                                }
                                            }
                                        
                                            public void updateEntity()
                                            {
                                                if(isBurning() && canSmelt())
                                                    workingTime++;
                                                if(canSmelt() && !isBurning())
                                                    workingTime = 1;
                                                if(canSmelt() && workingTime == workingTimeNeeded)
                                                {
                                                    smeltItem();
                                                    workingTime = 0;
                                                }
                                                if(!canSmelt())
                                                    workingTime = 0;
                                            }
                                        
                                            public void smeltItem()
                                            {
                                                if(canSmelt())
                                                {
                                                    ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                                                        contents[0], contents[1], contents[2], contents[3], contents[4]
                                                    });
                                                    if(contents[5] == null)
                                                        contents[5] = itemstack.copy();
                                                    else
                                                    if(contents[5].getItem() == itemstack.getItem())
                                                        contents[5].stackSize += itemstack.stackSize;
                                                    contents[0].stackSize–;
                                                    contents[1].stackSize–;
                                                    contents[2].stackSize–;
                                                    contents[3].stackSize–;
                                                    contents[4].stackSize–;
                                                    if(contents[0].stackSize <= 0)
                                                        contents[0] = null;
                                                    if(contents[1].stackSize <= 0)
                                                        contents[1] = null;
                                                    if(contents[2].stackSize <= 0)
                                                        contents[2] = null;
                                                    if(contents[3].stackSize <= 0)
                                                        contents[3] = null;
                                                    if(contents[4].stackSize <= 0)
                                                        contents[4] = null;
                                                }
                                            }
                                        
                                            private ItemStack contents[];
                                            private int workingTime;
                                            private int workingTimeNeeded;
                                        
                                        }
                                        
                                        

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

                                          Voilà les classes corrigées :

                                          public class MachineRecipes
                                          {
                                          
                                          public MachineRecipes()
                                          {
                                          smeltingList = new HashMap<itemstack[], itemstack="">();
                                          addRecipe(ModPaladium.PaladiumOre, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, ModPaladium.Paladiumbloc, new ItemStack(ModPaladium.smallring, 1));
                                          addRecipe(ModPaladium.smallring, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, new ItemStack(ModPaladium.mediumring, 1));
                                          addRecipe(ModPaladium.mediumring, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, ModPaladium.CompressPaladium, new ItemStack(ModPaladium.bigring, 1));
                                          addRecipe(ModPaladium.smallring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.smallring, 1));
                                          addRecipe(ModPaladium.mediumring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.mediumring, 1));
                                          addRecipe(ModPaladium.bigring, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.bigring, 1));
                                          addRecipe(ModPaladium.orbeheal, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.healstick, 1));
                                          addRecipe(ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, ModPaladium.orbeheal, new ItemStack(ModPaladium.superhealstick, 1));
                                          addRecipe(ModPaladium.orbespeed, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.speedstick, 1));
                                          addRecipe(ModPaladium.orbestrength, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.strengthstick, 1));
                                          addRecipe(ModPaladium.orbejump, ModPaladium.stickpala, ModPaladium.PaladiumOre, ModPaladium.stickpala, ModPaladium.PaladiumOre, new ItemStack(ModPaladium.jumpstick, 1));
                                          addRecipe(ModPaladium.CompressPaladium, ModPaladium.strengthstick, ModPaladium.speedstick, ModPaladium.healstick, ModPaladium.findium, new ItemStack(ModPaladium.StickOfGod, 1));
                                          }
                                          
                                          public void addRecipe(ItemStack stack1, ItemStack stack2, ItemStack stack3, ItemStack stack4, ItemStack stack5, ItemStack stack)
                                          {
                                          ItemStack stackList[] = {
                                          stack1, stack2, stack3, stack4, stack5
                                          };
                                          smeltingList.put(stackList, stack);
                                          }
                                          
                                          public void addRecipe(Item item1, Block item2, Item item3, Block item4, Item item5, ItemStack stack)
                                          {
                                          addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                          }
                                          
                                          public void addRecipe(Item item1, Item item2, Item item3, Item item4, Item item5, ItemStack stack)
                                          {
                                          addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                          }
                                          
                                          public void addRecipe(Block item1, Block item2, Item item3, Block item4, Block item5, ItemStack stack)
                                          {
                                          addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                          }
                                          
                                          public void addRecipe(Item item1, Block item2, Block item3, Block item4, Block item5, ItemStack stack)
                                          {
                                          addRecipe(new ItemStack(item1), new ItemStack(item2), new ItemStack(item3), new ItemStack(item4), new ItemStack(item5), stack);
                                          }
                                          
                                          public ItemStack getSmeltingResult(ItemStack stack[])
                                          {
                                          Iterator iterator = smeltingList.entrySet().iterator();
                                          java.util.Map.Entry entry;
                                          do
                                          {
                                          if(!iterator.hasNext())
                                          return null;
                                          entry = (java.util.Map.Entry)iterator.next();
                                          } while(!isSameKey(stack, (ItemStack[])entry.getKey()));
                                          return (ItemStack)entry.getValue();
                                          }
                                          
                                          private boolean isSameKey(ItemStack stackList[], ItemStack stackList2[])
                                          {
                                          for(int i = 0; i <= 4; i++) {
                                          if (!stackList*.isItemEqual(stackList2*))
                                          return false;
                                          }
                                          return true;
                                          }
                                          
                                          public Map <itemstack[], itemstack="">getSmeltingList()
                                          {
                                          return smeltingList;
                                          }
                                          
                                          public static MachineRecipes smelting()
                                          {
                                          return smeltingBase;
                                          }
                                          
                                          private static final MachineRecipes smeltingBase = new MachineRecipes();
                                          private Map <itemstack[], itemstack="">smeltingList;
                                          }
                                          
                                          public class TileEntityMachinePala extends TileEntity
                                          implements IInventory
                                          {
                                          public TileEntityMachinePala()
                                          {
                                          contents = new ItemStack[6];
                                          workingTime = 0;
                                          workingTimeNeeded = 200;
                                          }
                                          @Override
                                          public void writeToNBT(NBTTagCompound compound)
                                          {
                                          super.writeToNBT(compound);
                                          NBTTagList nbttaglist = new NBTTagList();
                                          for(int i = 0; i < contents.length; i++)
                                          if(contents* != null)
                                          {
                                          NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                                          nbttagcompound1.setByte("Slot", (byte)i);
                                          contents*.writeToNBT(nbttagcompound1);
                                          nbttaglist.appendTag(nbttagcompound1);
                                          }
                                          
                                          compound.setTag("Items", nbttaglist);
                                          compound.setShort("workingTime", (short)workingTime);
                                          compound.setShort("workingTimeNeeded", (short)workingTimeNeeded);
                                          }
                                          
                                          public int getCookProgress()
                                          {
                                          return (workingTime * 16) / workingTimeNeeded;
                                          }
                                          @Override
                                          public void readFromNBT(NBTTagCompound compound)
                                          {
                                          super.readFromNBT(compound);
                                          NBTTagList nbttaglist = compound.getTagList("Items", 10);
                                          contents = new ItemStack[getSizeInventory()];
                                          for(int i = 0; i < nbttaglist.tagCount(); i++)
                                          {
                                          NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                                          int j = nbttagcompound1.getByte("Slot");
                                          if(j >= 0 && j < contents.length)
                                          contents[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
                                          }
                                          
                                          workingTime = compound.getShort("workingTime");
                                          workingTimeNeeded = compound.getShort("workingTimeNeeded");
                                          }
                                          @Override
                                          public int getSizeInventory()
                                          {
                                          return contents.length;
                                          }
                                          @Override
                                          public ItemStack getStackInSlot(int slotIndex)
                                          {
                                          return contents[slotIndex];
                                          }
                                          @Override
                                          public ItemStack decrStackSize(int slotIndex, int amount)
                                          {
                                          if(contents[slotIndex] != null)
                                          {
                                          ItemStack itemstack;
                                          if(contents[slotIndex].stackSize <= amount)
                                          {
                                          itemstack = contents[slotIndex];
                                          contents[slotIndex] = null;
                                          markDirty();
                                          return itemstack;
                                          }
                                          itemstack = contents[slotIndex].splitStack(amount);
                                          if(contents[slotIndex].stackSize == 0)
                                          contents[slotIndex] = null;
                                          markDirty();
                                          return itemstack;
                                          } else
                                          {
                                          return null;
                                          }
                                          }
                                          @Override
                                          public ItemStack getStackInSlotOnClosing(int slotIndex)
                                          {
                                          if(contents[slotIndex] != null)
                                          {
                                          ItemStack itemstack = contents[slotIndex];
                                          contents[slotIndex] = null;
                                          return itemstack;
                                          } else
                                          {
                                          return null;
                                          }
                                          }
                                          @Override
                                          public void setInventorySlotContents(int slotIndex, ItemStack stack)
                                          {
                                          contents[slotIndex] = stack;
                                          if(stack != null && stack.stackSize > getInventoryStackLimit())
                                          stack.stackSize = getInventoryStackLimit();
                                          markDirty();
                                          }
                                          @Override
                                          public String getInventoryName()
                                          {
                                          return "tile.Machinetuto";
                                          }
                                          @Override
                                          public boolean hasCustomInventoryName()
                                          {
                                          return false;
                                          }
                                          @Override
                                          public int getInventoryStackLimit()
                                          {
                                          return 64;
                                          }
                                          @Override
                                          public boolean isUseableByPlayer(EntityPlayer player)
                                          {
                                          return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this ? player.getDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D) <= 64D : false;
                                          }
                                          @Override
                                          public void openInventory()
                                          {
                                          }
                                          @Override
                                          public void closeInventory()
                                          {
                                          }
                                          @Override
                                          public boolean isItemValidForSlot(int slot, ItemStack stack)
                                          {
                                          return slot != 5;
                                          }
                                          
                                          public boolean isBurning()
                                          {
                                          return workingTime > 0;
                                          }
                                          
                                          private boolean canSmelt()
                                          {
                                          if(contents[0] == null || contents[1] == null || contents[2] == null || contents[3] == null || contents[4] == null)
                                          return false;
                                          ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                                          contents[0], contents[1], contents[2], contents[3], contents[4]
                                          });
                                          if(itemstack == null)
                                          return false;
                                          if(contents[5] == null)
                                          return true;
                                          if(!contents[5].isItemEqual(itemstack))
                                          {
                                          return false;
                                          } else
                                          {
                                          int result = contents[5].stackSize + itemstack.stackSize;
                                          return result <= getInventoryStackLimit() && result <= contents[5].getMaxStackSize();
                                          }
                                          }
                                          
                                          public void updateEntity()
                                          {
                                          if(isBurning() && canSmelt())
                                          workingTime++;
                                          if(canSmelt() && !isBurning())
                                          workingTime = 1;
                                          if(canSmelt() && workingTime == workingTimeNeeded)
                                          {
                                          smeltItem();
                                          workingTime = 0;
                                          }
                                          if(!canSmelt())
                                          workingTime = 0;
                                          }
                                          
                                          public void smeltItem()
                                          {
                                          if(canSmelt())
                                          {
                                          ItemStack itemstack = MachineRecipes.smelting().getSmeltingResult(new ItemStack[] {
                                          contents[0], contents[1], contents[2], contents[3], contents[4]
                                          });
                                          if(contents[5] == null)
                                          contents[5] = itemstack.copy();
                                          else
                                          if(contents[5].isItemEqual(itemstack))
                                          contents[5].stackSize += itemstack.stackSize;
                                          contents[0].stackSize–;
                                          contents[1].stackSize–;
                                          contents[2].stackSize–;
                                          contents[3].stackSize–;
                                          contents[4].stackSize–;
                                          if(contents[0].stackSize <= 0)
                                          contents[0] = null;
                                          if(contents[1].stackSize <= 0)
                                          contents[1] = null;
                                          if(contents[2].stackSize <= 0)
                                          contents[2] = null;
                                          if(contents[3].stackSize <= 0)
                                          contents[3] = null;
                                          if(contents[4].stackSize <= 0)
                                          contents[4] = null;
                                          }
                                          }
                                          
                                          private ItemStack contents[];
                                          private int workingTime;
                                          private int workingTimeNeeded;
                                          
                                          }
                                          

                                          Maintenant, ce que tu as à faire c’est changer les items en ItemStack dans le constructeur et indiquer le metadata de ton item.</itemstack[],></itemstack[],></itemstack[],>

                                          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

                                            encore un petit soucis ici"public boolean hitEntity(ItemStack stack, EntityLivingBase attackedLiving, EntityLivingBase attackerLiving) " ca me dit “Illegal modifier for parameter hitEntity; only final is permitted”

                                            public boolean hitEntity(ItemStack stack, EntityLivingBase attackedLiving, EntityLivingBase attackerLiving)   //<–-----juste avant ;D
                                                        {
                                                    if(!stack.hasTagCompound())
                                                    {
                                                    stack.setTagCompound(new NBTTagCompound());
                                                    }
                                            
                                                    IEntitySelector filter;
                                            
                                                    filter = new IEntitySelector()
                                                    {
                                                    @Override
                                                    public boolean isEntityApplicable(Entity entity)
                                                    {
                                                    if(entity instanceof EntityPlayer) // mon sélecteur prend tout les joueurs
                                                    {
                                                    return true;
                                                    }
                                                    return false;
                                                    }
                                                    };
                                            
                                                    filter = new IEntitySelector()
                                                    {
                                                    @Override
                                                    public boolean isEntityApplicable(Entity entity)
                                                    {
                                                    if(entity instanceof EntityMob)// mon sélecteur prend tous les monstres
                                                    {
                                                    return true;
                                                    }
                                                    return false;
                                                    }
                                                    };
                                            
                                                    filter = new IEntitySelector()
                                                    {
                                                    @Override
                                                    public boolean isEntityApplicable(Entity entity)
                                                    {
                                                    if(entity instanceof EntityAnimal) // mon sélecteur prend tous les animaux
                                                    {
                                                    return true;
                                                    }
                                                    return false;
                                                    }
                                                    };
                                                    }
                                                    List entityTargetList = attackedLiving.worldObj.selectEntitiesWithinAABB(EntityLivingBase.class, attackedLiving.boundingBox.expand(8.0D, 2.0D, 8.0D), filter);
                                                    for(Object entity : entityTargetList)
                                                    {
                                                    net.minecraft.entity.EntityLivingBase living = (EntityLivingBase)entity; 
                                                    living.attackEntityFrom(DamageSource.generic, 10.0F); 
                                                    }
                                            

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

                                            MINECRAFT FORGE FRANCE © 2024

                                            Powered by NodeBB