MFF

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

    Problémes avec multiblock

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    3 Messages 2 Publieurs 686 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.
    • ? Hors-ligne
      Un Ancien Utilisateur
      dernière édition par

      bonjours, je fait la structure et je pos le blocks contrleurs à la fin et la je crash voici mon erreur de crash :

      http://pastebin.com/2k2BUJfX

      crash-2016-10-23_06.54.42-client

      –-- Minecraft Crash Report ----
      // You're mean.
      
      Time: 23/10/16 06:54
      Description: Initializing game
      
      java.lang.IllegalArgumentException: Duplicate id: adamitemod:MachineTileEntity
      at net.minecraft.tileentity.TileEntity.addMapping(TileEntity.java:50)
      at cpw.mods.fml.common.registry.GameRegistry.registerTileEntity(GameRegistry.java:281)
      at com.adamitemod.mod.AdamiteMod.init(AdamiteMod.java:264)
      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 net.minecraft.tileentity.TileEntity.addMapping(TileEntity.java:50)
      at cpw.mods.fml.common.registry.GameRegistry.registerTileEntity(GameRegistry.java:281)
      at com.adamitemod.mod.AdamiteMod.init(AdamiteMod.java:264)
      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 10 (x86) version 10.0
      Java Version: 1.8.0_66, Oracle Corporation
      Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
      Memory: 885352056 bytes (844 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 adamitemod{1.0.0} [Adamite Mod] (bin)
      GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4276' Renderer: 'Intel(R) HD Graphics'
      Launched Version: 1.7.10
      LWJGL: 2.9.1
      OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.4276, 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: English (US)
      Profiler Position: N/A (disabled)
      Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
      Anisotropic Filtering: Off (1)
      

      Ma class

      
       package com.adamitemod.mod.smelterie;
      
      import java.util.Random;
      
      import com.adamitemod.mod.AdaSmeltMachineTileEntity;
      import com.adamitemod.mod.AdamiteMod;
      import com.adamitemod.mod.init.BlocksMod;
      
      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.entity.EntityLivingBase;
      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 BlockControler
         extends BlockContainer
       {
         private IIcon autreface;
      
         public BlockControler()
         {
           super(Material.rock);
           setResistance(8.0F);
           setHarvestLevel("pickaxe", 2);
           setCreativeTab(AdamiteMod.Ada);
           setHardness(10.0F);
         }
      
         public boolean isBlockStructure(World world, int x, int y, int z)
         {
           if (structureIfBlockPlacedAtNorth(world, x, y, z)) {
             return true;
           }
           if (structureIfBlockPlacedAtEast(world, x, y, z)) {
             return true;
           }
           if (structureIfBlockPlacedAtSouth(world, x, y, z)) {
             return true;
           }
           if (structureIfBlockPlacedAtWest(world, x, y, z)) {
             return true;
           }
           return false;
         }
      
         public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
         {
           if (isBlockStructure(world, x, y, z))
           {
           if (!world.isRemote) {
               player.openGui(AdamiteMod.instance, 0, world, x, y, z);
             }
             return true;
           }
           return false;
         }
      
         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)
               {
                 float f = world.rand.nextFloat() * 0.8F + 0.1F;
                 float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
                 EntityItem entityitem;
                 for (float f2 = world.rand.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world
                       .spawnEntityInWorld(entityitem))
                 {
                   int j1 = world.rand.nextInt(21) + 10;
                   if (j1 > itemstack.stackSize) {
                     j1 = itemstack.stackSize;
                   }
                   itemstack.stackSize -= j1;
      
                   entityitem = new EntityItem(world, x + f, y + f1, 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.func_147453_f(x, y, z, block);
           }
         }
      
         private static boolean structureIfBlockPlacedAtNorth(World world, int x, int y, int z)
         {
           if ((world.getBlock(x + -1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + -2).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + -2).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + -2).equals(BlocksMod.adamiteBlock))) {
             return true;
           }
           return false;
         }
      
         private static boolean structureIfBlockPlacedAtEast(World world, int x, int y, int z)
         {
           if ((world.getBlock(x + 0, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 2, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 2, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 2, y + -1, z + 1).equals(BlocksMod.adamiteBlock))) {
             return true;
           }
           return false;
         }
      
         private static boolean structureIfBlockPlacedAtSouth(World world, int x, int y, int z)
         {
           if ((world.getBlock(x + 1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 1, y + -1, z + 2).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 2).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + 2).equals(BlocksMod.adamiteBlock))) {
             return true;
           }
           return false;
         }
      
         private static boolean structureIfBlockPlacedAtWest(World world, int x, int y, int z)
         {
           if ((world.getBlock(x + 0, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -2, y + -1, z + 1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -2, y + -1, z + 0).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + 0, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -1, y + -1, z + -1).equals(BlocksMod.adamiteBlock)) && 
             (world.getBlock(x + -2, y + -1, z + -1).equals(BlocksMod.adamiteBlock))) {
             return true;
           }
           return false;
         }
      
         public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_)
         {
           return new AdaSmeltMachineTileEntity();
         }
      
         public boolean hasTileEntity()
         {
           return true;
         }
      
         public void registerBlockIcons(IIconRegister iiconRegister)
         {
           this.blockIcon = iiconRegister.registerIcon("adamitemod:Controler");
           this.autreface = iiconRegister.registerIcon("adamitemod:Controler_front");
         }
         public IIcon getIcon(int side, int metadata)
         {
          if ((metadata == 0) && (side == 3)) {
            return this.autreface;
           }
           return side != metadata ? this.blockIcon : this.autreface;
        }
      
        public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack)
        {
           super.onBlockPlacedBy(world, x, y, z, entity, stack);
      
           byte b0 = 4;
           b0 = rotateBlock(b0, entity);
           world.setBlockMetadataWithNotify(x, y, z, b0, 2);
         }
      
        public byte rotateBlock(byte b0, EntityLivingBase entity)
         {
           if (((entity.rotationYaw >= 135.0F) && (entity.rotationYaw <= 181.0F)) || ((entity.rotationYaw <= -135.0F) && (entity.rotationYaw >= -181.0F)))
          {
            b0 = 3;
          }
          else if ((entity.rotationYaw > -135.0F) && (entity.rotationYaw < -45.0F))
         {
            b0 = 4;
          }
          else if ((entity.rotationYaw >= -45.0F) && (entity.rotationYaw <= 45.0F))
           {
             b0 = 2;
          }
           else if ((entity.rotationYaw > 45.0F) && (entity.rotationYaw < 135.0F))
           {
             b0 = 5;
          }
          else if (entity.rotationYaw >= 181.0F)
           {
             entity.rotationYaw -= 360.0F;
             b0 = rotateBlock(b0, entity);
           }
          else if (entity.rotationYaw <= -181.0F)
          {
           b0 = rotateBlock(b0, entity);
          }
         return b0;
      
      }}
      
      

      Ma classe principale

      package com.adamitemod.mod;
      
      import java.awt.Color;
      
      import com.adamitemod.mod.BlocksMachines.Machine;
      import com.adamitemod.mod.BlocksMachines.MachinePulveriser;
      import com.adamitemod.mod.Dynamite.EntityDynamite;
      import com.adamitemod.mod.GuiMachines.GuiHandler;
      import com.adamitemod.mod.blocks.BlockElevator;
      import com.adamitemod.mod.blocks.ElevatorEvent;
      import com.adamitemod.mod.fluides.BlockFluidFake;
      import com.adamitemod.mod.fluides.ItemBucketFake;
      import com.adamitemod.mod.init.BlocksMod;
      import com.adamitemod.mod.init.CraftsMod;
      import com.adamitemod.mod.init.ItemsMod;
      import com.adamitemod.mod.items.ItemBackPack;
      import com.adamitemod.mod.items.ItemDynamite;
      import com.adamitemod.mod.proxy.ClientEventHandlerAntiXray;
      import com.adamitemod.mod.proxy.CommonProxy;
      import com.adamitemod.mod.proxy.GuiCustomMenu;
      import com.adamitemod.mod.skin.Eventskin;
      import com.adamitemod.mod.world.WorldRegister;
      import com.google.common.base.Throwables;
      
      import cpw.mods.fml.client.FMLClientHandler;
      import cpw.mods.fml.common.FMLCommonHandler;
      import cpw.mods.fml.common.Loader;
      import cpw.mods.fml.common.Mod;
      import cpw.mods.fml.common.Mod.EventHandler;
      import cpw.mods.fml.common.Mod.Instance;
      import cpw.mods.fml.common.SidedProxy;
      import cpw.mods.fml.common.event.FMLInitializationEvent;
      import cpw.mods.fml.common.event.FMLPostInitializationEvent;
      import cpw.mods.fml.common.event.FMLPreInitializationEvent;
      import cpw.mods.fml.common.eventhandler.SubscribeEvent;
      import cpw.mods.fml.common.gameevent.TickEvent;
      import cpw.mods.fml.common.gameevent.TickEvent.Phase;
      import cpw.mods.fml.common.network.NetworkRegistry;
      import cpw.mods.fml.common.registry.EntityRegistry;
      import cpw.mods.fml.common.registry.GameRegistry;
      import cpw.mods.fml.relauncher.Side;
      import cpw.mods.fml.relauncher.SideOnly;
      import net.minecraft.block.Block;
      import net.minecraft.block.material.Material;
      import net.minecraft.client.Minecraft;
      import net.minecraft.client.gui.GuiMainMenu;
      import net.minecraft.client.gui.GuiScreen;
      import net.minecraft.creativetab.CreativeTabs;
      import net.minecraft.item.Item;
      import net.minecraft.item.ItemStack;
      import net.minecraft.util.WeightedRandomChestContent;
      import net.minecraftforge.common.ChestGenHooks;
      import net.minecraftforge.common.MinecraftForge;
      import net.minecraftforge.fluids.Fluid;
      import net.minecraftforge.fluids.FluidContainerRegistry;
      import net.minecraftforge.fluids.FluidRegistry;
      
      @Mod(modid = References.MOD_ID, name = References.MOD_NAME, version = References.VERSION)
      public class AdamiteMod {
      @Instance(References.MOD_ID)
      public static AdamiteMod instance;
      
      public static Item Dynamite, bucketFake;
      public static Block Machine, BlockFluidFake, MachinePulveriser, MachineStacker;
      public static Item ITEM_BACKPACK;
      
      public static Fluid fluidFake;
      
      public static Block RanbcOEk;
      
      public static Block Fkaelocks;
      
      public static Block BlockControler;
      
      public static Block FakeObsidian;
      
      public static Block fakeOstne;
      
      @SidedProxy(clientSide = References.CLIENT_PROXY, serverSide = References.SERVER_PROXY)
      public static CommonProxy proxy;
      public static Block Elevator;
      
      public static CreativeTabs Ada = new CreativeTabs("Ada") {
      @SideOnly(Side.CLIENT)
      public Item getTabIconItem() {
      return ItemsMod.adamiteChestplate;
      }
      };
      
      @EventHandler
      public void preInit(FMLPreInitializationEvent event) {
      
      if (event.getSide() == Side.CLIENT) {
      MinecraftForge.EVENT_BUS.register(new Eventskin());
      }
      
      if (Loader.isModLoaded("cheatingessentials")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("hud")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("XaeroMinimap")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("XaeroBetterPvP")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("EllianMaterialDetector")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("CJB|Cheats")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("DirectionHUD")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("alluwant")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("VoxelMap")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      if (Loader.isModLoaded("thebombzenapi")) {
      Throwables.propagate(new Exception("java.io.FileNotFoundException.4"));
      }
      
      fluidFake = new Fluid("fake").setDensity(4000).setViscosity(500).setTemperature(459).setLuminosity(10)
      .setUnlocalizedName("fake");
      FluidRegistry.registerFluid(fluidFake);
      fluidFake = FluidRegistry.getFluid("fake");
      
      if (fluidFake.getBlock() == null) {
      BlockFluidFake = new BlockFluidFake(fluidFake, Material.water).setBlockName("fluidFake");
      GameRegistry.registerBlock(BlockFluidFake, "fluidFake");
      fluidFake.setBlock(BlockFluidFake);
      } else {
      BlockFluidFake = fluidFake.getBlock();
      }
      
      bucketFake = new ItemBucketFake(BlockFluidFake).setUnlocalizedName("bucketFake")
      .setTextureName("AdamiteMod:Fake");
      
      GameRegistry.registerItem(bucketFake, "bucketFake", "AdamiteMod");
      
      FluidContainerRegistry.registerFluidContainer(
      FluidRegistry.getFluidStack("fake", FluidContainerRegistry.BUCKET_VOLUME), new ItemStack(bucketFake),
      FluidContainerRegistry.EMPTY_BUCKET);
      
      BlocksMod.init();
      
      BlockControler = new com.adamitemod.mod.smelterie.BlockControler().setBlockName("BlockControler");
      
      RanbcOEk = new FireBlocks("FireBlocks", Material.rock).setBlockName("FireBlocks")
      .setCreativeTab(AdamiteMod.Ada);
      
      Fkaelocks = new Fakeblocks("Fakeblocks", Material.rock).setBlockName("Fakeblocks")
      .setCreativeTab(AdamiteMod.Ada);
      
      fakeOstne = new FakeblocksStone("FakeblocksStone", Material.rock).setBlockName("FakeblocksStone")
      .setCreativeTab(AdamiteMod.Ada);
      
      FakeObsidian = new FakeblocksObsidienne("FakeObsi", Material.rock).setBlockName("FakeObsi")
      .setCreativeTab(AdamiteMod.Ada);
      
      ITEM_BACKPACK = new ItemBackPack();
      
      Elevator = new BlockElevator().setBlockTextureName(References.MOD_ID + ":elevator").setHardness(3.5F)
      .setBlockName("Elevator").setCreativeTab(AdamiteMod.Ada);
      
      GameRegistry.registerBlock(Elevator, "Elevator");
      
      GameRegistry.registerBlock(RanbcOEk, "RanbcOEk");
      
      GameRegistry.registerBlock(Fkaelocks, "Fkaelocks");
      
      GameRegistry.registerBlock(fakeOstne, "FakeBlocksStone");
      
      GameRegistry.registerBlock(FakeObsidian, "FakeObsidian");
      
      BlocksMod.register();
      
      ItemsMod.init();
      
      MachineStacker = new MachineStacker().setBlockName("machinestacker");
      
      Machine = new Machine().setBlockName("machine");
      
      MachinePulveriser = new MachinePulveriser().setBlockName("machinepulveriser");
      
      ItemsMod.register();
      
      Dynamite = new ItemDynamite(Dynamite).setUnlocalizedName("Dynamite").setCreativeTab(AdamiteMod.Ada)
      .setTextureName(References.MOD_ID + ":dynamite");
      
      GameRegistry.registerItem(Dynamite, "Dynamite");
      
         GameRegistry.registerBlock(BlockControler, BlockControler.getUnlocalizedName().substring(5));
      
      GameRegistry.registerBlock(Machine, "Machine");
      
      GameRegistry.registerBlock(MachineStacker, "MachineStacker");
      
      GameRegistry.registerBlock(MachinePulveriser, "MachinePulveriser");
      
      CraftsMod.init();
      
      WorldRegister.mainRegsitry();
      
      proxy.registerRenders();
      
      EntityRegistry.registerModEntity(EntityDynamite.class, "Dynamite", 7, this, 64, 20, true);
      }
      
      @EventHandler
      public void init(FMLInitializationEvent event)
      {
      
      proxy.registerRenders();
      if (event.getSide().isClient()) {
      FMLCommonHandler.instance().bus().register(this);
      Minecraft mc = Minecraft.getMinecraft();
      FMLCommonHandler.instance().bus().register(new ClientEventHandlerAntiXray(mc));
      }
      
      EntityRegistry.registerGlobalEntityID(MobMinautore.class, "mobminautor",
      EntityRegistry.findGlobalUniqueEntityId(), new Color(0, 25, 0).getRGB(), new Color(55, 0, 0).getRGB());
      
      Dynamite = new ItemDynamite(Dynamite).setUnlocalizedName("Dynamite").setCreativeTab(AdamiteMod.Ada)
      .setTextureName(References.MOD_ID + ":dynamite");
      
      ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.adamite), 1, 2, 1));
      ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.adamite), 1, 2, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CORRIDOR)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.adamite), 1, 3, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CROSSING)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.adamite), 1, 3, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_LIBRARY)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.adamite), 1, 3, 1));
      
      ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.fission), 1, 1, 1));
      ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.fission), 1, 1, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CORRIDOR)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.fission), 1, 2, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CROSSING)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.fission), 1, 2, 1));
      ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_LIBRARY)
      .addItem(new WeightedRandomChestContent(new ItemStack(ItemsMod.fission), 1, 2, 1));
      MinecraftForge.EVENT_BUS.register(new ElevatorEvent());
      FMLCommonHandler.instance().bus().register(new ElevatorEvent());
      NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
      EntityRegistry.registerModEntity(EntityDynamite.class, "Dynamite", 7, this, 64, 20, true);
      GameRegistry.registerTileEntity(TileEntityMachine.class, References.MOD_ID + ":MachineTileEntity");
      GameRegistry.registerTileEntity(TileEntityMachinePulveriser.class,
      References.MOD_ID + ":MachineTileEntityPulveriser");
      GameRegistry.registerTileEntity(TileEntityMachineStacker.class,
      References.MOD_ID + ":MachineTileEntityStacker");
      GameRegistry.registerTileEntity(AdaSmeltMachineTileEntity.class, References.MOD_ID + ":Machinecontroler");
      GameRegistry.registerItem(ITEM_BACKPACK, "ITEM_BACKPACK");
      }
      
      @EventHandler
      public void postInit(FMLPostInitializationEvent event) {
      // if (event.getSide().isClient()) {
        //   FMLCommonHandler.instance().bus().register(this);
         }
      
      //  }
      
       @SubscribeEvent
      // @SideOnly(Side.CLIENT)
       public void onTickClient(TickEvent.ClientTickEvent event) 
       {
       //  if (event.phase == TickEvent.Phase.START)
       //  {
        //   Minecraft mc = Minecraft.getMinecraft();
         //  GuiScreen currentScreen = mc.currentScreen;
        //   GuiCustomMenu customMenu = new GuiCustomMenu();
         //  if (((currentScreen instanceof GuiMainMenu)) && (!currentScreen.equals(customMenu))) {
           //  mc.displayGuiScreen(customMenu);
           }
         //}
       }
      //}
      
      1 réponse Dernière réponse Répondre Citer 0
      • AymericRedA Hors-ligne
        AymericRed
        dernière édition par

        Pourquoi deux rapports de crash ?? Je suppose que celui qui te pose problème est le premier, le problème est que tu appelles ta fonction “rotateBlock” à l’intérieur d’elle même, si “entity.rotationYaw <= -181.0F” est vrai dans le cas de ce crash, sauf qu’en rappelant la fonction, cette condition sera toujours vraie, d’où une boucle infinie d’où le crash.

        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
        • ? Hors-ligne
          Un Ancien Utilisateur
          dernière édition par

          Merci probléme réglé 😉

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

          MINECRAFT FORGE FRANCE © 2024

          Powered by NodeBB