Problème direction d'un "bush" et crash report



  • Salut, j'ai récemment créer un "bush" sa fonctionne comme mais c'est un ordi qui programme l'item au niveau de la texture.
    J'ai suivit les instruction des gens ici et ce tuto pour le rendre orientable mais quand je dépose le "bush" multitexture le jeu crash:

    [13:04:16] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [13:04:16] [Server thread/INFO]: Generating keypair
    [13:04:16] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [13:04:16] [Server thread/INFO] [FML]: Applying holder lookups
    [13:04:16] [Server thread/INFO] [FML]: Holder lookups applied
    [13:04:16] [Server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@1abdc59c)
    [13:04:16] [Server thread/INFO] [FML]: Loading dimension 49 (Test) (net.minecraft.server.integrated.IntegratedServer@1abdc59c)
    [13:04:17] [Server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@1abdc59c)
    [13:04:17] [Server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@1abdc59c)
    [13:04:17] [Server thread/INFO]: Preparing start region for level 0
    [13:04:18] [Server thread/INFO]: Preparing spawn area: 52%
    [13:04:18] [Server thread/INFO]: Changing view distance to 12, from 10
    [13:04:20] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
    [13:04:20] [Netty IO #1/INFO] [FML]: Client protocol version 2
    [13:04:20] [Netty IO #1/INFO] [FML]: Client attempting to join with 6 mods : binarymod@1.7.10,NotEnoughItems@1.0.5.120,CodeChickenCore@1.0.7.47,FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05
    [13:04:20] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [13:04:20] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
    [13:04:20] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [13:04:20] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
    [13:04:20] [Server thread/INFO]: Minantcraft[local:E:72a7f987] logged in with entity id 202 at (1025.6157371843333, 4.0, -430.4064400035412)
    [13:04:20] [Server thread/INFO]: Minantcraft joined the game
    [13:04:40] [Server thread/ERROR]: Encountered an unexpected exception
    net.minecraft.util.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:698) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    Caused by: java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41) ~[TileEntityDirectional.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80) ~[PlayerManager.class:?]
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692) ~[MinecraftServer.class:?]
    … 4 more
    [13:04:40] [Server thread/ERROR]: This crash report has been saved to: C:\Users\antoine\Desktop\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\.\crash-reports\crash-2016-06-19_13.04.40-server.txt
    [13:04:40] [Server thread/INFO]: Stopping server
    [13:04:40] [Server thread/INFO]: Saving players
    [13:04:40] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // I blame Dinnerbone.
    
    Time: 19/06/16 13:04
    Description: Exception ticking world
    
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    
    -- Affected level --
    Details:
    Level name: Test
    All players: 1 total; [EntityPlayerMP['Minantcraft'/202, l='Test', x=1025,62, y=4,00, z=-430,41]]
    Chunk stats: ServerChunkCache: 723 Drop: 0
    Level seed: 1763494809997761044
    Level generator: ID 01 - flat, ver 0\. Features enabled: true
    Level generator options:
    Level spawn location: World: (1022,4,-424), Chunk: (at 14,0,8 in 63,-27; contains blocks 1008,0,-432 to 1023,255,-417), Region: (1,-1; contains chunks 32,-32 to 63,-1, blocks 512,0,-512 to 1023,255,-1)
    Level time: 45259 game time, 53689 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 126699 (now: false), thunder time: 84837 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    – System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_91, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 628883960 bytes (599 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.1614 6 mods loaded, 6 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] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA NotEnoughItems{1.0.5.120} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.120-dev.jar)
    UCHIJAAAA CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar)
    UCHIJAAAA binarymod{1.7.10} [Binary Dimension] (bin)
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 8; [EntityPlayerMP['Minantcraft'/202, l='Test', x=1025,62, y=4,00, z=-430,41]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    [13:04:40] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-06-19_13.04.40-server.txt
    [13:04:40] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
    [13:04:40] [Server thread/INFO]: Saving worlds
    [13:04:40] [Server thread/INFO]: Saving chunks for level 'Test'/Overworld
    [13:04:40] [Server thread/ERROR] [FML]: A TileEntity type com.mod.test.tileEntity.TileEntityDirectional has throw an exception trying to write state. It will not persist. Report this to the mod author
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]
    at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    [13:04:40] [Server thread/INFO]: Saving chunks for level 'Test'/Nether
    [13:04:40] [Server thread/INFO]: Saving chunks for level 'Test'/The End
    [13:04:40] [Server thread/INFO]: Saving chunks for level 'Test'/BinaryDimension
    [13:04:41] [Server thread/INFO] [FML]: Unloading dimension 0
    [13:04:41] [Server thread/INFO] [FML]: Unloading dimension -1
    [13:04:41] [Server thread/INFO] [FML]: Unloading dimension 1
    [13:04:41] [Server thread/INFO] [FML]: Unloading dimension 49
    [13:04:41] [Server thread/INFO] [FML]: Applying holder lookups
    [13:04:42] [Server thread/INFO] [FML]: Holder lookups applied
    [13:04:42] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
    [13:04:42] [Client thread/INFO] [FML]: Server terminated.
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    
    

    La classe du block:

    public class BlockFoodProgrammer extends Block
    {
    public String[] subBlock = new String[3];
    public IIcon[] icons = new IIcon[subBlock.length];
    public ItemStack itemStack;
    public IIcon icontopBottom;
    
    public BlockFoodProgrammer(boolean upgraded)
    {
    super(Material.rock);
    this.setTickRandomly(true);
    this.itemStack = (upgraded ? new ItemStack(ItemMod.programmed_cooked_beef) : (new ItemStack(ItemMod.programmed_beef)));
    if(!upgraded)
    {
    subBlock = new String[]{"food_programmer0", "food_programmer1", "food_programmer2"};
    }
    else
    {
    subBlock = new String[]{"food_programmer0", "food_programmer1", "up_food_programmer2"};
    }
    }
    
    @Override
    public boolean hasTileEntity(int metadata)
    {
    return true;
    }
    
    @Override
    public TileEntity createTileEntity(World world, int metadata)
    {
    return new TileEntityDirectional();
    }
    
    public void updateTick(World world, int x, int y, int z, Random rand)
    {
    if(world.getBlockMetadata(x, y, z) < 2)
    {
    world.setBlock(x, y, z, this, world.getBlockMetadata(x, y, z) + 1, 3);
    }
    }
    
    public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
    {
    if(world.getBlockMetadata(x, y, z) == 3)
    {
    world.setBlock(x, y, z, this, 0, 3);
    this.dropBlockAsItem(world, x, y, z, itemStack);
    }
    return false;
    }
    
    public int tickRate(World world)
    {
    return 1;
    }
    
    public void registerBlockIcons(IIconRegister iconRegister)
    {
    for(int i = 0; i < subBlock.length; i++)
    {
    this.icons* = iconRegister.registerIcon(Reference.MOD_ID + ":" + subBlock*);
    }
    blockIcon = iconRegister.registerIcon(Reference.MOD_ID + ":binary_machine_side");
    icontopBottom = iconRegister.registerIcon(Reference.MOD_ID + ":binary_machine_topBottom");
    }
    
    public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side)
    {
    switch(side)
    {
    case 0 | 1:
    return icontopBottom;
    
    default:
    TileEntity tile = world.getTileEntity(x, y, z); // on obtient l'entité de bloc
    if(tile instanceof TileEntityDirectional) // on vérifie son instance pour éviter un ClassCastException
    {
    byte direction = ((TileEntityDirectional)tile).getDirection(); // on obtient la valeur de la direction
    return side == 3 && direction == 0 ? this.icons[1] : (side == 4 && direction == 1 ? this.icons[1] : (side == 2 && direction == 2 ? this.icons[1] : (side == 5 && direction == 3 ? this.icons[1] : blockIcon)));
    }
    return blockIcon ;
    }
    }
    
    public IIcon getIcon(int side, int metadata)
    {
    switch(side)
    {
    case 0 | 1:
    return icontopBottom;
    
    case 3:
    return this.icons[2];
    
    default:
    return blockIcon;
    }
    }
    
    public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
    {
    TileEntity tile = world.getTileEntity(x, y, z);
    if(tile instanceof TileEntityDirectional)
    {
    int direction = MathHelper.floor_double((double)(living.rotationYaw * 4.0F / 360.0F) + 2.5D) & 3;
    ((TileEntityDirectional)tile).setDirection((byte)direction);
    }
    }
    }
    
    

    Le tileEntity:

    public class TileEntityDirectional extends TileEntity
    {
    private byte direction;
    
    @Override
    public void readFromNBT(NBTTagCompound compound)
    {
    super.readFromNBT(compound);
    this.direction = compound.getByte("Direction");
    }
    
    @Override
    public void writeToNBT(NBTTagCompound compound)
    {
    super.writeToNBT(compound);
    compound.setByte("Direction", this.direction);
    }
    
    public byte getDirection()
    {
    return direction;
    }
    
    public void setDirection(byte direction)
    {
    this.direction = direction;
    this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
    }
    
    public Packet getDescriptionPacket()
    {
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    this.writeToNBT(nbttagcompound);
    return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, 0, nbttagcompound);
    }
    
    public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt)
    {
    this.readFromNBT(pkt.func_148857_g());
    this.worldObj.markBlockRangeForRenderUpdate(this.xCoord, this.yCoord, this.zCoord, this.xCoord, this.yCoord, this.zCoord);
    }
    }
    


  • As-tu enregistré ta TileEntity dans ta Main Class ?



  • @'Plaigon':

    As-tu enregistré ta TileEntity dans ta Main Class ?

    EDIT: 0ups j'ai oublié 🙂
    EDIT2: Je test



  • Résolu ?



  • @'AymericRed':

    Résolu ?

    Nop, nouveau crash report avec des ticks:

    [13:28:56] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [13:28:56] [Server thread/INFO]: Generating keypair
    [13:28:56] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [13:28:56] [Server thread/INFO] [FML]: Found a missing id from the world binarymod:food_programer_upgrader
    [13:28:56] [Server thread/ERROR] [FML]: There are unidentified mappings in this world - we are going to attempt to process anyway
    [13:28:56] [Server thread/ERROR] [FML]: Unidentified item: binarymod:food_programer_upgrader, id 4137
    [13:29:01] [Server thread/INFO] [FML]: World backup created at C:\Users\antoine\Desktop\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\saves\Test-20160619-132900.zip.
    [13:29:01] [Server thread/ERROR] [FML]: This world contains block and item mappings that may cause world breakage
    [13:29:01] [Server thread/INFO] [FML]: Injecting new block and item data into this server instance.
    [13:29:01] [Server thread/INFO] [FML]: Injected new block/item binarymod:food_programmer_upgrader: 4136 (init) -> 4138 (map).
    [13:29:01] [Server thread/INFO] [FML]: Applying holder lookups
    [13:29:01] [Server thread/INFO] [FML]: Holder lookups applied
    [13:29:02] [Server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@46704790)
    [13:29:02] [Server thread/INFO] [FML]: Loading dimension 49 (Test) (net.minecraft.server.integrated.IntegratedServer@46704790)
    [13:29:02] [Server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@46704790)
    [13:29:02] [Server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@46704790)
    [13:29:02] [Server thread/INFO]: Preparing start region for level 0
    [13:29:03] [Server thread/INFO]: Preparing spawn area: 25%
    [13:29:04] [Server thread/INFO]: Changing view distance to 12, from 10
    [13:29:06] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
    [13:29:06] [Netty IO #1/INFO] [FML]: Client protocol version 2
    [13:29:06] [Netty IO #1/INFO] [FML]: Client attempting to join with 6 mods : binarymod@1.7.10,NotEnoughItems@1.0.5.120,CodeChickenCore@1.0.7.47,FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05
    [13:29:06] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [13:29:06] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
    [13:29:06] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [13:29:06] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
    [13:29:06] [Server thread/INFO]: Minantcraft[local:E:43e983e8] logged in with entity id 201 at (1025.6157371843333, 4.0, -430.4064400035412)
    [13:29:06] [Server thread/INFO]: Minantcraft joined the game
    [13:29:10] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2153ms behind, skipping 43 tick(s)
    [13:29:34] [Server thread/ERROR]: Encountered an unexpected exception
    net.minecraft.util.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:698) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    Caused by: java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41) ~[TileEntityDirectional.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80) ~[PlayerManager.class:?]
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692) ~[MinecraftServer.class:?]
    … 4 more
    [13:29:34] [Server thread/ERROR]: This crash report has been saved to: C:\Users\antoine\Desktop\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\.\crash-reports\crash-2016-06-19_13.29.34-server.txt
    [13:29:34] [Server thread/INFO]: Stopping server
    [13:29:34] [Server thread/INFO]: Saving players
    [13:29:34] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Surprise! Haha. Well, this is awkward.
    
    Time: 19/06/16 13:29
    Description: Exception ticking world
    
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    
    -- Affected level --
    Details:
    Level name: Test
    All players: 1 total; [EntityPlayerMP['Minantcraft'/201, l='Test', x=1025,30, y=4,00, z=-424,51]]
    Chunk stats: ServerChunkCache: 737 Drop: 0
    Level seed: 1763494809997761044
    Level generator: ID 01 - flat, ver 0\. Features enabled: true
    Level generator options:
    Level spawn location: World: (1022,4,-424), Chunk: (at 14,0,8 in 63,-27; contains blocks 1008,0,-432 to 1023,255,-417), Region: (1,-1; contains chunks 32,-32 to 63,-1, blocks 512,0,-512 to 1023,255,-1)
    Level time: 45874 game time, 54304 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 126084 (now: false), thunder time: 84222 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    – System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_91, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 758693184 bytes (723 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.1614 6 mods loaded, 6 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] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA NotEnoughItems{1.0.5.120} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.120-dev.jar)
    UCHIJAAAA CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar)
    UCHIJAAAA binarymod{1.7.10} [Binary Dimension] (bin)
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 8; [EntityPlayerMP['Minantcraft'/201, l='Test', x=1025,30, y=4,00, z=-424,51]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    [13:29:34] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-06-19_13.29.34-server.txt
    [13:29:34] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
    [13:29:34] [Server thread/INFO]: Saving worlds
    [13:29:34] [Server thread/INFO]: Saving chunks for level 'Test'/Overworld
    [13:29:34] [Server thread/ERROR] [FML]: A TileEntity type com.mod.test.tileEntity.TileEntityDirectional has throw an exception trying to write state. It will not persist. Report this to the mod author
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]
    at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    [13:29:35] [Server thread/INFO]: Saving chunks for level 'Test'/Nether
    [13:29:35] [Server thread/INFO]: Saving chunks for level 'Test'/The End
    [13:29:35] [Server thread/INFO]: Saving chunks for level 'Test'/BinaryDimension
    [13:29:35] [Server thread/INFO] [FML]: Unloading dimension 0
    [13:29:35] [Server thread/INFO] [FML]: Unloading dimension -1
    [13:29:35] [Server thread/INFO] [FML]: Unloading dimension 1
    [13:29:35] [Server thread/INFO] [FML]: Unloading dimension 49
    [13:29:35] [Server thread/INFO] [FML]: Applying holder lookups
    [13:29:35] [Server thread/INFO] [FML]: Holder lookups applied
    [13:29:35] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
    [13:29:35] [Client thread/INFO] [FML]: Server terminated.
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    
    


  • Je crois que tu as oublié d'enregistrer ta TileEntity…



  • @'SCAREX':

    Je crois que tu as oublié d'enregistrer ta TileEntity…

    Non je l'ai fait
    EDIT: j'ai mis le meme nom qu'un autre 😞



  • File ta classe principale et le DERNIER crash report.



  • @'Plaigon':

    File ta classe principale et le DERNIER crash report.

    Voilà:

    [13:47:27] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [13:47:27] [Server thread/INFO]: Generating keypair
    [13:47:27] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [13:47:27] [Server thread/INFO] [FML]: Applying holder lookups
    [13:47:27] [Server thread/INFO] [FML]: Holder lookups applied
    [13:47:27] [Server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@181bea77)
    [13:47:27] [Server thread/INFO] [FML]: Loading dimension 49 (Test) (net.minecraft.server.integrated.IntegratedServer@181bea77)
    [13:47:28] [Server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@181bea77)
    [13:47:28] [Server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@181bea77)
    [13:47:28] [Server thread/INFO]: Preparing start region for level 0
    [13:47:29] [Server thread/INFO]: Preparing spawn area: 25%
    [13:47:30] [Server thread/INFO]: Changing view distance to 12, from 10
    [13:47:31] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
    [13:47:31] [Netty IO #1/INFO] [FML]: Client protocol version 2
    [13:47:31] [Netty IO #1/INFO] [FML]: Client attempting to join with 6 mods : binarymod@1.7.10,NotEnoughItems@1.0.5.120,CodeChickenCore@1.0.7.47,FML@7.10.99.99,Forge@10.13.4.1614,mcp@9.05
    [13:47:31] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [13:47:31] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
    [13:47:31] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [13:47:31] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
    [13:47:31] [Server thread/INFO]: Minantcraft[local:E:3759e35c] logged in with entity id 170 at (1025.3043125662953, 4.0, -424.5105373434334)
    [13:47:31] [Server thread/INFO]: Minantcraft joined the game
    [13:47:35] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2350ms behind, skipping 47 tick(s)
    [13:47:52] [Server thread/ERROR]: Encountered an unexpected exception
    net.minecraft.util.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:698) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    Caused by: java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41) ~[TileEntityDirectional.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574) ~[PlayerManager$PlayerInstance.class:?]
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80) ~[PlayerManager.class:?]
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692) ~[MinecraftServer.class:?]
    … 4 more
    [13:47:52] [Server thread/ERROR]: This crash report has been saved to: C:\Users\antoine\Desktop\forge-1.7.10-10.13.4.1614-1.7.10-src\eclipse\.\crash-reports\crash-2016-06-19_13.47.52-server.txt
    [13:47:52] [Server thread/INFO]: Stopping server
    [13:47:52] [Server thread/INFO]: Saving players
    [13:47:52] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
    // Everything's going to plan. No, really, that was supposed to happen.
    
    Time: 19/06/16 13:47
    Description: Exception ticking world
    
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23)
    at com.mod.test.tileEntity.TileEntityDirectional.getDescriptionPacket(TileEntityDirectional.java:41)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendTileToAllPlayersWatchingChunk(PlayerManager.java:632)
    at net.minecraft.server.management.PlayerManager$PlayerInstance.sendChunkUpdate(PlayerManager.java:574)
    at net.minecraft.server.management.PlayerManager.updatePlayerInstances(PlayerManager.java:80)
    at net.minecraft.world.WorldServer.tick(WorldServer.java:193)
    
    -- Affected level --
    Details:
    Level name: Test
    All players: 1 total; [EntityPlayerMP['Minantcraft'/170, l='Test', x=1024,57, y=4,00, z=-424,26]]
    Chunk stats: ServerChunkCache: 723 Drop: 0
    Level seed: 1763494809997761044
    Level generator: ID 01 - flat, ver 0\. Features enabled: true
    Level generator options:
    Level spawn location: World: (1022,4,-424), Chunk: (at 14,0,8 in 63,-27; contains blocks 1008,0,-432 to 1023,255,-417), Region: (1,-1; contains chunks 32,-32 to 63,-1, blocks 512,0,-512 to 1023,255,-1)
    Level time: 46317 game time, 54747 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 125641 (now: false), thunder time: 83779 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
    Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:692)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    
    – System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_91, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 702691440 bytes (670 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.1614 6 mods loaded, 6 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] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar)
    UCHIJAAAA NotEnoughItems{1.0.5.120} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.5.120-dev.jar)
    UCHIJAAAA CodeChickenCore{1.0.7.47} [CodeChicken Core] (minecraft.jar)
    UCHIJAAAA binarymod{1.7.10} [Binary Dimension] (bin)
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 1 / 8; [EntityPlayerMP['Minantcraft'/170, l='Test', x=1024,57, y=4,00, z=-424,26]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    [13:47:52] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2016-06-19_13.47.52-server.txt
    [13:47:52] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
    [13:47:52] [Server thread/INFO]: Saving worlds
    [13:47:52] [Server thread/INFO]: Saving chunks for level 'Test'/Overworld
    [13:47:52] [Server thread/ERROR] [FML]: A TileEntity type com.mod.test.tileEntity.TileEntityDirectional has throw an exception trying to write state. It will not persist. Report this to the mod author
    java.lang.RuntimeException: class com.mod.test.tileEntity.TileEntityDirectional is missing a mapping! This is a bug!
    at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
    at com.mod.test.tileEntity.TileEntityDirectional.writeToNBT(TileEntityDirectional.java:23) ~[TileEntityDirectional.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]
    at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]
    at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]
    at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:538) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
    [13:47:52] [Server thread/INFO]: Saving chunks for level 'Test'/Nether
    [13:47:52] [Server thread/INFO]: Saving chunks for level 'Test'/The End
    [13:47:52] [Server thread/INFO]: Saving chunks for level 'Test'/BinaryDimension
    [13:47:52] [Server thread/INFO] [FML]: Unloading dimension 0
    [13:47:52] [Server thread/INFO] [FML]: Unloading dimension -1
    [13:47:52] [Server thread/INFO] [FML]: Unloading dimension 1
    [13:47:52] [Server thread/INFO] [FML]: Unloading dimension 49
    [13:47:52] [Server thread/INFO] [FML]: Applying holder lookups
    [13:47:52] [Server thread/INFO] [FML]: Holder lookups applied
    [13:47:52] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
    [13:47:52] [Client thread/INFO] [FML]: Server terminated.
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

    La classe: ```java
    @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)

    public class BinaryMod
    {
    @Instance(Reference.MOD_ID)
    public static BinaryMod instance;

    public static CreativeTabs binaryTab = new CreativeTabs("binaryTab")
    {
    List list;

    @SideOnly(Side.CLIENT)
    public Item getTabIconItem()
    {
    return ItemMod.informatical_sword;
    }

    @Override
    public void displayAllReleventItems(List list)
    {
    this.list = list;
    this.setNoScrollbar();;
    Item[] itemsMod = new Item[]{
    /1/ItemMod.sourceCode_helmet, ItemMod.sourceCode_chestplate, ItemMod.sourceCode_leggings, ItemMod.sourceCode_boots,
    /1/ItemMod.informatical_sword, ItemMod.informatical_pickaxe, ItemMod.informatical_axe, ItemMod.informatical_hoe, ItemMod.informatical_shovel,

    /2/ItemMod.binary_sword, ItemMod.binary_pickaxe, ItemMod.binary_axe, ItemMod.binary_hoe, ItemMod.binary_shovel,
    /2/ItemMod.informatical_ingot, ItemMod.triple_informatical_ingot, ItemMod.informatical_code, ItemMod.informatical_stick,

    /3/ItemMod.helmet_model, ItemMod.chestplate_model, ItemMod.leggings_model, ItemMod.boots_model,
    /3/ItemMod.sword_model, ItemMod.pickaxe_model, ItemMod.shovel_model, ItemMod.hoe_model, ItemMod.axe_model,

    /4/ItemMod.informatical_sword_piece, ItemMod.informatical_pickaxe_piece, ItemMod.informatical_shovel_piece, ItemMod.informatical_hoe_piece, ItemMod.informatical_axe_piece,
    /4/ItemMod.source_code, ItemMod.triple_source_code, ItemMod.six_source_code, ItemMod.code_powder, BinaryDimension.trigger,

    /5/ItemMod.programmed_beef, ItemMod.programmed_cooked_beef
    };

    for (int i = 0; i < itemsMod.length; i++)
    {
    itemsMod*.getSubItems(itemsMod*, this, list);
    }
    }
    };

    public static CreativeTabs binaryBlockTab = new CreativeTabs("binaryBlockTab")
    {
    List list;

    @SideOnly(Side.CLIENT)
    public Item getTabIconItem()
    {
    return Item.getItemFromBlock(BlockMod.binary_block);
    }

    @Override
    public void displayAllReleventItems(List list)
    {
    this.list = list;
    this.setNoScrollbar();
    Block[] blocksMod = new Block[]{
    /1/BlockMod.binary_block, BlockMod.binary_stairs, BlockMod.binary_slab_1, BlockMod.binary_fence,
    /1/BlockMod.inversed_binary_block, BlockMod.inversed_binary_stairs, BlockMod.inversed_binary_slab_1, BlockMod.inversed_binary_fence,
    /1/BlockMod.melanged_binary_block,

    /2/BlockMod.bugged_block, BlockMod.binary_machine, BlockMod.informatical_netherrack, BlockMod.informatical_ore, BlockMod.code_ore
    };

    for(int i = 0; i < blocksMod.length; i++)
    {
    blocksMod*.getSubBlocks(Item.getItemFromBlock(blocksMod*), this, list);
    }
    ItemMod.binary_door_item.getSubItems(ItemMod.binary_door_item, this, list);
    ItemMod.gen_programmer_house.getSubItems(ItemMod.gen_programmer_house, this, list);
    }
    };

    @SidedProxy(clientSide = Reference.CLIENT_PROXY, serverSide = Reference.SERVER_PROXY)
    public static CommonProxy proxy;

    @EventHandler
    public void preInitialisation(FMLPreInitializationEvent event)
    {
    BlockMod.init();
    BlockMod.register();
    ItemMod.init();
    ItemMod.register();
    CraftMod.register();
    AchievementMod.init();
    WorldRegisterMod.mainRegistry();
    BinaryDimension.load();
    }

    @EventHandler
    public void initialisation(FMLInitializationEvent event)
    {
    proxy.registerRenders();
    EntityMod.init();
    EventMod.init(event);
    GuiHandlerMod.init();
    }

    @EventHandler
    public void postInitialisation(FMLPostInitializationEvent event)
    {

    }
    }

    
    tilEntityMod:
    ```java
    public class TileEntityMod
    {
    public static void init()
    {
    GameRegistry.registerTileEntity(TileEntityBinaryMachine.class, Reference.MOD_ID + ":tileBinaryMachine");
    GameRegistry.registerTileEntity(TileEntityBinaryChecker.class, Reference.MOD_ID + ":tileBinaryChecker");
    GameRegistry.registerTileEntity(TileEntityDirectional.class, Reference.MOD_ID + ":tileEntityDirectional");
    }
    }
    

    EDIT: oups, il faut le mettre dans init ou preInt?
    EDIT: c'est bizarre, la tileEntity de ma binaryMachine n'était pas enregistré et elle fonctionnait donc j'y ai pa pensé



  • J'ai un nouveau problème, le "bush" ne change pas de texture et commence à la texture 2/3 puis il se tourne 😢



  • Bah de ce que je vois la méthode n'est jamais appelée



  • @'SCAREX':

    Bah de ce que je vois la méthode n'est jamais appelée

    if(world.getBlockMetadata(x, y, z) < 2)
    {
    world.setBlock(x, y, z, this, world.getBlockMetadata(x, y, z) + 1, 3);
    }
    

    EDIT: ca augmente le metadata et en cliquant sur le bloc si le metadata est à 2, sa drop un truc et ça le met à 0 mais je sais pas pourquoi l'apparence ne change pas et le bloc a tourné



  • Quel est le rapport ? Je vois pas où la méthode init de TileEntityMod est appelée



  • @'SCAREX':

    Quel est le rapport ? Je vois pas où la méthode init de TileEntityMod est appelée

    @EventHandler
    public void preInitialisation(FMLPreInitializationEvent event)
    {
    BlockMod.init();
    BlockMod.register();
    ItemMod.init();
    ItemMod.register();
    CraftMod.register();
    TileEntityMod.init();
    AchievementMod.init();
    WorldRegisterMod.mainRegistry();
    BinaryDimension.load();
    }
    


  • Renvoi le rapport de crash



  • @'SCAREX':

    Renvoi le rapport de crash

    Ca va, j'ai résolu, je ne changasi pas la texture correctement mais j'ai maintenant réussi. Merci de ton aide 🙂