Résolu Crash lors de l'initialisation
-
Bonjour, il y a quelleque temps, j’ai commencé a convertir flenix city core en 1.8, j’ai donc tout converti en fichier json / en 1.8 sauf que voila, quand je démarre minecraft cela crash, voic le crash report :
:::"C:\Program Files\Java\jdk1.8.0_101\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_101\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\rt.jar;E:\OLD\Serveur - Minecraft\NewLife\out\production\NewLife_main;E:\OLD\Serveur - Minecraft\NewLife\libs\MyEssentials-Core-1.7.10-136-dev.deobf.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\minecraft\deobfedDeps\compileDummy.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\minecraft\deobfedDeps\providedDummy.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\minecraft\net\minecraftforge\forge\1.8.9-11.15.1.1722\stable\20\forgeSrc-1.8.9-11.15.1.1722.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.mojang\netty\1.6\4b75825a06139752bd800d9e29c5fd55b8b1b1e4\netty-1.6.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\oshi-project\oshi-core\1.1\9ddf7b048a8d701be231c0f4f95fd986198fd2d8\oshi-core-1.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\3.4.0\803ff252fedbd395baffd43b37341dc4a150a554\jna-3.4.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\platform\3.4.0\e3f70017be8100d3d6923f50b3d2ee17714e9c13\platform-3.4.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.ibm.icu\icu4j-core-mojang\51.2\63d216a9311cca6be337c1e458e587f99d382b84\icu4j-core-mojang-51.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.sf.jopt-simple\jopt-simple\4.6\306816fb57cf94f108a43c95731b08934dcae15c\jopt-simple-4.6.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\io.netty\netty-all\4.0.23.Final\294104aaf1781d6a56a07d561e792c5d0c95f45\netty-all-4.0.23.Final.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\17.0\9c6ef172e8de35fd8d4d8783e4821e57cdef7445\guava-17.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.3.2\90a3822c38ec8c996e84c16a3477ef632cbc87a3\commons-lang3-3.3.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\commons-io\commons-io\2.4\b1b6ea3b7e4aa4f492509a4952029cd8e48019ad\commons-io-2.4.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.9\9ce04e34240f674bc72680f8b843b1457383161a\commons-codec-1.9.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.jutils\jutils\1.0.0\e12fe1fda814bd348c1579329c86943d2cd3c6a6\jutils-1.0.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.2.4\a60a5e993c98c864010053cb901b7eab25306568\gson-2.2.4.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.mojang\authlib\1.5.21\aefba0d5b53fbcb70860bc8046ab95d5854c07a5\authlib-1.5.21.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.mojang\realms\1.7.59\9c6c59b742d8e038a15f64c1aa273a893a658424\realms-1.7.59.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-compress\1.8.1\a698750c16740fd5b3871425f4cb3bbaa87f529d\commons-compress-1.8.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.3.3\18f4247ff4572a074444572cee34647c43e7c9c7\httpclient-4.3.3.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.1.3\f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f\commons-logging-1.1.3.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.3.2\31fbbff1ddbf98f3aa7377c94d33b0447c646b6e\httpcore-4.3.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.0-beta9\1dd66e68cccd907880229f9e2de1314bd13ff785\log4j-api-2.0-beta9.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\2.0-beta9\678861ba1b2e1fccb594bb0ca03114bb05da9695\log4j-core-2.0-beta9.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.minecraft\launchwrapper\1.12\111e7bea9c968cdb3d06ef4632bf7ff0824d0f36\launchwrapper-1.12.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\jline\jline\2.13\2d9530d0a25daffaffda7c35037b046b627bb171\jline-2.13.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-debug-all\5.0.3\f9e364ae2a66ce2a543012a4668856e84e5dab74\asm-debug-all-5.0.3.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.typesafe.akka\akka-actor_2.11\2.3.3\ed62e9fc709ca0f2ff1a3220daa8b70a2870078e\akka-actor_2.11-2.3.3.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.typesafe\config\1.2.1\f771f71fdae3df231bcd54d5ca2d57f0bf93f467\config-1.2.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors-migration_2.11\1.1.0\dfa8bc42b181d5b9f1a5dd147f8ae308b893eb6f\scala-actors-migration_2.11-1.1.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-compiler\2.11.1\56ea2e6c025e0821f28d73ca271218b8dd04926a\scala-compiler-2.11.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-library_2.11\1.0.2\e517c53a7e9acd6b1668c5a35eccbaa3bab9aac\scala-continuations-library_2.11-1.0.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-plugin_2.11.1\1.0.2\f361a3283452c57fa30c1ee69448995de23c60f7\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-library\2.11.1\e11da23da3eabab9f4777b9220e60d44c1aab6a\scala-library-2.11.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-parser-combinators_2.11\1.0.1\f05d7345bf5a58924f2837c6c1f4d73a938e1ff0\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-reflect\2.11.1\6580347e61cc7f8e802941e7fde40fa83b8badeb\scala-reflect-2.11.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-swing_2.11\1.0.1\b1cdd92bd47b1e1837139c1c53020e86bb9112ae\scala-swing_2.11-1.0.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-xml_2.11\1.0.2\820fbca7e524b530fdadc594c39d49a21ea0337e\scala-xml_2.11-1.0.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\lzma\lzma\0.0.1\521616dc7487b42bef0e803bd2fa3faf668101d7\lzma-0.0.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.sf.trove4j\trove4j\3.0.3\42ccaf4761f0dfdfa805c9e340d99a755907e2dd\trove4j-3.0.3.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.paulscode\codecjorbis\20101023\c73b5636faf089d9f00e8732a829577de25237ee\codecjorbis-20101023.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.paulscode\codecwav\20101023\12f031cfe88fef5c1dd36c563c0a3a69bd7261da\codecwav-20101023.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.paulscode\libraryjavasound\20101123\5c5e304366f75f9eaa2e8cca546a1fb6109348b3\libraryjavasound-20101123.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.paulscode\librarylwjglopenal\20100824\73e80d0794c39665aec3f62eee88ca91676674ef\librarylwjglopenal-20100824.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.paulscode\soundsystem\20120107\419c05fe9be71f792b2d76cfc9b67f1ed0fec7f6\soundsystem-20120107.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput\2.0.5\39c7796b469a600f72380316f6b1f11db6c2c7c4\jinput-2.0.5.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl\2.9.4-nightly-20150209\697517568c68e78ae0b4544145af031c81082dfe\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl_util\2.9.4-nightly-20150209\d51a7c040a721d13efdfbd34f8b257b2df882ad0\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch\6.5\320a2dfd18513a5f41b4e75729df684488cbd925\twitch-6.5.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\java3d\vecmath\1.5.2\79846ba34cbd89e2422d74d53752f993dcc2ccaf\vecmath-1.5.2.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.fusesource.jansi\jansi\1.11\655c643309c2f45a56a747fda70e3fadf57e9f11\jansi-1.11.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors\2.11.0\8ccfb6541de179bb1c4d45cf414acee069b7f78b\scala-actors-2.11.0.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\7ff832a6eb9ab6a767f1ade2b548092d0fa64795\jinput-platform-2.0.5-natives-linux.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\385ee093e01f587f30ee1c8a2ee7d408fd732e16\jinput-platform-2.0.5-natives-windows.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\53f9c919f34d2ca9de8c51fc4e1e8282029a9232\jinput-platform-2.0.5-natives-osx.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch-platform\6.5\206c4ccaecdbcfd2a1631150c69a97bbc9c20c11\twitch-platform-6.5-natives-windows-32.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch-platform\6.5\9fdd0fd5aed0817063dcf95b69349a171f447ebd\twitch-platform-6.5-natives-windows-64.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch-platform\6.5\5f9d1ee26257b3a33f0ca06fed335ef462af659f\twitch-platform-6.5-natives-osx.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch-external-platform\4.5\18215140f010c05b9f86ef6f0f8871954d2ccebf\twitch-external-platform-4.5-natives-windows-32.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\tv.twitch\twitch-external-platform\4.5\c3cde57891b935d41b6680a9c5e1502eeab76d86\twitch-external-platform-4.5-natives-windows-64.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\2.0.1\516c03b21d50a644d538de0f0369c620989cd8f0\jsr305-2.0.1.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\b84d5102b9dbfabfeb5e43c7e2828d98a7fc80e0\lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\931074f46c795d2f7b30ed6395df5715cfd7675b\lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\bcab850f8f487c3f4c4dbabde778bb82bd1a40ed\lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar;C:\Users\ph1823 - Minecraft\.gradle\caches\minecraft\net\minecraftforge\forge\1.8.9-11.15.1.1722\start;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain GradleStart 2016-11-29 22:25:15,469 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-11-29 22:25:15,470 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [22:25:16] [main/INFO] [GradleStart]: Extra: [] [22:25:16] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/ph1823 - Minecraft/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [22:25:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [22:25:16] [main/INFO] [FML]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading [22:25:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_101, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_101\jre [22:25:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [22:25:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [22:25:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [22:25:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [22:25:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:25:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:25:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [22:25:19] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [22:25:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:25:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [22:25:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [22:25:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [22:25:20] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-11-29 22:25:21,300 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-11-29 22:25:21,329 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-11-29 22:25:21,331 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [22:25:22] [Client thread/INFO]: Setting user: Player555 [22:25:26] [Client thread/INFO]: LWJGL Version: 2.9.4 [22:25:38] [Client thread/WARN] [FML]: ============================================================= [22:25:38] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [22:25:38] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V [22:25:38] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [22:25:38] [Client thread/WARN] [FML]: ============================================================= [22:25:40] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: –-- Minecraft Crash Report ---- // Oh - I know what I did wrong! Time: 29/11/16 22:25 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 105162832 bytes (100 MB) / 453509120 bytes (432 MB) up to 1897922560 bytes (1810 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.09' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' [22:25:41] [Client thread/INFO] [FML]: MinecraftForge v11.15.1.1722 Initialized [22:25:41] [Client thread/INFO] [FML]: Replaced 204 ore recipies [22:25:42] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [22:25:42] [Client thread/INFO] [FML]: Searching E:\OLD\Serveur - Minecraft\NewLife\run\mods for mods [22:25:58] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [22:25:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, NewLife] at CLIENT [22:25:58] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, NewLife] at SERVER [22:26:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:NewLife [22:26:00] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [22:26:00] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [22:26:00] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [22:26:00] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [22:26:00] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [22:26:00] [Client thread/WARN] [FML]: **************************************** [22:26:00] [Client thread/WARN] [FML]: * Je start bien [22:26:00] [Client thread/WARN] [FML]: * at fr.ph1823.MyLife.GloryRP.preInit(GloryRP.java:482) [22:26:00] [Client thread/WARN] [FML]: * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [22:26:00] [Client thread/WARN] [FML]: * at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [22:26:00] [Client thread/WARN] [FML]: * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [22:26:00] [Client thread/WARN] [FML]: * at java.lang.reflect.Method.invoke(Method.java:498) [22:26:00] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)… [22:26:00] [Client thread/WARN] [FML]: **************************************** [22:26:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [22:26:01] [Client thread/INFO] [STDOUT]: [fr.ph1823.MyLife.Proxy.CommonProxy:preInit:77]: pre init côté commun [22:26:01] [Client thread/WARN] [FML]: **************************************** [22:26:01] [Client thread/WARN] [FML]: * Je fini bien [22:26:01] [Client thread/WARN] [FML]: * at fr.ph1823.MyLife.GloryRP.preInit(GloryRP.java:616) [22:26:01] [Client thread/WARN] [FML]: * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [22:26:01] [Client thread/WARN] [FML]: * at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [22:26:01] [Client thread/WARN] [FML]: * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [22:26:01] [Client thread/WARN] [FML]: * at java.lang.reflect.Method.invoke(Method.java:498) [22:26:01] [Client thread/WARN] [FML]: * at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560)… [22:26:01] [Client thread/WARN] [FML]: **************************************** [22:26:01] [Client thread/INFO] [FML]: Applying holder lookups [22:26:01] [Client thread/INFO] [FML]: Holder lookups applied [22:26:01] [Client thread/INFO] [FML]: Injecting itemstacks [22:26:01] [Client thread/INFO] [FML]: Itemstack injection complete [22:26:02] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [22:26:04] [Sound Library Loader/INFO]: Starting up SoundSystem… [22:26:04] [Thread-9/INFO]: Initializing LWJGL OpenAL [22:26:04] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [22:26:05] [Thread-9/INFO]: OpenAL initialized. [22:26:05] [Sound Library Loader/INFO]: Sound engine started [22:26:48] [Client thread/INFO] [FML]: Max texture size: 16384 [22:26:48] [Client thread/INFO]: Created: 16x16 textures-atlas [22:26:48] [Client thread/WARN]: Unable to resolve texture due to upward reference: #texture in newlife_road:models/block/yieldsign [22:26:48] [Client thread/WARN]: Unable to resolve texture due to upward reference: #texture in newlife_road:models/block/rightcorner [22:26:48] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: –-- Minecraft Crash Report ---- // Shall we play a game? Time: 29/11/16 22:26 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bakeNormal(ModelLoader.java:556) at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:538) at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:780) at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:152) at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) at net.minecraft.client.Minecraft.startGame(Minecraft.java:515) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bakeNormal(ModelLoader.java:556) at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:538) at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:780) at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:152) at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) at net.minecraft.client.Minecraft.startGame(Minecraft.java:515) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 302283672 bytes (288 MB) / 637009920 bytes (607 MB) up to 1897922560 bytes (1810 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar) UCH Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar) UCH NewLife{Alpha-1.0} [NewLife] (NewLife_main) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.09' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' Launched Version: 1.8.9 LWJGL: 2.9.4 OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 376.09, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No 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) CPU: 4x Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz [22:26:48] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# E:\OLD\Serveur - Minecraft\NewLife\run\.\crash-reports\crash-2016-11-29_22.26.48-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Process finished with exit code -1
:::
Le problème : je n’arrive pas a voir d’ou cela viens, d’abord on voit que ca ne viens pas du PreInitialation car ca mais bien le “Je Start bien” et le “Je fini bien” sauf que quand on passe a l’initiation ca crash, j’ai tenté de désactivé, mais rien a y faire ca crash tout le temps, ici : http://www.mediafire.com/file/qdtt3e0c85fzl11/src.rar le code source du mods (je ne sais pas quelle partie mettre, donc je donne tout le code source, par contre il manque une lib MyEconimy.jar il me semle).
Merci de vos réponse ! -
java.lang.NullPointerException: Initializing game at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bakeNormal(ModelLoader.java:556)
A toi de chercher et de comprendre, si tu n’y arrives pas tu nous donnes des retours.
-
Bonjour, je me permet de UP, car malgré mes recherche, je ne trouve pas Je sais que ca dois venir de l’un de mes modèle, mais je les ai vérifié est revérifié, j’ai remarqué que ca crashé entre la “Prè L’initialisation” et le "L’initialisation " sauf que entre c’est deux code, il n’y a rien
Voici le crash report :
:::[16:24:27] [Client thread/INFO] [STDOUT/]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: –-- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 19/12/16 16:24 Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bakeNormal(ModelLoader.java:556) at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:538) at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:780) at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:152) at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) at net.minecraft.client.Minecraft.startGame(Minecraft.java:515) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bakeNormal(ModelLoader.java:556) at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.bake(ModelLoader.java:538) at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.bake(ModelLoader.java:780) at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:152) at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:28) at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:120) at net.minecraft.client.Minecraft.startGame(Minecraft.java:515) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_111, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 372371552 bytes (355 MB) / 814219264 bytes (776 MB) up to 1897922560 bytes (1810 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.19 Powered by Forge 11.15.1.1722 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.1.1722.jar) UCH Forge{11.15.1.1722} [Minecraft Forge] (forgeSrc-1.8.9-11.15.1.1722.jar) UCH NewLife{Alpha-1.0} [NewLife] (NewLife-1.0.jar) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 376.33' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2' Launched Version: 1.8.9 LWJGL: 2.9.4 OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 376.33, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No 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) CPU: 4x Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz [16:24:27] [Client thread/INFO] [STDOUT/]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: #@!@# Game crashed! Crash report saved to: #@!@# E:\OLD\Serveur - Minecraft\NewLife\run\.\crash-reports\crash-2016-12-19_16.24.27-client.txt
:::
Voici le code de la classe main :
:::package fr.ph1823.MyLife; import com.silvaniastudios.cities.core.EventDrops; import com.silvaniastudios.cities.core.FlenixCities_Core; import com.silvaniastudios.cities.core.client.StoreStockInfoRender; import com.silvaniastudios.cities.core.npc.spawner.NPCSpawnerEntity; import com.silvaniastudios.cities.econ.atm.TileEntityATMEntity; import com.silvaniastudios.cities.econ.store.entity.TileEntityAdminShop; import com.silvaniastudios.cities.econ.store.entity.TileEntityFloatingShelves; import com.silvaniastudios.cities.econ.store.entity.TileEntityStockChest; import fr.ph1823.MyLife.Block.road.sign.direction.RightTurnSign; import fr.ph1823.MyLife.Block.road.sign.obligation.StopSign; import fr.ph1823.MyLife.Block.road.sign.obligation.YieldSign; import fr.ph1823.MyLife.Block.road.traffic.TrafficCone; import fr.ph1823.MyLife.Item.armor.*; import fr.ph1823.MyLife.Item.civil.Identity; import fr.ph1823.MyLife.Item.illegal.Joint; import fr.ph1823.MyLife.Item.illegal.TalkieWalkie; import fr.ph1823.MyLife.Item.legal.Bier; import fr.ph1823.MyLife.Item.legal.RedBull; import fr.ph1823.MyLife.Item.police.Search; import fr.ph1823.MyLife.Proxy.ClientProxy; import fr.ph1823.MyLife.command.donne; import fr.ph1823.MyLife.command.name; import fr.ph1823.MyLife.command.pay; import fr.ph1823.MyLife.tab.CustomCreativeTab; import fr.ph1823.MyLife.Block.illegal.BlockCannabis; import fr.ph1823.MyLife.Block.illegal.BlockHoublon; import fr.ph1823.MyLife.Item.legal.Key; import fr.ph1823.MyLife.Item.police.Menotes; import fr.ph1823.MyLife.Proxy.CommonProxy; import fr.ph1823.MyLife.Seed.SeedCannabis; import fr.ph1823.MyLife.Seed.SeedHoublon; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; 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.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.server.MinecraftServer; import net.minecraft.util.ChatComponentText; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiMainMenu; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.client.FMLClientHandler; import net.minecraftforge.fml.client.registry.ClientRegistry; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.FMLLog; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.event.FMLServerStartingEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.server.FMLServerHandler; import org.apache.logging.log4j.LogManager; import com.mojang.authlib.GameProfile; import java.io.File; import java.io.IOException; import java.util.HashMap; import static net.minecraftforge.fml.common.FMLCommonHandler.*; @Mod(modid = GloryRP.MODID, name = GloryRP.NAME, version = GloryRP.VERSION/*, dependencies = "after:FlenixCities"/*;after:Monoblocks;after:MonoblocksMultipart"*/) public class GloryRP { @Mod.Instance("NewLife") public static GloryRP instance; @SidedProxy(clientSide="fr.ph1823.MyLife.Proxy.ClientProxy", serverSide="fr.ph1823.MyLife.Proxy.CommonProxy") public static CommonProxy PROXY; public static ClientProxy proxyClient = new ClientProxy(); public static SimpleNetworkWrapper network; public static CustomCreativeTab plantTab = new CustomCreativeTab("plant_tab"); public static CustomCreativeTab boissonsTab = new CustomCreativeTab("boissons_tab"); // public static CustomCreativeTab tabTennue = new CustomCreativeTab("armor_tab"); public static final String MODID = "NewLife"; public static final String VERSION = "Alpha-1.0"; public static final String NAME = "NewLife"; public static final org.apache.logging.log4j.Logger LOGGER = LogManager.getLogger(NAME); public static Item cannabisItem = new Item(/*2, 2, false*/).setUnlocalizedName("cannabisi").setCreativeTab(plantTab); public static Block houblonPlant = new BlockHoublon(Material.plants); public static Block cannabisPlant = new BlockCannabis(Material.plants); public static Block RightTurnsign = new RightTurnSign(Material.barrier);///voir atm ou tilentityatm public static Block trafficcone = new TrafficCone(Material.barrier); public static Block stopsign = new StopSign(Material.barrier); public static Block yieldsign = new YieldSign(Material.barrier); public static Item cannabisSeed = new SeedCannabis(); public static Item houblonSeed = new SeedHoublon(); public static Item houblonItem = new Item().setUnlocalizedName("houbloni").setCreativeTab(plantTab); public static Item Oeuf = new ItemFood(2, 2, false).setUnlocalizedName("oeuf").setCreativeTab(plantTab); public static Item MenotesItem = new Menotes(); public static Item KeyItem = new Key(); public static Item Search = new Search(); public static Item Identity = new Identity(); public static Item joints = new Joint(); public static int height = 0; public static int with = 0; public static HashMap <string,string>search = new HashMap<>(); public static int tick = 0; public static int sec = 0; // public static int min = 0; public static final ItemArmor.ArmorMaterial MilitaireMaterial = EnumHelper.addArmorMaterial("MilitaireMaterial","NewLife", 33, new int[]{3, 8, 6, 3}, 10); public static final ItemArmor.ArmorMaterial TaxiMaterial = EnumHelper.addArmorMaterial("TaxiMaterial","NewLife", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial CrsMaterial = EnumHelper.addArmorMaterial("CrsMaterial","NewLife", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial CrsMaterial2 = EnumHelper.addArmorMaterial("CrsMaterial2","NewLife", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial PoliceMaterial = EnumHelper.addArmorMaterial("PoliceMaterial","NewLife", 15, new int[]{2, 5, 4, 1}, 12); public static final ItemArmor.ArmorMaterial PompierMaterial = EnumHelper.addArmorMaterial("PompierMaterial","NewLife", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial SamuMaterial = EnumHelper.addArmorMaterial("SamuMaterial","NewLife", 5, new int[]{1, 3, 2, 1}, 15); public static final ItemArmor.ArmorMaterial TerroristeMaterial = EnumHelper.addArmorMaterial("TerroristeMaterial","NewLife", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial TerroristeMaterial2 = EnumHelper.addArmorMaterial("TerroristeMaterial2","NewLife", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial GhillieMaterial = EnumHelper.addArmorMaterial("GhillieMaterial","NewLife", 15, new int[]{2, 6, 5, 2}, 9); public static final ItemArmor.ArmorMaterial GipnMaterial = EnumHelper.addArmorMaterial("GipnMaterial","NewLife", 33, new int[]{3, 8, 6, 3}, 10); public static final ItemArmor.ArmorMaterial plongeeMaterial = EnumHelper.addArmorMaterial("","NewLife", 5, new int[]{1, 3, 2, 1}, 10); public static final ItemArmor.ArmorMaterial MasqueMaterial = EnumHelper.addArmorMaterial("","NewLife", 15, new int[]{2, 0, 0, 0}, 0); public static HashMap <entityplayer,integer>tick1 = new HashMap<>(); public static HashMap <entityplayer,boolean>dro = new HashMap<>(); public static Item chope = new Item().setUnlocalizedName("chope").setCreativeTab(boissonsTab); public static Item canette = new Item().setUnlocalizedName("canette").setCreativeTab(boissonsTab); public static Item biere = new Bier(1, 2, false); public static Item redbull = new RedBull(1, 2, false); public static Item talkie = new TalkieWalkie(); public static Item police = new Item().setCreativeTab(plantTab).setUnlocalizedName("police"); /* public static Item GhillieBoots = new IGhillieMaterial(GhillieMaterial, 0, 3).setUnlocalizedName("GhillieBoots").setCreativeTab(tabTennue); public static Item GhillieChestplate = new IGhillieMaterial(GhillieMaterial, 0, 1).setUnlocalizedName("GhillieChestplate").setCreativeTab(tabTennue); public static Item GhillieHelmet = new IGhillieMaterial(GhillieMaterial, 0, 0).setUnlocalizedName("GhillieHelmet").setCreativeTab(tabTennue); public static Item GhillieLeggings = new IGhillieMaterial(GhillieMaterial, 0, 2).setUnlocalizedName("GhillieLeggings").setCreativeTab(tabTennue); public static Item Gipnboots = new IGipnMaterial(GipnMaterial, 0, 3).setUnlocalizedName("Gipnboots").setCreativeTab(tabTennue); public static Item Gipnchestplate = new IGipnMaterial(GipnMaterial, 0, 1).setUnlocalizedName("Gipnchestplate").setCreativeTab(tabTennue); public static Item Gipnhelmet = new IGipnMaterial(GipnMaterial, 0, 0).setUnlocalizedName("Gipnhelmet").setCreativeTab(tabTennue); public static Item Gipnleggings = new IGipnMaterial(GipnMaterial, 0, 2).setUnlocalizedName("Gipnleggings").setCreativeTab(tabTennue); public static Item HelmetMilitaire = new IMilitaireMaterial(MilitaireMaterial, 0, 0).setUnlocalizedName("HelmetMilitaire").setCreativeTab(tabTennue); public static Item Helmetcrs = new ICRSMaterial(CrsMaterial, 0, 0).setUnlocalizedName("Helmetcrs").setCreativeTab(tabTennue); public static Item Helmetcrs2 = new ICRSMaterial2(CrsMaterial2, 0, 0).setUnlocalizedName("Helmetcrs2").setCreativeTab(tabTennue); // Joint = (new Joint(0, 0.0F, false)).setUnlocalizedName("Joint").setTextureName("newlife:Joint").setCreativeTab(tabAltisMinePlante); public static Item LeggingsMilitaire = new IMilitaireMaterial(MilitaireMaterial, 0, 2).setUnlocalizedName("LeggingsMilitaire").setCreativeTab(tabTennue); public static Item LeggingsT = new ITerroristeMaterial(TerroristeMaterial, 0, 2).setUnlocalizedName("LeggingsT").setCreativeTab(tabTennue); public static Item LeggingsT2 = new ITerroristeMaterial2(TerroristeMaterial2, 0, 2).setUnlocalizedName("LeggingsT2").setCreativeTab(tabTennue); public static Item Leggingscrs = new ICRSMaterial(CrsMaterial, 0, 2).setUnlocalizedName("Leggingscrs").setCreativeTab(tabTennue); public static Item LeggingsTaxi = new ITaxiMaterial(TaxiMaterial, 0, 2).setUnlocalizedName("LeggingsTaxi").setCreativeTab(tabTennue); public static Item Leggingscrs2 = new ICRSMaterial2(CrsMaterial2, 0, 2).setUnlocalizedName("Leggingscrs2").setCreativeTab(tabTennue); public static Item Leggingspolice = new IPoliceArmor(PompierMaterial, 0, 2).setUnlocalizedName("Leggingspolice").setCreativeTab(tabTennue); public static Item LeggingsPompier = new IPompierMaterial(PompierMaterial, 0, 2).setUnlocalizedName("LeggingsPompier").setCreativeTab(tabTennue); public static Item Leggingssamu = new ISamuArmor(SamuMaterial, 0, 2).setUnlocalizedName("Leggingssamu").setCreativeTab(tabTennue); public static Item CheeseBurger = (new ItemFood(20, 0.8F, true)).setUnlocalizedName("CheeseBurger").setCreativeTab(boissonsTab); public static Item BootsMilitaire = new IMilitaireMaterial(MilitaireMaterial, 0, 3).setUnlocalizedName("BootsMilitaire").setCreativeTab(tabTennue); public static Item BootsTaxi = new ITaxiMaterial(TaxiMaterial, 0, 3).setUnlocalizedName("BootsTaxi").setCreativeTab(tabTennue); public static Item Bootscrs = new ICRSMaterial(CrsMaterial, 0, 3).setUnlocalizedName("Bootscrs").setCreativeTab(tabTennue); public static Item Bootscrs2 = new ICRSMaterial2(CrsMaterial2, 0, 3).setUnlocalizedName("Bootscrs2").setCreativeTab(tabTennue); public static Item Bootspolice = new IPoliceArmor(PoliceMaterial, 0, 3).setUnlocalizedName("Bootspolice").setCreativeTab(tabTennue); public static Item Bootspompier = new IPompierMaterial(PompierMaterial, 0, 3).setUnlocalizedName("Bootspompier").setCreativeTab(tabTennue); public static Item Bootssamu = new ISamuArmor(SamuMaterial, 0, 3).setUnlocalizedName("Bootssamu").setCreativeTab(tabTennue); public static Item Cagoule = new ITerroristeMaterial(TerroristeMaterial, 0, 0).setUnlocalizedName("Cagoule").setCreativeTab(tabTennue); public static Item Cagoule2 = new ITerroristeMaterial2(TerroristeMaterial2, 0, 0).setUnlocalizedName("Cagoule2").setCreativeTab(tabTennue); // public static Item ChestplateB = new ITerroristeMaterial2(TerroristeMaterial2, 0, 1).setUnlocalizedName("Gilet par Balle Bleu").setTextureName("newlife:Chestplatebleubyball").setCreativeTab(tabTennue); public static Item ChestplateMilitaire = new IMilitaireMaterial(MilitaireMaterial, 0, 1).setUnlocalizedName("ChestplateMilitaire").setCreativeTab(tabTennue); public static Item ChestplateN = new ITerroristeMaterial(TerroristeMaterial, 0, 1).setUnlocalizedName("ChestplateN").setCreativeTab(tabTennue); public static Item ChestplateTaxi = new ITaxiMaterial(TaxiMaterial, 0, 1).setUnlocalizedName("ChestplateTaxi").setCreativeTab(tabTennue); public static Item Chestplatecrs = new ICRSMaterial(CrsMaterial, 0, 1).setUnlocalizedName("Chestplatecrs").setCreativeTab(tabTennue); public static Item Chestplatecrs2 = new ICRSMaterial(CrsMaterial, 0, 1).setUnlocalizedName("Chestplatecrs2").setCreativeTab(tabTennue); public static Item Chestplatepolice = new IPoliceArmor(PoliceMaterial, 0, 1).setUnlocalizedName("Chestplatepolice").setCreativeTab(tabTennue); public static Item Chestplatepompier = new IPompierMaterial(PompierMaterial, 0, 1).setUnlocalizedName("Chestplatepompier").setCreativeTab(tabTennue); public static Item Chestplatesamu = new ISamuArmor(SamuMaterial, 0, 1).setUnlocalizedName("Chestplatesamu").setCreativeTab(tabTennue); //public static Item Cigarrette = (new Cigarrette()).setUnlocalizedName("Cigarrette").setTextureName("newlife:Cigarrette").setCreativeTab(); //public static Item Cigarre = (new Cigarre(0, 0.0F, false)).setUnlocalizedName("Cigarre").setTextureName("newlife:Cigarre").setCreativeTab(); //public static Item Cocaine = (new Cocaine(0, 0.0F, false)).setUnlocalizedName("Cocaine").setTextureName("newlife:Cocaine").setCreativeTab(); // public static Item Kebab = new ItemFood(20, 0.8F, true).setTextureName("plant:kebab").setUnlocalizedName("Kebab").func_77637_a(); */ @SideOnly(Side.CLIENT) public void registerRender() { proxyClient.registerBlockTexture(cannabisPlant, "cannabisb"); proxyClient.registerItemTexture(cannabisSeed, "cannabis_seed"); proxyClient.registerBlockTexture(RightTurnsign, "rightcorner"); proxyClient.registerBlockTexture(stopsign, "stopsign"); proxyClient.registerBlockTexture(yieldsign, "yieldsign"); proxyClient.registerBlockTexture(trafficcone, "trafficcone"); FMLLog.bigWarning("Lel"); } @SideOnly(Side.CLIENT) public static void registerItemsModels() { plantTab.setLogo(cannabisItem); boissonsTab.setLogo(biere); //tabTennue.setLogo(Cagoule); ModelLoader.setCustomModelResourceLocation(cannabisItem, 0, new ModelResourceLocation("newlife:cannabisi", "inventory")); ModelLoader.setCustomModelResourceLocation(houblonItem, 0, new ModelResourceLocation("newlife:houbloni", "inventory")); ModelLoader.setCustomModelResourceLocation(cannabisSeed, 0, new ModelResourceLocation("newlife:cannabis_seed", "inventory")); ModelLoader.setCustomModelResourceLocation(houblonSeed, 0, new ModelResourceLocation("newlife:houblon_seed", "inventory")); /* BOISSONS */ ModelLoader.setCustomModelResourceLocation(redbull, 0, new ModelResourceLocation("boissons:redbull", "inventory")); ModelLoader.setCustomModelResourceLocation(chope, 0, new ModelResourceLocation("boissons:chope", "inventory")); ModelLoader.setCustomModelResourceLocation(canette, 0, new ModelResourceLocation("boissons:canette", "inventory")); ModelLoader.setCustomModelResourceLocation(biere, 0, new ModelResourceLocation("boissons:biere", "inventory")); /* ModelLoader.setCustomModelResourceLocation(, 0, new ModelResourceLocation("boissons:", "inventory")); ModelLoader.setCustomModelResourceLocation(, 0, new ModelResourceLocation("boissons:", "inventory")); ModelLoader.setCustomModelResourceLocation(, 0, new ModelResourceLocation("boissons:", "inventory")); ModelLoader.setCustomModelResourceLocation(, 0, new ModelResourceLocation("boissons:", "inventory")); ModelLoader.setCustomModelResourceLocation(, 0, new ModelResourceLocation("boissons:", "inventory"));*/ ModelLoader.setCustomModelResourceLocation(joints, 0, new ModelResourceLocation("newlife:joint", "inventory")); ModelLoader.setCustomModelResourceLocation(talkie, 0, new ModelResourceLocation("newlife:talkie", "inventory")); ModelLoader.setCustomModelResourceLocation(Oeuf , 0, new ModelResourceLocation("newlife:Oeuf", "inventory")); ModelLoader.setCustomModelResourceLocation(MenotesItem, 0, new ModelResourceLocation("newlife:menottes", "inventory")); ModelLoader.setCustomModelResourceLocation(KeyItem, 0, new ModelResourceLocation("newlife:key", "inventory")); ModelLoader.setCustomModelResourceLocation(Search, 0, new ModelResourceLocation("newlife:a", "inventory")); // ModelLoader.setCustomModelResourceLocation(Identity, 0, new ModelResourceLocation("", "inventory")); //ModelLoader.setCustomModelResourceLocation(joints, 0, new ModelResourceLocation("", "inventory")); ModelLoader.setCustomModelResourceLocation(police, 0, new ModelResourceLocation("newlife:Police", "inventory")); // ModelLoader.setCustomModelResourceLocation(GhillieBoots, 0, new ModelResourceLocation("newlife:GhillieBootsGreenicon", "inventory")); /* ModelLoader.setCustomModelResourceLocation(GhillieChestplate, 0, new ModelResourceLocation("newlife:GhillieChestplateGreenicon", "inventory")); ModelLoader.setCustomModelResourceLocation(GhillieHelmet, 0, new ModelResourceLocation("newlife:GhillieHelmetGreenicon", "inventory")); ModelLoader.setCustomModelResourceLocation(Gipnboots, 0, new ModelResourceLocation("newlife:BootsGIPN", "inventory")); ModelLoader.setCustomModelResourceLocation(Gipnchestplate, 0, new ModelResourceLocation("newlife:ChestplateGIPN", "inventory")); ModelLoader.setCustomModelResourceLocation(Gipnhelmet, 0, new ModelResourceLocation("newlife:HelmetGIPN", "inventory")); ModelLoader.setCustomModelResourceLocation(HelmetMilitaire, 0, new ModelResourceLocation("newlife:Casque_Militaire", "inventory")); ModelLoader.setCustomModelResourceLocation(Helmetcrs, 0, new ModelResourceLocation("newlife:HelmetCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Helmetcrs2, 0, new ModelResourceLocation("newlife:HelmetCRS2", "inventory")); ModelLoader.setCustomModelResourceLocation(Cagoule,0,new ModelResourceLocation("newlife:Cagoule", "inventory")); ModelLoader.setCustomModelResourceLocation(Cagoule2,0,new ModelResourceLocation("newlife:Cagoule", "inventory")); /* Enregistrement des texutre de pantalon (pour pas qu'il sois cu nu :p) */ /* ModelLoader.setCustomModelResourceLocation(Gipnleggings, 0, new ModelResourceLocation("newlife:LeggingsGIPN", "inventory")); ModelLoader.setCustomModelResourceLocation(GhillieLeggings, 0, new ModelResourceLocation("newlife:GhilliePantsGreenicon", "inventory")); ModelLoader.setCustomModelResourceLocation(LeggingsMilitaire, 0, new ModelResourceLocation("newlife:LegginsMilitaire", "inventory")); ModelLoader.setCustomModelResourceLocation(LeggingsT, 0, new ModelResourceLocation("newlife:LegginsT", "inventory")); ModelLoader.setCustomModelResourceLocation(LeggingsT2, 0, new ModelResourceLocation("newlife:LegginsT", "inventory")); ModelLoader.setCustomModelResourceLocation(Leggingscrs, 0, new ModelResourceLocation("newlife:LeggingsCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(LeggingsTaxi, 0, new ModelResourceLocation("newlife:LegginsTAXI", "inventory")); ModelLoader.setCustomModelResourceLocation(Leggingscrs2, 0, new ModelResourceLocation("newlife:LeggingsCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Leggingspolice, 0, new ModelResourceLocation("newlife:LegginsPolice", "inventory")); ModelLoader.setCustomModelResourceLocation(LeggingsPompier, 0, new ModelResourceLocation("newlife:LegginsPompier", "inventory")); ModelLoader.setCustomModelResourceLocation(Leggingssamu, 0, new ModelResourceLocation("newlife:LegginsSAMU", "inventory")); ModelLoader.setCustomModelResourceLocation(CheeseBurger, 0, new ModelResourceLocation("newlife:CheeseBurger", "inventory")); ModelLoader.setCustomModelResourceLocation(BootsMilitaire, 0, new ModelResourceLocation("newlife:BootsMilitaire", "inventory")); ModelLoader.setCustomModelResourceLocation(BootsTaxi, 0, new ModelResourceLocation("newlife:BootsTAXI", "inventory")); ModelLoader.setCustomModelResourceLocation(Bootscrs, 0, new ModelResourceLocation("newlife:BootsCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Bootscrs2, 0, new ModelResourceLocation("newlife:BootsCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Bootspolice, 0, new ModelResourceLocation("newlife:BootsPolice", "inventory")); ModelLoader.setCustomModelResourceLocation(Bootspompier, 0, new ModelResourceLocation("newlife:BootsPompier", "inventory")); ModelLoader.setCustomModelResourceLocation(Bootssamu, 0, new ModelResourceLocation("newlife:BootsSAMU", "inventory")); ModelLoader.setCustomModelResourceLocation(ChestplateMilitaire, 0, new ModelResourceLocation("newlife:ChestplateMilitaire", "inventory")); ModelLoader.setCustomModelResourceLocation(ChestplateN, 0, new ModelResourceLocation("newlife:Chestplateblackbyball", "inventory")); ModelLoader.setCustomModelResourceLocation(ChestplateTaxi, 0, new ModelResourceLocation("newlife:ChestplateTAXI", "inventory")); ModelLoader.setCustomModelResourceLocation(Chestplatecrs, 0, new ModelResourceLocation("newlife:ChestplateCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Chestplatecrs2, 0, new ModelResourceLocation("newlife:ChestplateCRS", "inventory")); ModelLoader.setCustomModelResourceLocation(Chestplatepolice, 0, new ModelResourceLocation("newlife:ChestplatePolice", "inventory")); ModelLoader.setCustomModelResourceLocation(Chestplatepompier, 0, new ModelResourceLocation("newlife:ChestplatePompier", "inventory")); ModelLoader.setCustomModelResourceLocation(Chestplatesamu, 0, new ModelResourceLocation("newlife:ChestplateSAMU", "inventory")); // ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(cannabisPlant), 0, new ModelResourceLocation("newlife:cannabisb", "inventory")); /* PROXY REGISTER BLOCK */ } @Mod.EventHandler public void init(FMLInitializationEvent event) { FMLLog.bigWarning("LOLOLOL"); FlenixCities_Core.Init(event); instance().bus().register(this); MinecraftForge.EVENT_BUS.register(new EventHandler1()); //PROXY.init(); MinecraftForge.EVENT_BUS.register(new EventDrops()); if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) { MinecraftForge.EVENT_BUS.register(new StoreStockInfoRender(FMLClientHandler.instance().getClient())); } GameRegistry.registerTileEntity(TileEntityATMEntity.class, "newlife:tileEntityATM"); GameRegistry.registerTileEntity(TileEntityFloatingShelves.class, "newlife:tileEntityFloatingShelves"); GameRegistry.registerTileEntity(TileEntityAdminShop.class, "newlife:tileEntityAdminShop"); GameRegistry.registerTileEntity(NPCSpawnerEntity.class, "newlife:npcSpawnerBlock"); GameRegistry.registerTileEntity(TileEntityStockChest.class, "newlife:tileEntityStockChest"); proxyClient.registerRenderThings(); // proxyClient.registerRenderers(); registerRender(); // GameRegistry.registerTileEntity(TileEntityRightCorner.class, "tileEntityRightCorner"); // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRightCorner.class, new TileEntitySpecialRenderCorner()); // proxyClient.registerRender(); } @Mod.EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new pay()); event.registerServerCommand(new name()); event.registerServerCommand(new donne()); } @SubscribeEvent @SideOnly(Side.CLIENT) public void onTick(TickEvent.ClientTickEvent event) { Minecraft mc = FMLClientHandler.instance().getClient(); if(mc.currentScreen != null && mc.currentScreen.getClass().equals(GuiMainMenu.class)) { // mc.displayGuiScreen(new CustomMainMenu()); } } public void LeL(EntityPlayer p) { p.addPotionEffect(new PotionEffect(Potion.confusion.getId(), 20 * 60, 3)); p.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 20 * 60, 3)); dro.remove(p); } @SubscribeEvent @SideOnly(Side.SERVER) public void onServerTick(TickEvent.ServerTickEvent event) throws IOException { MinecraftServer mc1 = FMLServerHandler.instance().getServer(); tick++; if(tick == 20) { tick = 0; sec++; } for (GameProfile g : mc1.getGameProfiles()) { if(sec == 60) { sec = 0; if(search != null & search.size() > 0) { EntityPlayer p = mc1.getEntityWorld().getPlayerEntityByUUID(g.getId()); p.addChatComponentMessage(new ChatComponentText("§cAvis de recherche en cours : \n")); for (int i = search.size(); i >= 0; i–) { p.addChatComponentMessage(new ChatComponentText("Prénom/Nom/Pseudo : " + search.keySet().toArray()* + "\n Description : " + search.values().toArray()*)); } } } EntityPlayer p = mc1.getEntityWorld().getPlayerEntityByUUID(g.getId()); if(dro.get(p) != null) { int i = tick1.get(p); tick1.remove(tick1); tick1.put(p,i+1); if(tick1.get(p) == 20*15) { LeL(p); } } } /* for(GameProfile g : mc1.getGameProfiles()) { EntityPlayer p = mc1.getEntityWorld().getPlayerEntityByUUID(g.getId()); if(p != null && p.getEntityWorld().getWorldInfo().getWorldName().equals("world") && p.getEntityWorld() != null && p.getEntityWorld().getWorldInfo() != null && p.getEntityWorld().getWorldInfo().getWorldName() != null ) { EconUtils e = new EconUtils(); double i = e.getBalance(p); File f = new File("./plugins/GloryRP1/users/" + g.getName() + ".yml"); if(!f.exists()) { f.createNewFile(); } FileConfiguration fc = YamlConfiguration.loadConfiguration(f); fc.set("money", i); try { fc.save(f); } catch (IOException e1) { e1.printStackTrace(); } } }*/ } // @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { FlenixCities_Core.preInit(event); PROXY.preInit(event.getSuggestedConfigurationFile()); GameRegistry.registerBlock(stopsign, "stopsign"); GameRegistry.registerBlock(trafficcone, "trafficcone");//FIRE ARLARM crazyfish model GameRegistry.registerBlock(yieldsign, "yieldsign"); // GameRegistry.registerBlock(, ""); GameRegistry.registerBlock(cannabisPlant, "cannabisb"); GameRegistry.registerBlock(houblonPlant, "houblonb"); GameRegistry.registerBlock(RightTurnsign,"rightcorner"); GameRegistry.registerItem(houblonItem, "houbloni"); GameRegistry.registerItem(houblonSeed, "houblon_seed"); GameRegistry.registerItem(cannabisItem, "cannabisi"); GameRegistry.registerItem(MenotesItem, "menottes"); GameRegistry.registerItem(KeyItem, "key"); GameRegistry.registerItem(cannabisSeed, "cannabis_seed"); GameRegistry.registerItem(Search, "search"); GameRegistry.registerItem(Identity, "identity"); // GameRegistry.registerItem(joints, "joint"); GameRegistry.registerItem(joints, "jointsC"); GameRegistry.registerItem(chope, "chope"); GameRegistry.registerItem(canette, "canette"); GameRegistry.registerItem(biere, "biere"); GameRegistry.registerItem(redbull, "redbull"); GameRegistry.registerItem(talkie, "talkie"); GameRegistry.registerItem(Oeuf, "Oeuf"); GameRegistry.registerItem(police, "police"); /*GameRegistry.registerItem(ChestplateMilitaire, ChestplateMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateN, ChestplateN.getUnlocalizedName().substring(5)); GameRegistry.registerItem(ChestplateTaxi, ChestplateTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatecrs, Chestplatecrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatecrs2, Chestplatecrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatepolice, Chestplatepolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatepompier, Chestplatepompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Chestplatesamu, Chestplatesamu.getUnlocalizedName().substring(5)); /* GameRegistry.registerItem(Cigarrette, Cigarrette.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cigarre, Cigarre.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cocaine, Cocaine.getUnlocalizedName().substring(5));*/ /* GameRegistry.registerItem(GhillieBoots, GhillieBoots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieChestplate, GhillieChestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieHelmet, GhillieHelmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(GhillieLeggings, GhillieLeggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(CheeseBurger, CheeseBurger.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnboots, Gipnboots.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnchestplate, Gipnchestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnhelmet, Gipnhelmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Gipnleggings, Gipnleggings.getUnlocalizedName().substring(5)); GameRegistry.registerItem(HelmetMilitaire, HelmetMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Helmetcrs, Helmetcrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Helmetcrs2, Helmetcrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsMilitaire, LeggingsMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsT, LeggingsT.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsT2, LeggingsT2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingscrs, Leggingscrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsTaxi, LeggingsTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingscrs2, Leggingscrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingspolice, Leggingspolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(LeggingsPompier, LeggingsPompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Leggingssamu, Leggingssamu.getUnlocalizedName().substring(5)); GameRegistry.registerItem(BootsTaxi, BootsTaxi.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootscrs, Bootscrs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootscrs2, Bootscrs2.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootspolice, Bootspolice.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootspompier, Bootspompier.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Bootssamu, Bootssamu.getUnlocalizedName().substring(5)); GameRegistry.registerItem(BootsMilitaire, BootsMilitaire.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cagoule, Cagoule.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Cagoule2, Cagoule2.getUnlocalizedName().substring(5)); /TODO TODO FloorBlock WoolWood/stone TileEntitySpecialRenderer ItemATMBlock BlockWalkway BlockWalkwayStairs BlockMlti TODO voir -> ItemBlockPosterVertical & getSubBlocks */ registerItemsModels(); GameRegistry.addRecipe(new ItemStack(chope), "A", "A", "A", 'A', Blocks.glass); GameRegistry.addRecipe(new ItemStack(canette), "A", "A", 'A', Blocks.glass); GameRegistry.addRecipe(new ItemStack(biere), " A ", " B ", " A " , 'A', houblonItem,'B', chope); GameRegistry.addRecipe(new ItemStack(redbull), " R ", " W ", " A ", 'W', Items.water_bucket, 'A', canette, 'R', Items.redstone); GameRegistry.addRecipe(new ItemStack(joints), " P ", " C ", " P ", 'P', Items.paper, 'C', cannabisItem); /* GameRegistry.addRecipe(new ItemStack(talkie), "CS ", " ", " ", 'C', CoreItems.cpu,'S', MBlocks.Stereo); NetworkRegistry.INSTANCE.registerGuiHandler(instance, PROXY); GameRegistry.addRecipe(new ItemStack(talkie), " ", "CS ", " ", 'C', CoreItems.cpu,'S', MBlocks.Stereo); NetworkRegistry.INSTANCE.registerGuiHandler(instance, PROXY); GameRegistry.addRecipe(new ItemStack(talkie), " ", " ", "CS ", 'C', CoreItems.cpu,'S', MBlocks.Stereo); NetworkRegistry.INSTANCE.registerGuiHandler(instance, PROXY);*/ } }
:::
et enfin, en complément, le code source : http://www.mediafire.com/file/9dcts7kwjeg31vv/src.rar, je tiens a préciser que depuis la dernière fois, j’ai changé le code source, merci de votre aide !</entityplayer,boolean></entityplayer,integer></string,string>