Résolu Crash d'un mod
-
D’abord merci à Robin4002 pour son aide pour mon bloc, suite à la création d’un autre bloc (BlockUn + BlockDeux) minecraft crash
rapport du crash :Minecraft has crashed! –-------------------- Minecraft has stopped running because it encountered a problem; Unexpected error A full error report has been saved to C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\.\crash-reports\crash-2014-03-04_13.24.36-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash :( --- BEGIN ERROR REPORT 941dbfac -------- Full report at: C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\.\crash-reports\crash-2014-03-04_13.24.36-client.txt Please show that file to Mojang, NOT just this screen! Generated 04/03/14 13:24 -- Head -- Stacktrace: at BxToxik.common.ItemBlockUn.placeBlockAt(ItemBlockUn.java:25) at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:119) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:396) at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1316) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player257'/362, l='MpServer', x=-3,25, y=65,62, z=259,95]] Chunk stats: MultiplayerChunkCache: 200 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (8,64,252), Chunk: (at 8,4,12 in 0,15; contains blocks 0,0,240 to 15,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 904 game time, 904 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 92 total; [EntityBat['Bat'/137, l='MpServer', x=-73,02, y=37,62, z=324,59], EntityCreeper['Creeper'/136, l='MpServer', x=-73,34, y=29,69, z=322,50], EntityEnderman['Enderman'/129, l='MpServer', x=-65,28, y=19,03, z=296,94], EntityEnderman['Enderman'/128, l='MpServer', x=-64,75, y=18,00, z=295,78], EntityZombie['Zombie'/131, l='MpServer', x=-64,03, y=31,00, z=313,41], EntitySkeleton['Skeleton'/130, l='MpServer', x=-65,50, y=18,00, z=298,50], EntityEnderman['Enderman'/133, l='MpServer', x=-77,72, y=50,00, z=304,50], EntityZombie['Zombie'/132, l='MpServer', x=-67,69, y=38,90, z=306,64], EntityZombie['Zombie'/135, l='MpServer', x=-72,50, y=48,00, z=310,50], EntityZombie['Zombie'/134, l='MpServer', x=-66,59, y=49,00, z=307,00], EntityBat['Bat'/152, l='MpServer', x=-67,50, y=12,80, z=202,59], EntityPig['Pig'/153, l='MpServer', x=-52,66, y=88,00, z=214,53], EntitySquid['Squid'/259, l='MpServer', x=52,21, y=61,33, z=262,29], EntityPig['Pig'/154, l='MpServer', x=-48,50, y=93,00, z=215,50], EntityPig['Pig'/155, l='MpServer', x=-53,03, y=91,00, z=216,59], EntityItem['item.tile.gravel'/156, l='MpServer', x=-57,13, y=53,13, z=228,69], EntityZombie['Zombie'/157, l='MpServer', x=-62,03, y=23,00, z=280,50], EntitySkeleton['Skeleton'/158, l='MpServer', x=-60,50, y=21,00, z=300,50], EntitySquid['Squid'/260, l='MpServer', x=51,08, y=61,22, z=261,90], EntityCreeper['Creeper'/159, l='MpServer', x=-60,50, y=39,00, z=298,50], EntityPig['Pig'/150, l='MpServer', x=-52,81, y=64,00, z=188,63], EntityZombie['Zombie'/269, l='MpServer', x=75,09, y=58,00, z=315,44], EntityCreeper['Creeper'/151, l='MpServer', x=-51,50, y=23,00, z=203,50], EntityZombie['Zombie'/163, l='MpServer', x=-48,50, y=20,00, z=311,50], EntityZombie['Zombie'/162, l='MpServer', x=-49,50, y=20,00, z=311,50], EntitySkeleton['Skeleton'/161, l='MpServer', x=-56,50, y=49,00, z=301,50], EntityCreeper['Creeper'/160, l='MpServer', x=-50,50, y=49,00, z=300,50], EntityBat['Bat'/167, l='MpServer', x=-58,54, y=52,43, z=323,51], EntityItem['item.tile.flower'/166, l='MpServer', x=-49,13, y=75,13, z=315,88], EntityZombie['Zombie'/165, l='MpServer', x=-56,84, y=36,00, z=311,31], EntityZombie['Zombie'/164, l='MpServer', x=-54,50, y=36,00, z=311,50], EntitySkeleton['Skeleton'/186, l='MpServer', x=-43,34, y=37,00, z=295,59], EntityCreeper['Creeper'/187, l='MpServer', x=-42,28, y=37,00, z=294,50], EntitySkeleton['Skeleton'/184, l='MpServer', x=-47,50, y=47,00, z=300,50], EntitySkeleton['Skeleton'/185, l='MpServer', x=-42,69, y=37,76, z=300,69], EntitySheep['Sheep'/190, l='MpServer', x=-43,50, y=73,00, z=334,50], EntitySheep['Sheep'/191, l='MpServer', x=-41,50, y=72,00, z=334,50], EntityZombie['Zombie'/188, l='MpServer', x=-37,00, y=47,00, z=317,44], EntitySkeleton['Skeleton'/189, l='MpServer', x=-44,61, y=41,93, z=308,44], EntityPig['Pig'/182, l='MpServer', x=-41,47, y=66,00, z=189,22], EntityPig['Pig'/183, l='MpServer', x=-42,50, y=95,00, z=214,50], EntityPig['Pig'/180, l='MpServer', x=-40,19, y=66,00, z=188,19], EntityPig['Pig'/181, l='MpServer', x=-42,50, y=66,00, z=190,53], EntityCreeper['Creeper'/201, l='MpServer', x=-19,50, y=51,00, z=327,50], EntityCreeper['Creeper'/202, l='MpServer', x=-21,47, y=51,00, z=326,40], EntityBat['Bat'/193, l='MpServer', x=-46,16, y=54,68, z=332,67], EntitySheep['Sheep'/192, l='MpServer', x=-42,50, y=74,00, z=330,50], EntitySheep['Sheep'/194, l='MpServer', x=-46,50, y=73,00, z=337,50], EntityChicken['Chicken'/220, l='MpServer', x=2,50, y=104,00, z=213,50], EntityChicken['Chicken'/221, l='MpServer', x=0,50, y=103,00, z=211,50], EntitySquid['Squid'/222, l='MpServer', x=9,97, y=61,44, z=320,90], EntitySquid['Squid'/223, l='MpServer', x=9,31, y=61,44, z=316,40], EntityPig['Pig'/217, l='MpServer', x=3,50, y=103,00, z=207,50], EntityPig['Pig'/218, l='MpServer', x=5,50, y=103,00, z=207,50], EntityChicken['Chicken'/219, l='MpServer', x=0,50, y=104,00, z=214,50], EntityChicken['Chicken'/212, l='MpServer', x=-3,50, y=103,00, z=214,50], EntityBat['Bat'/91, l='MpServer', x=-79,58, y=20,00, z=217,45], EntityPig['Pig'/210, l='MpServer', x=-3,50, y=101,00, z=203,50], EntityPig['Pig'/211, l='MpServer', x=-0,08, y=101,00, z=203,57], EntityCreeper['Creeper'/102, l='MpServer', x=-81,50, y=52,00, z=290,50], EntityCreeper['Creeper'/103, l='MpServer', x=-81,50, y=52,00, z=291,50], EntityCreeper['Creeper'/99, l='MpServer', x=-82,50, y=44,00, z=284,50], EntityCreeper['Creeper'/233, l='MpServer', x=24,50, y=43,00, z=334,50], EntityBat['Bat'/110, l='MpServer', x=-70,89, y=18,49, z=189,88], EntityBat['Bat'/111, l='MpServer', x=-72,54, y=18,92, z=187,60], EntityZombie['Zombie'/104, l='MpServer', x=-82,50, y=52,00, z=291,50], EntitySquid['Squid'/225, l='MpServer', x=10,01, y=61,32, z=322,50], EntitySquid['Squid'/224, l='MpServer', x=12,31, y=61,46, z=320,09], EntityBat['Bat'/119, l='MpServer', x=-75,72, y=20,15, z=215,83], EntityCreeper['Creeper'/118, l='MpServer', x=-70,50, y=23,00, z=216,50], EntitySpider['Spider'/117, l='MpServer', x=-67,16, y=51,00, z=202,38], EntityPig['Pig'/252, l='MpServer', x=36,50, y=77,00, z=304,50], EntitySkeleton['Skeleton'/253, l='MpServer', x=44,91, y=33,00, z=338,53], EntityCreeper['Creeper'/116, l='MpServer', x=-71,50, y=33,00, z=198,50], EntityCreeper['Creeper'/115, l='MpServer', x=-66,50, y=33,00, z=194,50], EntityPig['Pig'/250, l='MpServer', x=33,50, y=77,00, z=300,50], EntityZombie['Zombie'/114, l='MpServer', x=-76,50, y=31,00, z=205,50], EntityPig['Pig'/251, l='MpServer', x=40,50, y=82,00, z=293,31], EntitySkeleton['Skeleton'/113, l='MpServer', x=-70,47, y=17,00, z=197,79], EntitySquid['Squid'/248, l='MpServer', x=45,78, y=62,39, z=263,91], EntityZombie['Zombie'/112, l='MpServer', x=-66,31, y=19,00, z=206,31], EntityPig['Pig'/249, l='MpServer', x=45,66, y=76,00, z=296,13], EntitySkeleton['Skeleton'/127, l='MpServer', x=-77,50, y=56,00, z=284,50], EntityCreeper['Creeper'/126, l='MpServer', x=-67,50, y=23,00, z=286,50], EntitySquid['Squid'/247, l='MpServer', x=45,82, y=62,22, z=265,32], EntityZombie['Zombie'/125, l='MpServer', x=-72,50, y=24,00, z=282,97], EntityPig['Pig'/124, l='MpServer', x=-71,50, y=96,00, z=257,50], EntityPig['Pig'/123, l='MpServer', x=-69,50, y=96,00, z=259,50], EntityPig['Pig'/122, l='MpServer', x=-67,50, y=97,00, z=259,50], EntityPig['Pig'/121, l='MpServer', x=-65,50, y=93,00, z=262,50], EntityZombie['Zombie'/120, l='MpServer', x=-78,50, y=29,00, z=246,50], EntityClientPlayerMP['Player257'/362, l='MpServer', x=-3,25, y=65,62, z=259,95]] Retry entities: 0 total; [] Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:441) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2414) at net.minecraft.client.Minecraft.run(Minecraft.java:783) at java.lang.Thread.run(Unknown Source) – System Details -- Details: Minecraft Version: 1.5.2 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 894404112 bytes (852 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 16854 (943824 bytes; 0 MB) allocated, 4 (224 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63 FML: MCP v7.51 FML v5.2.23.737 Minecraft Forge 7.8.1.737 4 mods loaded, 4 mods active mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ModBxToxik{1.0.0} [Mod BxToxik] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available LWJGL: 2.4.2 OpenGL: Intel(R) HD Graphics 4000 GL version 3.3.0 - Build 8.15.10.2618, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: 3571 (199976 bytes; 0 MB) allocated, 19 (1064 bytes; 0 MB) used java.lang.ClassCastException: BxToxik.common.BlockNeuf cannot be cast to BxToxik.common.BlockUn at BxToxik.common.ItemBlockUn.placeBlockAt(ItemBlockUn.java:25) at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:119) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:396) at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1316) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1800) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:835) at net.minecraft.client.Minecraft.run(Minecraft.java:760) at java.lang.Thread.run(Unknown Source) –- END ERROR REPORT 8e8f8d59 ----------
Et le code :
2014-03-04 13:24:10 [Infos] [ForgeModLoader] Forge Mod Loader version 5.2.23.737 for Minecraft 1.5.2 loading 2014-03-04 13:24:10 [Infos] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_51, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7 2014-03-04 13:24:10 [Infos] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2014-03-04 13:24:11 [Infos] [STDOUT] 229 recipes 2014-03-04 13:24:11 [Infos] [STDOUT] 27 achievements 2014-03-04 13:24:11 [Infos] [Minecraft-Client] Setting user: Player257 2014-03-04 13:24:11 [Infos] [STDOUT] (Session ID is -) 2014-03-04 13:24:11 [Infos] [STDERR] Client asked for parameter: server 2014-03-04 13:24:11 [Infos] [Minecraft-Client] LWJGL Version: 2.4.2 2014-03-04 13:24:11 [Infos] [MinecraftForge] Attempting early MinecraftForge initialization 2014-03-04 13:24:11 [Infos] [STDOUT] MinecraftForge v7.8.1.737 Initialized 2014-03-04 13:24:11 [Infos] [ForgeModLoader] MinecraftForge v7.8.1.737 Initialized 2014-03-04 13:24:11 [Infos] [STDOUT] Replaced 85 ore recipies 2014-03-04 13:24:11 [Infos] [MinecraftForge] Completed early MinecraftForge initialization 2014-03-04 13:24:11 [Infos] [ForgeModLoader] Reading custom logging properties from C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\config\logging.properties 2014-03-04 13:24:11 [Désactivé] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2014-03-04 13:24:12 [Infos] [ForgeModLoader] Searching C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\mods for mods 2014-03-04 13:24:12 [Infos] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2014-03-04 13:24:12 [Infos] [mcp] Activating mod mcp 2014-03-04 13:24:12 [Infos] [FML] Activating mod FML 2014-03-04 13:24:12 [Infos] [Forge] Activating mod Forge 2014-03-04 13:24:12 [Infos] [ModBxToxik] Activating mod ModBxToxik 2014-03-04 13:24:12 [Infos] [ForgeModLoader] FML has found a non-mod file ItemRendererAPI.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 2014-03-04 13:24:12 [Infos] [ForgeModLoader] Registering Forge Packet Handler 2014-03-04 13:24:12 [Infos] [ForgeModLoader] Succeeded registering Forge Packet Handler 2014-03-04 13:24:12 [Infos] [ForgeModLoader] Configured a dormant chunk cache size of 0 2014-03-04 13:24:13 [Infos] [STDOUT] 2014-03-04 13:24:13 [Infos] [STDOUT] Starting up SoundSystem… 2014-03-04 13:24:13 [Infos] [STDOUT] Initializing LWJGL OpenAL 2014-03-04 13:24:13 [Infos] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2014-03-04 13:24:13 [Infos] [STDOUT] OpenAL initialized. 2014-03-04 13:24:13 [Infos] [STDOUT] 2014-03-04 13:24:13 [Infos] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled 2014-03-04 13:24:13 [Infos] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt 2014-03-04 13:24:13 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt 2014-03-04 13:24:14 [Infos] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/blocks/water.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/items/clock.txt 2014-03-04 13:24:14 [Infos] [Minecraft-Client] Found animation info for: textures/items/compass.txt 2014-03-04 13:24:21 [Infos] [Minecraft-Server] Starting integrated minecraft server version 1.5.2 2014-03-04 13:24:21 [Infos] [Minecraft-Server] Generating keypair 2014-03-04 13:24:22 [Infos] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@aaee94) 2014-03-04 13:24:22 [Infos] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@aaee94) 2014-03-04 13:24:22 [Infos] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@aaee94) 2014-03-04 13:24:22 [Infos] [Minecraft-Server] Preparing start region for level 0 2014-03-04 13:24:23 [Infos] [STDOUT] loading single player 2014-03-04 13:24:23 [Infos] [Minecraft-Server] Player257[/127.0.0.1:0] logged in with entity id 362 at (-3.2474929484193242, 64.0, 259.9452690690749) 2014-03-04 13:24:25 [Infos] [STDERR] net.minecraft.util.ReportedException: Ticking memory connection 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:60) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:677) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:573) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2014-03-04 13:24:25 [Infos] [STDERR] Caused by: java.lang.ClassCastException: BxToxik.common.BlockNeuf cannot be cast to BxToxik.common.BlockUn 2014-03-04 13:24:25 [Infos] [STDERR] at BxToxik.common.ItemBlockUn.placeBlockAt(ItemBlockUn.java:25) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:119) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134) 2014-03-04 13:24:25 [Infos] [STDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53) 2014-03-04 13:24:25 [Infos] [STDERR] … 6 more 2014-03-04 13:24:25 [Grave] [Minecraft-Server] Encountered an unexpected exception ReportedException net.minecraft.util.ReportedException: Ticking memory connection at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:60) at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:677) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:573) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) Caused by: java.lang.ClassCastException: BxToxik.common.BlockNeuf cannot be cast to BxToxik.common.BlockUn at BxToxik.common.ItemBlockUn.placeBlockAt(ItemBlockUn.java:25) at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:119) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425) at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553) at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134) at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53) … 6 more 2014-03-04 13:24:25 [Grave] [Minecraft-Server] This crash report has been saved to: C:\Users\lucas\Desktop\Launcher Minecraft\Launcher 1.5.2\MCP\Forge\minecraftforge-src-1.5.2-7.8.1.737\forge\mcp\jars\.\crash-reports\crash-2014-03-04_13.24.25-server.txt 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Stopping server 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Saving players 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Saving worlds 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/Overworld 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/Nether 2014-03-04 13:24:25 [Infos] [Minecraft-Server] Saving chunks for level 'New World'/The End 2014-03-04 13:24:25 [Infos] [ForgeModLoader] Unloading dimension 0 2014-03-04 13:24:25 [Infos] [ForgeModLoader] Unloading dimension -1 2014-03-04 13:24:25 [Infos] [ForgeModLoader] Unloading dimension 1 2014-03-04 13:24:25 [Infos] [ForgeModLoader] The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. 2014-03-04 13:24:26 [Infos] [STDERR] java.lang.ClassCastException: BxToxik.common.BlockNeuf cannot be cast to BxToxik.common.BlockUn 2014-03-04 13:24:26 [Infos] [STDERR] at BxToxik.common.ItemBlockUn.placeBlockAt(ItemBlockUn.java:25) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:119) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:396) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1316) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1800) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:835) 2014-03-04 13:24:26 [Infos] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:760) 2014-03-04 13:24:26 [Infos] [STDERR] at java.lang.Thread.run(Unknown Source) 2014-03-04 13:24:36 [Infos] [Minecraft-Client] Stopping! 2014-03-04 13:24:36 [Infos] [STDOUT] 2014-03-04 13:24:36 [Infos] [STDOUT] SoundSystem shutting down… 2014-03-04 13:24:36 [Infos] [STDOUT] Author: Paul Lamb, www.paulscode.com 2014-03-04 13:24:36 [Infos] [STDOUT]
-
ItemBlockUn.java, stp.
-
Il te faut un ItemBlock custom pour chaque bloc ou alors créer un ItemBlock commun et une base pour ton bloc.
-
ok le voilà :
package BxToxik.common; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ItemBlockUn extends ItemBlock { public ItemBlockUn(int id) { super(id); } public boolean placeBlockAt(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata) { if (!world.setBlock(x, y, z, this.getBlockID(), metadata, 3)) { return false; } if (world.getBlockId(x, y, z) == this.getBlockID()) { ((BlockUn)Block.blocksList[this.getBlockID()]).onBlockPlacedByWithSide(world, x, y, z, player, stack, side); Block.blocksList[this.getBlockID()].onPostBlockPlaced(world, x, y, z, metadata); } return true; } }
Et le ItemBlockDeux au cas ou :
package BxToxik.common; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ItemBlockDeux extends ItemBlock { public ItemBlockDeux(int id) { super(id); } public boolean placeBlockAt(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata) { if (!world.setBlock(x, y, z, this.getBlockID(), metadata, 3)) { return false; } if (world.getBlockId(x, y, z) == this.getBlockID()) { ((BlockDeux)Block.blocksList[this.getBlockID()]).onBlockPlacedByWithSide(world, x, y, z, player, stack, side); Block.blocksList[this.getBlockID()].onPostBlockPlaced(world, x, y, z, metadata); } return true; } }
Il te faut un ItemBlock custom pour chaque bloc ou alors créer un ItemBlock commun et une base pour ton bloc.
Je l’ai mis pourtant
GameRegistry.registerBlock(BlockUn, ItemBlockUn.class, "BlockUn"); GameRegistry.registerBlock(BlockDeux, ItemBlockUn.class, "BlockDeux");
je vien de voir mon erreur xD toute bete
ItemBlockUn.class, "BlockUn"); ItemBlockUn.class, "BlockDeux");
bon ben résolu