Message avec un item spécial



  • Bonjour,

    Je cherche a faire que quand on drop un item de ma caisse un item spécial un message dans le tchat s'affiche

      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entity, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
      {
        if ((entity.getHeldItem() != null) && (entity.getHeldItem().getItem() == Main.KeyFauchon))
        {
          Random rand = new Random();
          entity.inventory.decrStackSize(entity.inventory.currentItem, 1).copy();
    
          WeightedRandomChestContent[] items = new WeightedRandomChestContent[]{new WeightedRandomChestContent(new ItemStack (Main.bootsLinarite), 1, 1, 30), new WeightedRandomChestContent(new ItemStack (Main.GemMineraiLinarite), 1, 2, 50), new WeightedRandomChestContent(new ItemStack (Items.coal), 32, 64, 50), new WeightedRandomChestContent(new ItemStack (Main.GemMineraiPyrite), 1, 3, 30), new WeightedRandomChestContent(new ItemStack (Main.helmetPyrite), 1, 1, 30), new WeightedRandomChestContent(new ItemStack (Main.GemMineraiLinarite), 6, 12, 30), new WeightedRandomChestContent(new ItemStack (Main.helmetIridium), 1, 1, 10), new WeightedRandomChestContent(new ItemStack (Items.golden_apple), 6, 12, 10), new WeightedRandomChestContent(new ItemStack (Main.GemMineraiPyrite), 8, 16, 10), new WeightedRandomChestContent(new ItemStack (Main.dopplerkarambit), 1, 1, 1) , new WeightedRandomChestContent(new ItemStack (Main.dopplerkarambitusee), 1, 1, 1), new WeightedRandomChestContent(new ItemStack (Main.dopplerkarambittest), 1, 1, 2), new WeightedRandomChestContent(new ItemStack (Main.dopplerkarambitmauvais), 1, 1, 2)};
          WeightedRandomChestContent item = (WeightedRandomChestContent)WeightedRandom.getRandomItem(rand, items);
    
          int count = item.theMinimumChanceToGenerateItem+ (rand.nextInt(item.theMaximumChanceToGenerateItem - item.theMinimumChanceToGenerateItem + 1));
          entity.inventory.addItemStackToInventory(new ItemStack(item.theItemId.getItem(), count));
          // 9 10 11 12
          items[9] Minecraft.getMinecraft().thePlayer.sendChatMessage("/say " + Minecraft.getMinecraft().thePlayer.getDisplayName() + " a gagné un Karambite DOPPLER || FACTORY NEW ");
          world.setBlockToAir(x, y, z);
    
        }
        return true;
      }
    
    

    Voilà se que j'ai essayé de faire


  • Administrateurs

    Salut,
    Pour envoyer un message à tous les joueurs c'est comme ça :
    MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText("message"));



  • @'robin4002':

    Salut,
    Pour envoyer un message à tous les joueurs c'est comme ça :
           MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText("message"));

    Merci mais je voudrai aussi detecté que si le mec a eu le drop 9 10 11 et 12 sa a le message pas pour les autre


  • Administrateurs

    Fais une condition sur item.theItemId.getItem() ?



  • @'robin4002':

    Fais une condition sur item.theItemId.getItem() ?

    Malheureusement j'arrive pas, je pense abandonné


  • Administrateurs

    Sérieusement ?

    if(item.theItemId.getItem() == Main.GemMineraiPyrite || item.theItemId.getItem() == Main.dopplerkarambit || item.theItemId.getItem() == Main.dopplerkarambitusee || item.theItemId.getItem() == Main.dopplerkarambittest || item.theItemId.getItem() == Main.dopplerkarambitmauvais)
    {
        MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(player.getDisplayName() + " a gagné un Karambite DOPPLER || FACTORY NEW ")
    ));
    }
    


  • Merci sa fonctionne a peut prés en solo sa fonctionne mais en multi sa crash

          if(item.theItemId.getItem() == Main.bayonnetfade)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + Minecraft.getMinecraft().thePlayer.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un" + EnumChatFormatting.GOLD+" Bayonnet FADE || FACTORY NEW ")); 
          }
          if(item.theItemId.getItem() == Main.bayonnetfadeuse)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + Minecraft.getMinecraft().thePlayer.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || USEE ")); 
          }
          if(item.theItemId.getItem() == Main.bayonnetfadetest)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + Minecraft.getMinecraft().thePlayer.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || TEST ")); 
          }
          if(item.theItemId.getItem() == Main.bayonnetfademauvais)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + Minecraft.getMinecraft().thePlayer.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || MAUVAIS ")); 
          }
    
    –-- Minecraft Crash Report ----
    // Why is it breaking :(
    
    Time: 23/11/16 18:19
    Description: Exception in server tick loop
    
    java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
    at fr.darkvince.ultrav2.gamma.CasseGamma.func_149727_a(CasseGamma.java:60)
    at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:465)
    at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:861)
    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
    at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:245)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:181)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1023)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:432)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:841)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:693)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 12 more
    Caused by: java.lang.RuntimeException: Attempted to load class bao for invalid side SERVER
    at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:51)
    at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)
    ... 14 more
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Thermos Version: cyberdynecc:Thermos:1.7.10-1614.58
    Plugins: X_Reporter, WorldEdit, LVLUltra, Essentials, EssentialsProtect, JustBlood, VoxelSniper, EssentialsChat, GroupManager, EssentialsAntiBuild, Frame_Protector, QuickSign, Vault, EssentialsSpawn, Multiverse-Core, WorldGuard, MassiveCore, GUIShop, Factions, CombatTagPlus, ChestShop, MasterPromote
    Disabled Plugins:
    Operating System: Linux (amd64) version 3.5.0-47-generic
    Java Version: 1.8.0_60, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 184703504 bytes (176 MB) / 416546816 bytes (397 MB) up to 10416029696 bytes (9933 MB)
    JVM Flags: 23 total; -Xmx10000M -Xms256M -XX:MaxPermSize=256m -XX:PermSize=128m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+AggressiveOpts
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 11, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 12 mods loaded, 12 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (Thermos-1.7.10-1558-server.jar)
    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (Thermos-1.7.10-1558-server.jar)
    UCHIJAAAA kimagine{0.2} [KImagine] (minecraft.jar)
    UCHIJAAAA FLabsBF{4.3} [Better Furnaces] (Better-Furnaces-Mod-1.7.10.jar)
    UCHIJAAAA EasyCrafting{1.7.10-2.0.1.16} [Easy Crafting] (EasyCrafting-1.7.10-2.0.1.16.jar)
    UCHIJAAAA endercrop{1.7.10-1.1} [Ender Crop] (endercrop-1.7.10-1.2.jar)
    UCHIJAAAA etfuturum{1.4.3} [Et Futurum] (Et Futurum-1.4.3.jar)
    UCHIJAAAA IronChest{6.0.62.742} [Iron Chest] (ironchest-1.7.10-6.0.62.742-universal.jar)
    UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (modid-1.0.jar)
    UCHIJAAAA potioncore{@VERSION@} [Potion Core] (Potion-Core-1.7.10.jar)
    UCHIJAAAA supercraftingframe{1.7.10.1} [Super Crafting Frame] (Super-Crafting-Frame-Mod-1.7.10.jar)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 80; [EntityPlayerMP['darkvince_'/206, l='ttt', x=359,64, y=67,00, z=104,87](darkvince_ at 359.63927964413085,67.0,104.8734629987394)]
    Is Modded: Definitely; Server brand changed to 'thermos,cauldron,craftbukkit,mcpc,kcauldron,fml,forge'
    Type: Dedicated Server (map_server.txt)
    

  • Administrateurs

    Minecraft.getMinecraft().thePlayer.getDisplayName()
    ->
    player.getDisplayName()

    Je me répète encore une fois, Minecraft.getMinecraft() n'existe pas en multi. L'utiliser dans un contexte serveur fera toujours crasher le serveur.



  • @'robin4002':

    Minecraft.getMinecraft().thePlayer.getDisplayName()
    ->
    player.getDisplayName()

    Je me répète encore une fois, Minecraft.getMinecraft() n'existe pas en multi. L'utiliser dans un contexte serveur fera toujours crasher le serveur.

    Je vient de changer mais toujours le crash exactement pareil

    et aussi quand je marche sur mon block mon serveur s'éteint

    package fr.darkvince.ultrav2.gamma;
    
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import fr.darkvince.proxy.ClientProxy;
    import fr.darkvince.ultrav2.Main;
    
    import java.util.Random;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.enchantment.Enchantment;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.player.InventoryPlayer;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.server.MinecraftServer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.ChatComponentText;
    import net.minecraft.util.EnumChatFormatting;
    import net.minecraft.util.WeightedRandom;
    import net.minecraft.util.WeightedRandomChestContent;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.world.World;
    
    public class CasseGamma
      extends Block
    {
      private Item[] Tableau;
    
      public CasseGamma(Material p_i45394_1_)
      {
        super(p_i45394_1_);
      }
    
      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer entity, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
      {
        if ((entity.getHeldItem() != null) && (entity.getHeldItem().getItem() == Main.KeyGamma))
        {
          Random rand = new Random();
          entity.inventory.decrStackSize(entity.inventory.currentItem, 1).copy();
    
          WeightedRandomChestContent[] items = new WeightedRandomChestContent[]{new WeightedRandomChestContent(new ItemStack (Main.bootsLinarite), 1, 1, 30), new WeightedRandomChestContent(new ItemStack (Main.ArcLinarite), 1, 1, 50), new WeightedRandomChestContent(new ItemStack (Items.redstone), 32, 64, 50), new WeightedRandomChestContent(new ItemStack (Main.Bateau), 1, 1, 30), new WeightedRandomChestContent(new ItemStack (Main.BackPack), 1, 1, 30), new WeightedRandomChestContent(new ItemStack (Main.GemMineraiLinarite), 6, 12, 30), new WeightedRandomChestContent(new ItemStack (Main.bootsIridium), 1, 1, 10), new WeightedRandomChestContent(new ItemStack (Main.Dynamite), 6, 12, 10), new WeightedRandomChestContent(new ItemStack (Main.KeyFauchon), 8, 16, 10), new WeightedRandomChestContent(new ItemStack (Main.bayonnetfade), 1, 1, 1) , new WeightedRandomChestContent(new ItemStack (Main.bayonnetfadeuse), 1, 1, 1), new WeightedRandomChestContent(new ItemStack (Main.bayonnetfadetest), 1, 1, 1), new WeightedRandomChestContent(new ItemStack (Main.bayonnetfademauvais), 1, 1, 1)};
          WeightedRandomChestContent item = (WeightedRandomChestContent)WeightedRandom.getRandomItem(rand, items);
    
          int count = item.theMinimumChanceToGenerateItem+ (rand.nextInt(item.theMaximumChanceToGenerateItem - item.theMinimumChanceToGenerateItem + 1));
          entity.inventory.addItemStackToInventory(new ItemStack(item.theItemId.getItem(), count));
    
          if(item.theItemId.getItem() == Main.bayonnetfade)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + entity.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un" + EnumChatFormatting.GOLD+" Bayonnet FADE || FACTORY NEW ")); 
    
          }
          if(item.theItemId.getItem() == Main.bayonnetfadeuse)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + entity.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || USEE ")); 
          }
          if(item.theItemId.getItem() == Main.bayonnetfadetest)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + entity.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || TEST ")); 
          }
          if(item.theItemId.getItem() == Main.bayonnetfademauvais)
          {
              MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.RED + entity.getDisplayName() + EnumChatFormatting.BLUE +" a gagné un " + EnumChatFormatting.GOLD+"Bayonnet FADE || MAUVAIS ")); 
          }
    //      items[9] Minecraft.getMinecraft().thePlayer.sendChatMessage("/say " + Minecraft.getMinecraft().thePlayer.getDisplayName() + " a gagné un Karambite DOPPLER || FACTORY NEW ");
          world.setBlockToAir(x, y, z);
    
        }
        return true;
      }
    
      @SideOnly(Side.CLIENT)
      public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, Random p_149734_5_)
      {
        for (int l = 0; l < 5; l++)
        {
          double d6 = p_149734_2_ + p_149734_5_.nextFloat();
          double d1 = p_149734_3_ + p_149734_5_.nextFloat();
          d6 = p_149734_4_ + p_149734_5_.nextFloat();
          double d3 = 0.0D;
          double d4 = 0.0D;
          double d5 = 0.0D;
          int i1 = p_149734_5_.nextInt(2) * 2 - 1;
          int j1 = p_149734_5_.nextInt(2) * 2 - 1;
          d3 = (p_149734_5_.nextFloat() - 0.5D) * 0.2D;
          d4 = (p_149734_5_.nextFloat() - 0.5D) * 0.2D;
          d5 = (p_149734_5_.nextFloat() - 0.5D) * 0.2D;
          double d2 = p_149734_4_ + 0.5D + 0.25D * j1;
          d5 = p_149734_5_.nextFloat() * 1.0F * j1;
          double d0 = p_149734_2_ + 0.5D + 0.25D * i1;
          d3 = p_149734_5_.nextFloat() * 1.0F * i1;
          p_149734_1_.spawnParticle("portal", d0, d1, d2, d3, d4, d5);
        }
      }
      @Override
      public TileEntity createTileEntity(World world, int metadata)
      {
          return new TileEntityCasseGamma();
      }
    
      @Override
      public boolean hasTileEntity(int metadata)
      {
          return true;
      }
    
      public boolean isOpaqueCube()
      {
          return false;
      }
    
      public boolean renderAsNormalBlock()
      {
          return false;
      }
    
      public int getRenderType()
      {
          return ClientProxy.renderInventoryTESRIdGamma;
      }
    
      public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z)
      {
          this.setBlockBounds(-0.3F, 0.0F, 0.1F, 1.2F, 0.8F, 1.0F);
      }
    }
    
    
    package fr.darkvince.proxy;
    
    import org.lwjgl.input.Keyboard;
    
    import cpw.mods.fml.client.registry.ClientRegistry;
    import cpw.mods.fml.client.registry.RenderingRegistry;
    import cpw.mods.fml.common.FMLCommonHandler;
    import cpw.mods.fml.common.eventhandler.SubscribeEvent;
    import cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent;
    import fr.darkvince.ultrav2.Main;
    import fr.darkvince.ultrav2.backpack.GuiBackPack;
    import fr.darkvince.ultrav2.cassefauchon.TESRInventoryRenderer;
    import fr.darkvince.ultrav2.cassefauchon.TileEntityCasseFauchon;
    import fr.darkvince.ultrav2.cassefauchon.TileEntityCasseFauchonSpecialRender;
    import fr.darkvince.ultrav2.dyna.EntityDynamite;
    import fr.darkvince.ultrav2.dyna.RenderDynamite;
    import fr.darkvince.ultrav2.entity.EntityBateau;
    import fr.darkvince.ultrav2.gamma.TESRInventoryRendererGamma;
    import fr.darkvince.ultrav2.gamma.TileEntityCasseGamma;
    import fr.darkvince.ultrav2.gamma.TileEntityCasseGammaSpecialRender;
    import fr.darkvince.ultrav2.guijoueur.GuiJoueur;
    import fr.darkvince.ultrav2.render.RenderBateau;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.gui.GuiChat;
    import net.minecraft.client.gui.GuiMainMenu;
    import net.minecraft.client.gui.GuiMultiplayer;
    import net.minecraft.client.settings.KeyBinding;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.ChatComponentText;
    import net.minecraft.world.World;
    
    public class ClientProxy extends CommonProxy
    {
    
    private static KeyBinding keyBindJoueur;
    
    public static int renderInventoryTESRId;
    public static int renderInventoryTESRIdGamma;
    
    public ClientProxy()
    {
    FMLCommonHandler.instance().bus().register(this);
    keyBindJoueur = new KeyBinding("guiultra.key", Keyboard.KEY_W, "key.categories.Joueur");
    ClientRegistry.registerKeyBinding(keyBindJoueur);
    }
    
    @SubscribeEvent
    public void onEvent(KeyInputEvent event)
    {
    
    if(keyBindJoueur.isPressed())
    {
    keyJoueurTyped();
    }
    }
    
    private void keyJoueurTyped()
    {
    Minecraft.getMinecraft().displayGuiScreen(new GuiJoueur(null, null));
    }
    
    @Override
    public void registerRender()
    {
       RenderingRegistry.registerEntityRenderingHandler(EntityBateau.class, new RenderBateau());
    
       RenderingRegistry.registerEntityRenderingHandler(EntityDynamite.class, new RenderDynamite());
    
       renderInventoryTESRId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new TESRInventoryRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCasseFauchon.class, new TileEntityCasseFauchonSpecialRender());
    
    renderInventoryTESRIdGamma = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new TESRInventoryRendererGamma());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCasseGamma.class, new TileEntityCasseGammaSpecialRender());
    }
    
    @Override
    public void registerTileEntityRender()
    {
    
    }
    }
    
    
    –-- Minecraft Crash Report ----
    // Don't be sad. I'll do better next time, I promise!
    
    Time: 23/11/16 23:48
    Description: Exception in server tick loop
    
    java.lang.NoClassDefFoundError: net/minecraft/client/renderer/entity/Render
    at fr.darkvince.ultrav2.gamma.CasseGamma.func_149645_b(CasseGamma.java:121)
    at net.minecraft.entity.Entity.func_70091_d(Entity.java:944)
    at net.minecraft.network.NetHandlerPlayServer.func_147347_a(NetHandlerPlayServer.java:530)
    at net.minecraft.network.play.client.C03PacketPlayer.func_148833_a(C03PacketPlayer.java:36)
    at net.minecraft.network.play.client.C03PacketPlayer$C04PacketPlayerPosition.func_148833_a(C03PacketPlayer.java:144)
    at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:245)
    at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:181)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1023)
    at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:432)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:841)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:693)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.entity.Render
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 12 more
    Caused by: java.lang.NullPointerException
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Thermos Version: cyberdynecc:Thermos:1.7.10-1614.58
    Plugins: X_Reporter, WorldEdit, LVLUltra, Essentials, EssentialsProtect, JustBlood, VoxelSniper, EssentialsChat, GroupManager, EssentialsAntiBuild, Frame_Protector, QuickSign, Vault, EssentialsSpawn, Multiverse-Core, WorldGuard, MassiveCore, GUIShop, Factions, CombatTagPlus, ChestShop, MasterPromote
    Disabled Plugins:
    Operating System: Linux (amd64) version 3.5.0-47-generic
    Java Version: 1.8.0_60, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 126869272 bytes (120 MB) / 425185280 bytes (405 MB) up to 10416029696 bytes (9933 MB)
    JVM Flags: 23 total; -Xmx10000M -Xms256M -XX:MaxPermSize=256m -XX:PermSize=128m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseNUMA -XX:+CMSParallelRemarkEnabled -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseLargePages -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+AggressiveOpts
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 13, tcache: 0, allocated: 13, tallocated: 95
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 12 mods loaded, 12 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (Thermos-1.7.10-1558-server.jar)
    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (Thermos-1.7.10-1558-server.jar)
    UCHIJAAAA kimagine{0.2} [KImagine] (minecraft.jar)
    UCHIJAAAA FLabsBF{4.3} [Better Furnaces] (Better-Furnaces-Mod-1.7.10.jar)
    UCHIJAAAA EasyCrafting{1.7.10-2.0.1.16} [Easy Crafting] (EasyCrafting-1.7.10-2.0.1.16.jar)
    UCHIJAAAA endercrop{1.7.10-1.1} [Ender Crop] (endercrop-1.7.10-1.2.jar)
    UCHIJAAAA etfuturum{1.4.3} [Et Futurum] (Et Futurum-1.4.3.jar)
    UCHIJAAAA IronChest{6.0.62.742} [Iron Chest] (ironchest-1.7.10-6.0.62.742-universal.jar)
    UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (modid-1.0.jar)
    UCHIJAAAA potioncore{@VERSION@} [Potion Core] (Potion-Core-1.7.10.jar)
    UCHIJAAAA supercraftingframe{1.7.10.1} [Super Crafting Frame] (Super-Crafting-Frame-Mod-1.7.10.jar)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 80; [EntityPlayerMP['darkvince_'/261, l='ttt', x=333,99, y=71,25, z=274,34](darkvince_ at 333.9905070249416,71.24918707874468,274.34067243662395)]
    Is Modded: Definitely; Server brand changed to 'thermos,cauldron,craftbukkit,mcpc,kcauldron,fml,forge'
    Type: Dedicated Server (map_server.txt)
    

  • Administrateurs

    public int getRenderType()
     {
         return ClientProxy.renderInventoryTESRIdGamma;
     }
    

    ->

    @SideOnly(Side.CLIENT)
     public int getRenderType()
     {
         return ClientProxy.renderInventoryTESRIdGamma;
     }