• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu Crash tileEntity block

    1.7.x
    1.7.10
    2
    3
    970
    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.
    • mathmatboy
      mathmatboy dernière édition par

      Version : 1.7.10
      API utilisée : Forge
      [font=helvetica, arial, sans-serifExplication détaillé du problème :][font=helvetica, arial, sans-serif J’ai créer un blocks en tileEntity mais quand je pose mon block le jeu crash.]

      [font=helvetica, arial, sans-serif**Logs : **]

      ​[22:55:27] [main/INFO] [GradleStart]: Extra: []
      
      [22:55:27] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, C:/Users/Mathieu/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
      [22:55:27] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
      [22:55:27] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1240 for Minecraft 1.7.10 loading
      [22:55:27] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_71, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
      [22:55:27] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
      [22:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
      [22:55:27] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
      [22:55:27] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
      [22:55:27] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
      [22:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [22:55:27] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
      [22:55:29] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
      [22:55:29] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
      [22:55:29] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
      [22:55:29] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
      [22:55:29] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
      [22:55:29] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
      [22:55:30] [main/INFO]: Setting user: Player60
      [22:55:32] [Client thread/INFO]: LWJGL Version: 2.9.1
      [22:55:32] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
      [22:55:32] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1240 Initialized
      [22:55:32] [Client thread/INFO] [FML]: Replaced 182 ore recipies
      [22:55:32] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
      [22:55:33] [Client thread/INFO] [FML]: Searching C:\Users\Mathieu\Documents\modding\minecraft\client forge\axialcraft forge\eclipse\mods for mods
      [22:55:33] [Client thread/INFO] [axialcraft]: Mod axialcraft is missing the required element 'name'. Substituting axialcraft
      [22:55:35] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
      [22:55:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, axialcraft] at CLIENT
      [22:55:36] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, axialcraft] at SERVER
      [22:55:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:axialcraft
      [22:55:36] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
      [22:55:36] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
      [22:55:36] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
      [22:55:36] [Client thread/INFO] [STDOUT]: [ca.mathmatboy.axialcraft.proxy.ClientProxy:registerRender:17]: méthode côté client
      [22:55:36] [Client thread/INFO] [FML]: Applying holder lookups
      [22:55:36] [Client thread/INFO] [FML]: Holder lookups applied
      [22:55:36] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:36] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
      [22:55:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
      [22:55:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [22:55:37] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
      [22:55:37] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:37] [Sound Library Loader/INFO]: Sound engine started
      [22:55:38] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
      [22:55:38] [Client thread/INFO]: Created: 512x256 textures/items-atlas
      [22:55:38] [Client thread/INFO] [STDOUT]: [ca.mathmatboy.axialcraft.common.axialcraftMain:init:114]: Mods axialCraft is loaded !!
      [22:55:38] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
      [22:55:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:axialcraft
      [22:55:38] [Client thread/INFO]: Created: 512x256 textures/items-atlas
      [22:55:39] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
      [22:55:39] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:39] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
      [22:55:39] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
      [22:55:39] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:39] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:39] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
      [22:55:39] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
      [22:55:39] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [22:55:39] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
      [22:55:39] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
      [22:55:39] [Sound Library Loader/INFO]: Sound engine started
      [22:55:40] [Client thread/INFO] [STDOUT]: [ca.mathmatboy.axialcraft.GUI.GuiMainMenuCustom:initGui:57]: initialisation du menu >> By mathmatboy
      [22:55:44] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
      [22:55:44] [Server thread/INFO]: Generating keypair
      [22:55:44] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
      [22:55:44] [Server thread/INFO] [FML]: Applying holder lookups
      [22:55:44] [Server thread/INFO] [FML]: Holder lookups applied
      [22:55:44] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6c14a77)
      [22:55:44] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6c14a77)
      [22:55:44] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6c14a77)
      [22:55:44] [Server thread/INFO]: Preparing start region for level 0
      [22:55:45] [Server thread/INFO]: Changing view distance to 12, from 10
      [22:55:45] [Client thread/INFO] [STDOUT]: [ca.mathmatboy.axialcraft.GUI.GuiMainMenuCustom:initGui:57]: initialisation du menu >> By mathmatboy
      [22:55:46] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
      [22:55:46] [Netty IO #1/INFO] [FML]: Client protocol version 1
      [22:55:46] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : mcp@9.05,FML@7.10.85.1240,Forge@10.13.2.1240,axialcraft@1.0
      [22:55:46] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
      [22:55:46] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
      [22:55:46] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
      [22:55:46] [Server thread/INFO]: Player60[local:E:f5556f34] logged in with entity id 293 at (-178.3480885860157, 71.0, 252.26048254404765)
      [22:55:46] [Server thread/INFO]: Player60 joined the game
      [22:55:46] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
      [22:55:46] [Server thread/INFO]: Saving and pausing game…
      [22:55:46] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [22:55:46] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [22:55:46] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      [22:55: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 ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode is missing a mapping! This is a bug!
      at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.writeToNBT(TileEntityBlockCommode.java:23) ~[TileEntityBlockCommode.class:?]
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.getDescriptionPacket(TileEntityBlockCommode.java:41) ~[TileEntityBlockCommode.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
      [22:55:52] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Mathieu\Documents\modding\minecraft\client forge\axialcraft forge\eclipse\.\crash-reports\crash-2015-01-10_22.55.52-server.txt
      [22:55:52] [Server thread/INFO]: Stopping server
      [22:55:52] [Server thread/INFO]: Saving players
      [22:55:52] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
      // I bet Cylons wouldn't have this problem.
      
      Time: 15-01-10 22:55
      Description: Exception ticking world
      
      java.lang.RuntimeException: class ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode is missing a mapping! This is a bug!
      at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96)
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.writeToNBT(TileEntityBlockCommode.java:23)
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.getDescriptionPacket(TileEntityBlockCommode.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 ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.writeToNBT(TileEntityBlockCommode.java:23)
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.getDescriptionPacket(TileEntityBlockCommode.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: New World
      All players: 1 total; [EntityPlayerMP['Player60'/293, l='New World', x=-178,71, y=71,00, z=249,48]]
      Chunk stats: ServerChunkCache: 682 Drop: 0
      Level seed: 6870226791469321915
      Level generator: ID 00 - default, ver 1\. Features enabled: true
      Level generator options: 
      Level spawn location: World: (-172,64,256), Chunk: (at 4,4,0 in -11,16; contains blocks -176,0,256 to -161,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
      Level time: 6704 game time, 6704 day time
      Level dimension: 0
      Level storage version: 0x04ABD - Anvil
      Level weather: Rain time: 69289 (now: false), thunder time: 98868 (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 7 (amd64) version 6.1
      Java Version: 1.7.0_71, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      Memory: 740374096 bytes (706 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: 13, tcache: 0, allocated: 13, tallocated: 95
      FML: MCP v9.05 FML v7.10.85.1240 Minecraft Forge 10.13.2.1240 4 mods loaded, 4 mods active
      mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
      FML{7.10.85.1240} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1240.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
      Forge{10.13.2.1240} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1240.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
      axialcraft{1.0} [axialcraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
      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['Player60'/293, l='New World', x=-178,71, y=71,00, z=249,48]]
      Type: Integrated Server (map_client.txt)
      Is Modded: Definitely; Client brand changed to 'fml,forge'
      [22:55:52] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-01-10_22.55.52-server.txt
      [22:55:52] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
      [22:55:52] [Server thread/INFO]: Saving worlds
      [22:55:52] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
      [22:55:52] [Server thread/ERROR] [FML]: A TileEntity type ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode has throw an exception trying to write state. It will not persist. Report this to the mod author
      java.lang.RuntimeException: class ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode is missing a mapping! This is a bug!
      at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]
      at ca.mathmatboy.axialcraft.commodeMini.TileEntityBlockCommode.writeToNBT(TileEntityBlockCommode.java:23) ~[TileEntityBlockCommode.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:862) [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:?]
      [22:55:52] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
      [22:55:52] [Server thread/INFO]: Saving chunks for level 'New World'/The End
      [22:55:52] [Server thread/INFO] [FML]: Unloading dimension 0
      [22:55:52] [Server thread/INFO] [FML]: Unloading dimension -1
      [22:55:52] [Server thread/INFO] [FML]: Unloading dimension 1
      [22:55:52] [Server thread/INFO] [FML]: Applying holder lookups
      [22:55:52] [Server thread/INFO] [FML]: Holder lookups applied
      [22:55: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.
      [22:55:52] [Client thread/INFO] [FML]: Server terminated.
      AL lib: (EE) alc_cleanup: 1 device not closed
      

      Class TileEntityBlockCommode.java :

      ​package ca.mathmatboy.axialcraft.commodeMini;
      
      import net.minecraft.nbt.NBTTagCompound;
      import net.minecraft.network.NetworkManager;
      import net.minecraft.network.Packet;
      import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
      import net.minecraft.tileentity.TileEntity;
      
      public class TileEntityBlockCommode 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);
          }
      }
      
      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

        Tu n’as pas enregistré l’entité de bloc dans ta classe principale.

        1 réponse Dernière réponse Répondre Citer 0
        • mathmatboy
          mathmatboy dernière édition par

          Merci Robin javais oublier cette ligne =>

          [size=x-smallGameRegistry].registerTileEntity(TileEntityBlockCommode.class, “Commode”);

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

          MINECRAFT FORGE FRANCE © 2018

          Powered by NodeBB