Posted January 5, 201510 yr Soo i deleted my old mod source and started new but now again i have problem with minecraft crashing when planting. Console Log : net.minecraft.util.ReportedException: Ticking memory connection at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[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.NullPointerException at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) ~[ExtendedBlockStorage.class:?] at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) ~[Chunk.class:?] at net.minecraft.world.World.setBlock(World.java:519) ~[World.class:?] at net.minecraft.world.World.setBlock(World.java:681) ~[World.class:?] at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) ~[itemSeedFood.class:?] at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:456) ~[ForgeHooks.class:?] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142) ~[itemStack.class:?] at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422) ~[itemInWorldManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) ~[C08PacketPlayerBlockPlacement.class:?] at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) ~[C08PacketPlayerBlockPlacement.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?] ... 5 more [21:15:07] [server thread/ERROR]: This crash report has been saved to: D:\Other\Coding\Mo' Items Mod 1.7.2\eclipse\.\crash-reports\crash-2015-01-05_21.15.07-server.txt [21:15:07] [server thread/INFO]: Stopping server [21:15:07] [server thread/INFO]: Saving players [21:15:07] [server thread/INFO]: Saving worlds [21:15:07] [server thread/INFO]: Saving chunks for level 'Test World'/Overworld [21:15:07] [server thread/INFO]: Saving chunks for level 'Test World'/Nether [21:15:07] [server thread/INFO]: Saving chunks for level 'Test World'/The End [21:15:08] [server thread/INFO] [FML]: Unloading dimension 0 [21:15:08] [server thread/INFO] [FML]: Unloading dimension -1 [21:15:08] [server thread/INFO] [FML]: Unloading dimension 1 [21:15:08] [server thread/INFO] [FML]: Applying holder lookups [21:15:08] [server thread/INFO] [FML]: Holder lookups applied [21:15:08] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. [21:15:08] [Client thread/FATAL]: Unreported exception thrown! java.lang.NullPointerException at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) ~[ExtendedBlockStorage.class:?] at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) ~[Chunk.class:?] at net.minecraft.world.World.setBlock(World.java:519) ~[World.class:?] at net.minecraft.world.World.setBlock(World.java:681) ~[World.class:?] at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) ~[itemSeedFood.class:?] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) ~[itemStack.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) ~[PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:2034) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1029) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [21:15:08] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ---- // I just don't know what went wrong Time: 05.01.15. 21:15 Description: Unexpected error java.lang.NullPointerException: Unexpected error at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.world.World.setBlock(World.java:681) at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2034) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1029) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.world.World.setBlock(World.java:681) at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player267'/325, l='MpServer', x=-49,96, y=71,62, z=243,40]] Chunk stats: MultiplayerChunkCache: 150, 150 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-52,64,244), Chunk: (at 12,4,4 in -4,15; contains blocks -64,0,240 to -49,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 2363 game time, 2363 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: 38 total; [EntityCow['Cow'/137, l='MpServer', x=-59,41, y=70,00, z=272,69], EntityCow['Cow'/136, l='MpServer', x=-59,53, y=70,00, z=286,50], EntityCow['Cow'/70, l='MpServer', x=-127,62, y=70,00, z=303,07], EntityCow['Cow'/138, l='MpServer', x=-57,13, y=73,00, z=294,75], EntityCow['Cow'/201, l='MpServer', x=30,47, y=64,00, z=269,53], EntityCow['Cow'/200, l='MpServer', x=21,34, y=72,00, z=245,53], EntityCow['Cow'/203, l='MpServer', x=24,53, y=68,00, z=270,56], EntityCow['Cow'/197, l='MpServer', x=16,56, y=71,00, z=230,22], EntityBat['Bat'/196, l='MpServer', x=24,50, y=39,10, z=187,50], EntityCow['Cow'/199, l='MpServer', x=17,28, y=72,00, z=246,47], EntityCow['Cow'/198, l='MpServer', x=21,63, y=72,00, z=239,09], EntityPig['Pig'/133, l='MpServer', x=-60,81, y=63,00, z=237,50], EntityCow['Cow'/135, l='MpServer', x=-58,47, y=71,00, z=286,50], EntityBat['Bat'/134, l='MpServer', x=-57,59, y=25,10, z=263,50], EntityBat['Bat'/152, l='MpServer', x=-41,81, y=16,05, z=271,13], EntityClientPlayerMP['Player267'/325, l='MpServer', x=-49,96, y=71,62, z=243,40], EntityCow['Cow'/95, l='MpServer', x=-97,74, y=67,00, z=290,53], EntityItem['item.item.seeds'/94, l='MpServer', x=-100,28, y=64,13, z=279,28], EntityBat['Bat'/150, l='MpServer', x=-33,25, y=26,10, z=240,75], EntityBat['Bat'/151, l='MpServer', x=-41,25, y=21,10, z=265,25], EntityPig['Pig'/102, l='MpServer', x=-81,97, y=69,00, z=207,47], EntityPig['Pig'/103, l='MpServer', x=-86,16, y=64,00, z=219,62], EntityPig['Pig'/101, l='MpServer', x=-86,59, y=65,00, z=207,69], EntityBat['Bat'/168, l='MpServer', x=-22,13, y=42,00, z=236,85], EntityBat['Bat'/167, l='MpServer', x=-23,25, y=41,10, z=236,75], EntityCow['Cow'/106, l='MpServer', x=-89,47, y=71,00, z=299,09], EntityCow['Cow'/104, l='MpServer', x=-94,41, y=69,00, z=295,25], EntityCow['Cow'/105, l='MpServer', x=-90,38, y=72,00, z=301,25], EntityPig['Pig'/119, l='MpServer', x=-73,44, y=70,00, z=223,50], EntityBat['Bat'/190, l='MpServer', x=0,93, y=16,87, z=232,06], EntityBat['Bat'/191, l='MpServer', x=3,39, y=38,68, z=233,54], EntityItem['item.tile.gravel'/188, l='MpServer', x=4,13, y=36,13, z=189,72], EntityBat['Bat'/189, l='MpServer', x=7,78, y=16,28, z=232,57], EntityWolf['Wolf'/63, l='MpServer', x=-129,78, y=66,00, z=277,38], EntityBat['Bat'/183, l='MpServer', x=-24,41, y=43,70, z=234,02], EntityBat['Bat'/122, l='MpServer', x=-77,02, y=18,00, z=256,47], EntityPig['Pig'/121, l='MpServer', x=-69,94, y=63,00, z=237,53], EntityBat['Bat'/120, l='MpServer', x=-69,75, y=34,10, z=238,69]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- 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 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 915899464 bytes (873 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 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.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available mi{1.0} [Mo' Items] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 460/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.09, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [21:15:08] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# D:\Other\Coding\Mo' Items Mod 1.7.2\eclipse\.\crash-reports\crash-2015-01-05_21.15.08-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Crash-Report : ---- Minecraft Crash Report ---- // You're mean. Time: 05.01.15. 21:15 Description: Unexpected error java.lang.NullPointerException: Unexpected error at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.world.World.setBlock(World.java:681) at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2034) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1029) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.world.World.setBlock(World.java:681) at capcomet.moitems.crops.ItemSeedFood.onItemUse(ItemSeedFood.java:45) at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1519) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player267'/325, l='MpServer', x=-49,96, y=71,62, z=243,40]] Chunk stats: MultiplayerChunkCache: 150, 150 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (-52,64,244), Chunk: (at 12,4,4 in -4,15; contains blocks -64,0,240 to -49,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 2363 game time, 2363 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: 38 total; [EntityCow['Cow'/137, l='MpServer', x=-59,41, y=70,00, z=272,69], EntityCow['Cow'/136, l='MpServer', x=-59,53, y=70,00, z=286,50], EntityCow['Cow'/70, l='MpServer', x=-127,62, y=70,00, z=303,07], EntityCow['Cow'/138, l='MpServer', x=-57,13, y=73,00, z=294,75], EntityCow['Cow'/201, l='MpServer', x=30,47, y=64,00, z=269,53], EntityCow['Cow'/200, l='MpServer', x=21,34, y=72,00, z=245,53], EntityCow['Cow'/203, l='MpServer', x=24,53, y=68,00, z=270,56], EntityCow['Cow'/197, l='MpServer', x=16,56, y=71,00, z=230,22], EntityBat['Bat'/196, l='MpServer', x=24,50, y=39,10, z=187,50], EntityCow['Cow'/199, l='MpServer', x=17,28, y=72,00, z=246,47], EntityCow['Cow'/198, l='MpServer', x=21,63, y=72,00, z=239,09], EntityPig['Pig'/133, l='MpServer', x=-60,81, y=63,00, z=237,50], EntityCow['Cow'/135, l='MpServer', x=-58,47, y=71,00, z=286,50], EntityBat['Bat'/134, l='MpServer', x=-57,59, y=25,10, z=263,50], EntityBat['Bat'/152, l='MpServer', x=-41,81, y=16,05, z=271,13], EntityClientPlayerMP['Player267'/325, l='MpServer', x=-49,96, y=71,62, z=243,40], EntityCow['Cow'/95, l='MpServer', x=-97,74, y=67,00, z=290,53], EntityItem['item.item.seeds'/94, l='MpServer', x=-100,28, y=64,13, z=279,28], EntityBat['Bat'/150, l='MpServer', x=-33,25, y=26,10, z=240,75], EntityBat['Bat'/151, l='MpServer', x=-41,25, y=21,10, z=265,25], EntityPig['Pig'/102, l='MpServer', x=-81,97, y=69,00, z=207,47], EntityPig['Pig'/103, l='MpServer', x=-86,16, y=64,00, z=219,62], EntityPig['Pig'/101, l='MpServer', x=-86,59, y=65,00, z=207,69], EntityBat['Bat'/168, l='MpServer', x=-22,13, y=42,00, z=236,85], EntityBat['Bat'/167, l='MpServer', x=-23,25, y=41,10, z=236,75], EntityCow['Cow'/106, l='MpServer', x=-89,47, y=71,00, z=299,09], EntityCow['Cow'/104, l='MpServer', x=-94,41, y=69,00, z=295,25], EntityCow['Cow'/105, l='MpServer', x=-90,38, y=72,00, z=301,25], EntityPig['Pig'/119, l='MpServer', x=-73,44, y=70,00, z=223,50], EntityBat['Bat'/190, l='MpServer', x=0,93, y=16,87, z=232,06], EntityBat['Bat'/191, l='MpServer', x=3,39, y=38,68, z=233,54], EntityItem['item.tile.gravel'/188, l='MpServer', x=4,13, y=36,13, z=189,72], EntityBat['Bat'/189, l='MpServer', x=7,78, y=16,28, z=232,57], EntityWolf['Wolf'/63, l='MpServer', x=-129,78, y=66,00, z=277,38], EntityBat['Bat'/183, l='MpServer', x=-24,41, y=43,70, z=234,02], EntityBat['Bat'/122, l='MpServer', x=-77,02, y=18,00, z=256,47], EntityPig['Pig'/121, l='MpServer', x=-69,94, y=63,00, z=237,53], EntityBat['Bat'/120, l='MpServer', x=-69,75, y=34,10, z=238,69]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- 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 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 915899464 bytes (873 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 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.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available mi{1.0} [Mo' Items] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 460/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.09, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) MainClass : package capcomet.moitems; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; import capcomet.moitems.blocks.Steel; import capcomet.moitems.blocks.TitaniumOre; import capcomet.moitems.food.BlockCucumber; import capcomet.moitems.food.Cucumber; import capcomet.moitems.items.IronNugget; import capcomet.moitems.items.RawTitanium; import capcomet.moitems.items.SteelArmor; import capcomet.moitems.items.SteelPlate; import capcomet.moitems.items.TitaniumIngot; import capcomet.moitems.items.TitaniumShard; import capcomet.moitems.oregen.TitaniumGen; import capcomet.moitems.tools.SteelAxe; import capcomet.moitems.tools.SteelHoe; import capcomet.moitems.tools.SteelPickaxe; import capcomet.moitems.tools.SteelShovel; import capcomet.moitems.tools.SteelSword; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "mi", name = "Mo' Items", version = "1.0") public class MoItems { //Armors public static Item SteelHelmet; public static Item SteelChestplate; public static Item SteelLeggings; public static Item SteelBoots; //Items public static Item TitaniumIngot; public static Item IronNugget; public static Item Cucumber; public static Item GrilledCucumber; public static Item SteelShard; public static Item RawSteel; public static Item SteelIngot; public static Item SteelPlate; //Tools public static Item SteelPickaxe; public static Item SteelAxe; public static Item SteelShovel; public static Item SteelHoe; public static Item SteelSword; //Blocks public static Block TitaniumOre; public static Block Steel; //Crops public static Block BlockCucumber; //Tool Material public static final Item.ToolMaterial SteelToolMaterial = EnumHelper.addToolMaterial("SteelToolMaterial", 4, 2000, 9.0F, 4.0F, 30); //Armor Material public static final ItemArmor.ArmorMaterial SteelArmorMaterial = EnumHelper.addArmorMaterial("SteelArmorMaterial", 2500, new int[]{4,8,6,5}, 30); @EventHandler public void preInit(FMLPreInitializationEvent event) { //Armors SteelHelmet = new SteelArmor(SteelArmorMaterial, 0, 0).setUnlocalizedName("SteelHelmet").setTextureName("mi:steelhelmet").setCreativeTab(tabMoreItems); SteelChestplate = new SteelArmor(SteelArmorMaterial, 0, 1).setUnlocalizedName("SteelChestplate").setTextureName("mi:steelchestplate").setCreativeTab(tabMoreItems); SteelLeggings = new SteelArmor(SteelArmorMaterial, 0, 2).setUnlocalizedName("SteelLeggings").setTextureName("mi:steelleggings").setCreativeTab(tabMoreItems); SteelBoots = new SteelArmor(SteelArmorMaterial, 0, 3).setUnlocalizedName("SteelBoots").setTextureName("mi:steelboots").setCreativeTab(tabMoreItems); //Tools SteelPickaxe = new SteelPickaxe(SteelToolMaterial).setUnlocalizedName("SteelPickaxe").setCreativeTab(tabMoreItems).setTextureName("mi:steelpickaxe"); SteelAxe = new SteelAxe(SteelToolMaterial).setUnlocalizedName("SteelAxe").setCreativeTab(tabMoreItems).setTextureName("mi:steelaxe"); SteelShovel = new SteelShovel(SteelToolMaterial).setUnlocalizedName("SteelShovel").setCreativeTab(tabMoreItems).setTextureName("mi:steelshovel"); SteelHoe = new SteelHoe(SteelToolMaterial).setUnlocalizedName("SteelHoe").setCreativeTab(tabMoreItems).setTextureName("mi:steelhoe"); SteelSword = new SteelSword(SteelToolMaterial).setUnlocalizedName("SteelSword").setCreativeTab(tabMoreItems).setTextureName("mi:steelsword"); //Food Cucumber = new Cucumber().setUnlocalizedName("Cucumber").setTextureName("mi:cucumber").setCreativeTab(tabMoreItems); GrilledCucumber = new ItemFood(9, 0.5F, false).setUnlocalizedName("GrilledCucumber").setTextureName("mi:grilledcucumber").setCreativeTab(tabMoreItems); //Crops BlockCucumber = new BlockCucumber(); //Items TitaniumIngot = new TitaniumIngot().setUnlocalizedName("TitaniumIngot").setTextureName("mi:titaniumingot").setCreativeTab(tabMoreItems); IronNugget = new IronNugget().setUnlocalizedName("IronNugget").setTextureName("mi:ironnugget").setCreativeTab(tabMoreItems); SteelPlate = new SteelPlate().setUnlocalizedName("SteelPlate").setTextureName("mi:steelplate").setCreativeTab(tabMoreItems); SteelShard = new TitaniumShard().setUnlocalizedName("ItemSteelShard").setTextureName("mi:steelshard").setCreativeTab(tabMoreItems); RawSteel = new RawTitanium().setUnlocalizedName("RawSteel").setTextureName("mi:rawsteel").setCreativeTab(tabMoreItems); SteelIngot = new TitaniumIngot().setUnlocalizedName("SteelIngot").setTextureName("mi:steelingot").setCreativeTab(tabMoreItems); //Blocks TitaniumOre = new TitaniumOre(Material.rock).setBlockName("TitaniumOre").setBlockTextureName("mi:titaniumore").setCreativeTab(tabMoreItemsBlocks); Steel = new Steel(Material.rock).setBlockName("Steel").setBlockTextureName("mi:steel").setCreativeTab(tabMoreItemsBlocks); //Registry Items GameRegistry.registerItem(TitaniumIngot, TitaniumIngot.getUnlocalizedName().substring(5)); GameRegistry.registerItem(IronNugget, IronNugget.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelPlate, SteelPlate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(RawSteel, RawSteel.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelIngot, SteelIngot.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelShard, SteelShard.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GrilledCucumber, GrilledCucumber.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cucumber, Cucumber.getUnlocalizedName().substring(5)); //Registry Blocks GameRegistry.registerBlock(BlockCucumber, BlockCucumber.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(TitaniumOre, TitaniumOre.getUnlocalizedName().substring(5)); GameRegistry.registerBlock(Steel, Steel.getUnlocalizedName().substring(5)); //Registry Tools GameRegistry.registerItem(SteelPickaxe, SteelPickaxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelAxe, SteelAxe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelShovel, SteelShovel.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelHoe, SteelHoe.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelSword, SteelSword.getUnlocalizedName().substring(5)); //Registry Armors GameRegistry.registerItem(SteelHelmet, SteelHelmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelChestplate, SteelChestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelLeggings, SteelLeggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(SteelBoots, SteelBoots.getUnlocalizedName().substring(5)); //Registry WorldGen GameRegistry.registerWorldGenerator(new TitaniumGen(),0); } @EventHandler public void init(FMLInitializationEvent event) { //Smelting GameRegistry.addSmelting(TitaniumOre, new ItemStack(TitaniumIngot), 6.0F); GameRegistry.addSmelting(Cucumber, new ItemStack(GrilledCucumber), 3.0F); GameRegistry.addSmelting(RawSteel, new ItemStack(SteelIngot), 5.0F); //Recipes GameRegistry.addRecipe(new ItemStack(SteelShard, 2), "III","ICI","III", 'I', IronNugget, 'C', Items.coal); GameRegistry.addRecipe(new ItemStack(RawSteel, 2), "SSS","SSS","SSS", 'S', SteelShard); GameRegistry.addRecipe(new ItemStack(SteelPlate, 2), "SSS","SSS", 'S', SteelIngot); GameRegistry.addRecipe(new ItemStack(SteelPickaxe), "SSS"," I "," I ", 'S', SteelPlate, 'I', Items.stick); GameRegistry.addRecipe(new ItemStack(SteelAxe), " SS"," IS"," I ", 'S', SteelPlate, 'I', Items.stick); GameRegistry.addRecipe(new ItemStack(SteelShovel), " S "," I "," I ", 'S', SteelPlate, 'I', Items.stick); GameRegistry.addRecipe(new ItemStack(SteelHoe), " SS"," I "," I ", 'S', SteelPlate, 'I', Items.stick); GameRegistry.addRecipe(new ItemStack(SteelSword), " S "," S "," I ", 'S', SteelPlate, 'I', Items.stick); GameRegistry.addRecipe(new ItemStack(Steel), "SSS","SSS","SSS", 'S', SteelPlate); GameRegistry.addRecipe(new ItemStack(SteelHelmet), "PPP","P P", 'P', SteelPlate); GameRegistry.addRecipe(new ItemStack(SteelChestplate), "P P","PPP","PPP", 'P', SteelPlate); GameRegistry.addRecipe(new ItemStack(SteelLeggings), "PPP","P P","P P", 'P', SteelPlate); GameRegistry.addRecipe(new ItemStack(SteelBoots), "P P","P P", 'P', SteelPlate); GameRegistry.addRecipe(new ItemStack(Items.iron_ingot), "NNN","NNN","NNN", 'N', IronNugget); GameRegistry.addShapelessRecipe(new ItemStack(SteelPlate, 9), Steel); GameRegistry.addShapelessRecipe(new ItemStack(IronNugget, 9), Items.iron_ingot); } @EventHandler public void postinit(FMLPostInitializationEvent event) { } //Creative Tabs public static CreativeTabs tabMoreItemsBlocks = new CreativeTabs("tabMoreItemsBlocks"){ @Override public Item getTabIconItem(){ return new ItemStack(Steel).getItem(); } }; public static CreativeTabs tabMoreItems = new CreativeTabs("tabMoreItems"){ @Override public Item getTabIconItem(){ return new ItemStack(SteelSword).getItem(); } }; } ItemSeedFood : package capcomet.moitems.crops; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; import net.minecraftforge.common.IPlantable; import net.minecraftforge.common.util.ForgeDirection; public class ItemSeedFood extends ItemFood implements IPlantable { private final Block theBlockPlant; /** * Block ID of the soil this seed food should be planted on. */ private final Block soilId; public ItemSeedFood(int parHealAmount, float parSaturationModifier, Block parBlockPlant, Block parSoilBlock) { super(parHealAmount, parSaturationModifier, false); theBlockPlant = parBlockPlant; soilId = parSoilBlock; } @Override public boolean onItemUse(ItemStack parItemStack, EntityPlayer parPlayer, World parWorld, int parX, int parY, int parZ, int par7, float par8, float par9, float par10) { // not sure what this parameter does, copied it from potato if (par7 != 1) { return false; } // check if player has capability to edit else if (parPlayer.canPlayerEdit(parX, parY+1, parZ, par7, parItemStack)) { // check that the soil block can sustain the plant // and that block above is air so there is room for plant to grow if (parWorld.getBlock(parX, parY, parZ).canSustainPlant(parWorld, parX, parY, parZ, ForgeDirection.UP, this) && parWorld.isAirBlock(parX, parY+1, parZ)) { // place the plant block parWorld.setBlock(parX, parY+1, parZ, theBlockPlant); // decrement the stack of seed items --parItemStack.stackSize; return true; } else { return false; } } else { return false; } } @Override public EnumPlantType getPlantType(IBlockAccess world, int x, int y, int z) { return EnumPlantType.Crop; } @Override public Block getPlant(IBlockAccess world, int x, int y, int z) { return theBlockPlant; } @Override public int getPlantMetadata(IBlockAccess world, int x, int y, int z) { return 0; } public Block getSoilId() { return soilId; } } ItemBlockCrops : package capcomet.moitems.crops; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.BlockBush; import net.minecraft.block.IGrowable; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemBlockCrops extends BlockBush implements IGrowable { public ItemBlockCrops(){} @SideOnly(Side.CLIENT) protected IIcon[] iIcon; { // Basic block setup this.setTickRandomly(true); float f = 0.5F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f); this.setCreativeTab((CreativeTabs)null); this.setHardness(0.0F); this.setStepSound(soundTypeGrass); this.disableStats(); } /** * is the block grass, dirt or farmland */ @Override protected boolean canPlaceBlockOn(Block parBlock) { return parBlock == Blocks.farmland; } public void incrementGrowStage(World parWorld, int parX, int parY, int parZ) { int growStage = parWorld.getBlockMetadata(parX, parY, parZ) + MathHelper.getRandomIntegerInRange(parWorld.rand, 2, 5); if (growStage > 7) { growStage = 7; } parWorld.setBlockMetadataWithNotify(parX, parY, parZ, growStage, 2); } @Override public Item getItemDropped(int p_149650_1_, Random parRand, int parFortune) { return Item.getItemFromBlock(this); } /** * The type of render function that is called for this block */ @Override public int getRenderType() { return 1; // Cross like flowers } /* * Need to implement the IGrowable interface methods * * * (non-Javadoc) * @see net.minecraft.block.IGrowable#func_149851_a(net.minecraft.world.World, int, int, int, boolean) */ @Override // checks if finished growing (a grow stage of 7 is final stage) public boolean func_149851_a(World parWorld, int parX, int parY, int parZ, boolean p_149851_5_) { return parWorld.getBlockMetadata(parX, parY, parZ) != 7; } /* * (non-Javadoc) * @see net.minecraft.block.IGrowable#func_149852_a(net.minecraft.world.World, java.util.Random, int, int, int) */ @Override public boolean func_149852_a(World p_149852_1_, Random parRand, int p_149852_3_, int p_149852_4_, int p_149852_5_) { return true; } /* * (non-Javadoc) * @see net.minecraft.block.IGrowable#func_149853_b(net.minecraft.world.World, java.util.Random, int, int, int) */ @Override public void func_149853_b(World parWorld, Random parRand, int parX, int parY, int parZ) { this.incrementGrowStage(parWorld, parX, parY, parZ); } /** * Gets the block's texture. Args: side, meta */ @Override @SideOnly(Side.CLIENT) public IIcon getIcon(int parSide, int parGrowthStage) { if (parGrowthStage < 7) { if (parGrowthStage == 6) { parGrowthStage = 5; } return iIcon[parGrowthStage >> 1]; } else { return iIcon[3]; } } } BlockCucumber package capcomet.moitems.food; import java.util.Random; import capcomet.moitems.MoItems; import capcomet.moitems.crops.ItemBlockCrops; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.Item; import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockCucumber extends ItemBlockCrops { public BlockCucumber() { // Basic block setup setBlockName("cucumbers"); setBlockTextureName("mi:cucumber_1"); } @Override public int quantityDropped(int parMetadata, int parFortune, Random parRand) { return (parMetadata/2); } @Override public Item getItemDropped(int parMetadata, Random parRand, int parFortune){ // DEBUG System.out.println("BlockCucumber getItemDropped()"); return (MoItems.Cucumber); } @SideOnly(Side.CLIENT) private IIcon[] iconArray; public BlockCucumber(int par1) { super(); } @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int metadata){ if(metadata < 4){ if(metadata == 4){ metadata = 4; } return iconArray[metadata >> 1]; } return iconArray[4]; } public Item getSeedItem(){ return MoItems.Cucumber; } @Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister parIIconRegister) { iIcon = new IIcon[8]; iIcon[0] = parIIconRegister.registerIcon("mi:cucumber_1"); iIcon[1] = parIIconRegister.registerIcon("mi:cucumber_2"); iIcon[2] = parIIconRegister.registerIcon("mi:cucumber_3"); iIcon[3] = parIIconRegister.registerIcon("mi:cucumber_4"); } } Cucumber : package capcomet.moitems.food; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import capcomet.moitems.MoItems; import capcomet.moitems.crops.ItemSeedFood; public class Cucumber extends ItemSeedFood { public Cucumber() { super(1, 0.3F, MoItems.BlockCucumber, Blocks.farmland); setUnlocalizedName("Cucumber"); setTextureName("mi:Cucumber"); setCreativeTab(MoItems.tabMoreItems); } } P.S Gist is not working for some reason soo i placed it in spoiler.
January 5, 201510 yr This is usually caused by instantiating/registering the seed item before the plant block. If you trace your code execution order you'll probably find that the instance of the plant block is null at the time you create the seed item. To fix it, change the order and create the plant block first, then seed item for that plant. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
January 6, 201510 yr Author I did that but now i got another crash when planting. But when i try log in to world again it crashes, that was not happening. MainClass : https://gist.github.com/CroComeT/30944a725a84f2676c44 Console Log : https://gist.github.com/CroComeT/9b8322643b21442a00d8 Crash-Report : https://gist.github.com/CroComeT/43c4dcd6d0e621de5485 I managed how to fix it
January 6, 201510 yr Author I cannot make it when i jump on it to it destroys. jabelar i tried to add your code and it didn't work. /** * Block's chance to react to an entity falling on it. */ public void onFallenUpon(World p_149746_1_, int p_149746_2_, int p_149746_3_, int p_149746_4_, Entity p_149746_5_, float p_149746_6_) { if (!p_149746_1_.isRemote && p_149746_1_.rand.nextFloat() < p_149746_6_ - 0.5F) { if (!(p_149746_5_ instanceof EntityPlayer) && !p_149746_1_.getGameRules() .getGameRuleBooleanValue("mobGriefing")) { return; } p_149746_1_.setBlock(p_149746_2_, p_149746_3_, p_149746_4_, Blocks.dirt); } }
January 6, 201510 yr Where did you add that code? If you read the tutorial (http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-creating-custom.html) that goes along with the code, it explains that that code isn't something you add, rather I was just showing the code in the farmland block that does the processing. I write a lot about what you need to do and how it works in the tutorial. Please read that. But it is actually pretty tricky because the vanilla code is in the farmland block under your plant block When you land on the farmland it turns to dirt. So if you want the plant to die, you have to make sure it doesn't get sustained on dirt. But sustainability is related to the plant type and depending on how you set that for your plant it may not work. So the solution is in my tutorial. I recommend: "So basically you should @Override the canBlockStay() method in your custom crop block class. In that method, you should check that the block below yours is proper block types to sustain your plant. If you want it to die is it is jumped on, you need to make sure that if the block below is regular dirt that you return false." Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.