Résolu Probleme résolu + explication a bush à XP
-
Voila… Bonjour a tous ! Je suit se tuto pour creer le début de mon mod.
http://https://www.youtube.com/watch?v=2jmooB0Jl_cMais j’ai un probleme quand je veux tester si mes item sont bien intégré.
#Voici mes logs se trouvant dans la console d’eclipse :(Voici mes logs se trouvant dans la console d’eclipse[17:48:23] [main/INFO] [GradleStart]: Extra: [username=YukiShu] [17:48:23] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/YukiShu/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, username=YukiShu, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [17:48:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [17:48:23] [main/INFO] [FML]: Forge Mod Loader version 7.99.40.1614 for Minecraft 1.7.10 loading [17:48:23] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_91 [17:48:23] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:48:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [17:48:23] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [17:48:23] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [17:48:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:48:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:48:23] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:48:24] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:48:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:48:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:48:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [17:48:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [17:48:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [17:48:24] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:48:25] [main/INFO]: Setting user: Player729 [17:48:25] [main/INFO] [STDOUT]: [net.minecraft.client.main.Main:main:160]: Completely ignored arguments: [username=YukiShu] [17:48:26] [Client thread/INFO]: LWJGL Version: 2.9.1 [17:48:26] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: –-- Minecraft Crash Report ---- // You're mean. Time: 12/06/16 17:48 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.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 785996480 bytes (749 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.72' Renderer: 'GeForce GTX 770/PCIe/SSE2' [17:48:26] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:48:26] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1614 Initialized [17:48:26] [Client thread/INFO] [FML]: Replaced 183 ore recipies [17:48:26] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:48:26] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [17:48:26] [Client thread/INFO] [FML]: Searching C:\XperiaMod\eclipse\mods for mods [17:48:31] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:48:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, xperiamod] at CLIENT [17:48:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, xperiamod] at SERVER [17:48:31] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Xpéria Mod [17:48:31] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [17:48:31] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [17:48:31] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [17:48:31] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [17:48:31] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:48:31] [Client thread/INFO] [FML]: Applying holder lookups [17:48:31] [Client thread/INFO] [FML]: Holder lookups applied [17:48:31] [Client thread/INFO] [FML]: Injecting itemstacks [17:48:31] [Client thread/INFO] [FML]: Itemstack injection complete [17:48:31] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [17:48:31] [Client thread/ERROR] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) UCE xperiamod{1.0} [Xpéria Mod] (bin) [17:48:31] [Client thread/ERROR] [FML]: The following problems were captured during this phase [17:48:31] [Client thread/ERROR] [FML]: Caught exception from xperiamod java.lang.IllegalArgumentException: The name xperiamod:xperiaMod has been registered twice, for fr.xperiaonline.xperiamod.common.Ingot@677f0c10 and fr.xperiaonline.xperiamod.common.Ingot@50fd1535. at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:410) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at fr.xperiaonline.xperiamod.common.XperiaMod.preInit(XperiaMod.java:41) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [17:48:31] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Oops. Time: 12/06/16 17:48 Description: Initializing game java.lang.IllegalArgumentException: The name xperiamod:xperiaMod has been registered twice, for fr.xperiaonline.xperiamod.common.Ingot@677f0c10 and fr.xperiaonline.xperiamod.common.Ingot@50fd1535. at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:410) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) at fr.xperiaonline.xperiamod.common.XperiaMod.preInit(XperiaMod.java:41) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) at net.minecraft.client.Minecraft.run(Minecraft.java:942) 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(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:410) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:849) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:812) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:149) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) at fr.xperiaonline.xperiamod.common.XperiaMod.preInit(XperiaMod.java:41) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) 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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:942) 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(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_91, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 820381888 bytes (782 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1614 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.05} [Minecraft Coder Pack] (minecraft.jar) UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) UCH Forge{10.13.4.1614} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1614-1.7.10.jar) UCE xperiamod{1.0} [Xpéria Mod] (bin) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.72' Renderer: 'GeForce GTX 770/PCIe/SSE2' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: GeForce GTX 770/PCIe/SSE2 GL version 4.5.0 NVIDIA 364.72, 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) [17:48:31] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\XperiaMod\eclipse\.\crash-reports\crash-2016-06-12_17.48.31-client.txt Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
#Et voici tout mes.java (Et voici tout mes.java )
Ma Class principale(je pense que c’est comme ça qu’on le dit) :
package fr.xperiaonline.xperiamod.common; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; 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; import fr.xperiaonline.xperiamod.proxy.CommonProxy; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; @Mod(modid = "xperiamod", name = "Xpéria Mod", version = "1.0") public class XperiaMod { @Instance("xperiamod") public static XperiaMod instance; @SidedProxy(clientSide = "fr.xperiaonline.xperiamod.proxy.ClientProxy", serverSide = "fr.xperiaonline.xperiamod.proxy.CommonProxy") public static CommonProxy proxy; public static Item rubyIngot, topazIngot, synisiteIngot, jadeIngot, xperiteIngot; @EventHandler public void preInit(FMLPreInitializationEvent event) { rubyIngot = new Ingot().setUnlocalizedName("rubyIngot").setTextureName("xperiamod:ruby_ingot").setCreativeTab(CreativeTabs.tabMaterials); topazIngot = new Ingot().setUnlocalizedName("topazIngot").setTextureName("xperiamod:topaz_ingot").setCreativeTab(CreativeTabs.tabMaterials); synisiteIngot = new Ingot().setUnlocalizedName("synisiteIngot").setTextureName("xperiamod:synisite_ingot").setCreativeTab(CreativeTabs.tabMaterials); jadeIngot = new Ingot().setUnlocalizedName("jadeIngot").setTextureName("xperiamod:jade_ingot").setCreativeTab(CreativeTabs.tabMaterials); xperiteIngot = new Ingot().setUnlocalizedName("xperiteIngot").setTextureName("xperiamod:xperite_ingot").setCreativeTab(CreativeTabs.tabMaterials); GameRegistry.registerItem(rubyIngot, "xperiaMod"); GameRegistry.registerItem(topazIngot, "xperiaMod"); GameRegistry.registerItem(synisiteIngot, "xperiaMod"); GameRegistry.registerItem(jadeIngot, "xperiaMod"); GameRegistry.registerItem(xperiteIngot, "xperiaMod"); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
#Ma Class Ingot.java(Ma Class Ingot.java)
package fr.xperiaonline.xperiamod.common; import net.minecraft.item.Item; public class Ingot extends Item { }
#Et les ClientProxy et CommonProxy sont comme sur la vidéo précédentes (si je ne me trompe pas)(Et les ClientProxy et CommonProxy sont comme sur la vidéo précédentes (si je ne me trompe pas))
Donc j’aimerais bien comprendre se qui ne va pas alors que j’ai vraiment suivie la vidéo scrupuleusement.
Merci de votre aide futur -
Salut,
J’ai déplacé ton post dans la section support pour les moddeurs. J’ai également ajouté la balise code sur les logs et la balise java sur le code java.
La fonction GameRegistry.registerItem(item, nom); à comme deuxième paramètre le nom du bloc dans le registre et non le modid. C’est pour ça que ton jeu crash, le nom du registre doit être unique pour chaque item or comme tu as mit le modid tous tes items ont le même nom de registre.
-
Ici : GameRegistry.registerItem(rubyIngot, “xperiaMod”); il faut mettre le nom de l’item en 2nd argument, pas ton modid ce qui donne
GameRegistry.registerItem(rubyIngot, “rubyIngot”); -
Merci beaucoup j’ai fait cela et ça marche du tonnerre ! Merci beaucoup ! Sinon je compte faire des bush et je sais qu’il y à la fonction :
/**
- Called upon block activation (right click on the block.)
*/
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
{
if(world.isClient)
return false;
else
{
player.entityDropItem(new ItemStack(Items.apple), 1);
return true;
}
}
Mais j’aimerais faire en sorte que l’on puisse faire un clic droit si et seulement si la plante a le stade maximal… J’ai fait des recherche se matin mais je n’ai rien trouvé. Moyen que vous m’aidiez ?
- Called upon block activation (right click on the block.)
-
Il faut que ton bloc ai une propriété age qui augmente de temps en temps, et lorsqu’elle est à la valeur voulue, si il fait clique droit tu drop l’item et tu remet la valeur à 0. Regarde la classe BlockBush. Je viens de me ssouvenir que tu es en 1.7 donc utilise les metadatas à la place de la propriété
-
Moyen que tu m’explique le code ? Je suis clairement débutant et forcer de coder parce que mon javadev a laisser tomber mon serveur Donc voila quoi… c’est pas la joie déjà je suis plutôt content d’avoir réussi a faire les nouveau items
-
Regarde le tuto sur faire un bloc avec plusieurs metadatas, crée un bloc avec 7 metadatas par exemple on verra après
-
Pas de soucis ! Je te recontacte une fois cela fait ! merci
-
Bon me revoilà J’ai pas travailler sur les metadata encore je suis au armures Le problème c’est que j’ai fait ma première armure mais après pour ajouter ma seconde tout va mal. Robin (je suppose) dans son tuto n’a pas expliquer comment en ajouter une nouvelle.
J’ai ajouter les items/leur texture donc c’est bon. Mais par contre le rendu de l’armure sur le joueur je ne sais pas ou le mettre pour ma seconde armure.
Edit :
C’est bon j’ai trouvé en faite c’était logique haha !
J’ai recréé une Class pour chaque render d’amure comme ça je suis sur que sa marche sans me prendre la tète ( a moins que c’était comme comme ça qu’il fallais faire :D) -
Tu peux faire comme ça mais (j’en suis plus sur fais longtemps que j’ai pas codé des armures) tu peux aussi switcher de rendu dans la fonction qui return la ResourceLocation en fonction de l’item.
-
je ne code que depuis hier donc switcher etc… c’est du verlan pour moi xD Mais ça va venir j’ai du courage xD
-
Switcher = faire quelque chose en fonction de d’autre chose qui peut varier (j’explique très mal), en gros si tu switch en fonction d’un item :
if(item == quelquechose1) { //faire autrechose1 } else if(item == quelquechose2) { //faire autrechose2 } ``` Etc… Tu peux aussi le faire plus simplement en java avec les nombres : ```java switch(ton nombre) { case 0: //quelquechose1 break; case 1: //quelquechose2 break; default: //quelquechose3 }
-
Ah oki ! Oui ça me parait logique
Sinon j’ai fini mes armure la je m’attaque aux outils + hammer (qui mine 8 block autour du block que l’on viens de casser)
Tu pourrais m’expliquer comment on peux le faire ? -
Alors je te donne quelques indices
Dans la fonction onBlockDestroyed (si je me trompe pas de nom), fais ctrl+space et tape son nom dans eclipse pour avoir tous les arguments, de ton item, tu vas devoir faire un for() dans un for() dans un autre for() (un pour x, un autre pour y, et un autre pour z) qui vont parcourir tous les blocks autour de celui cassé et faire world.setBlockToAir à ces positions. Si les blocks ne loot pas, dis le moi, je suis plus sur mais il y a peut-être un autre fonction que j’ai quelque part dans mon mod ^^ -
Et voir quelel est la direction dans laquelle mine le joueur pour casser les 8 bons blocs
-
Merci beaucoup ! Donc en gros ça ?
@Override public boolean onBlockDestroyed(ItemStack item, World world, Block block, int x, int y, int z, EntityLivingBase user) { if(!world.isRemote && ForgeHooks.isToolEffective(item, block, world.getBlockMetadata(x, y, z)) && ItemSaw.canAcceptCost(user)) { for(int x1 = -1; x1 <= 1; x1 ++) { for(int y1 = -1; y1 <= 1; y1 ++) { for(int z1 = -1; z1 <= 1; z1 ++) { ForgeDirection FD = getFDFor(user); int blockX = x+x1 + FD.offsetX; int blockY = y+y1 + FD.offsetY; int blockZ = z+z1 + FD.offsetZ; if(!(x1+FD.offsetX == 0 && y1+FD.offsetY == 0 && z1+FD.offsetZ == 0)) { Block newblock = world.getBlock(blockX, blockY, blockZ); int m = world.getBlockMetadata(blockX, blockY, blockZ); if(newblock != null && user instanceof EntityPlayer && ForgeHooks.canHarvestBlock(newblock, (EntityPlayer) user, m) && ForgeHooks.isToolEffective(item, newblock, m)) { if(rand.nextFloat()*100F < (100F - ConfigTools.hvyDropChance)) { newblock.dropBlockAsItem(world, blockX, blockY, blockZ, m, EnchantmentHelper.getFortuneModifier(user)); } world.setBlockToAir(blockX, blockY, blockZ); item.damageItem(1, user); ItemSaw.tirePlayer(user, 1F); } } } } } } return super.onBlockDestroyed(item, world, block, x, y, z, user); }
Pomper sur le net par contre mais je pense comprendre la logique qui se cache derrière le code
-
Je te conseille de faire ton propre code, celui-ci utilise d’autres classes du mod que tu ne possède pas (même si il te serait possible de les récupérer vu que tu as les sources mais ce serai du plagia dans ce cas)
-
Oki j’essayerais je vous le montrerais haha
-
Bon bah je reviens parce que je suis complètement perdu !
package fr.xperiaonline.xperiamod.common; import net.minecraft.item.ItemPickaxe; public class ItemXperiteHammer extends ItemPickaxe { protected ItemXperiteHammer(ToolMaterial material) { super(material); } }
Je ne sais pas du tout ou mettre : [font=monospace ][font=monospacepublic][font=monospace ][font=monospaceboolean][font=monospace ][font=monospaceonBlockDestroyed]font=monospace
-
onBlockDestroyed est une fonction qui appartient à la classe Item, ainsi toutes classe héritants de Item possèdent cette fonction, ce qui est le cas de ta classe ItemXperiteHammer (Item-> ItemTool -> ItemPickaxe -> ItemXperiteHammer) ainsi il te faut réécrire cette fonction dans ta classe :
package fr.xperiaonline.xperiamod.common; import net.minecraft.item.ItemPickaxe; public class ItemXperiteHammer extends ItemPickaxe { public ItemXperiteHammer(ToolMaterial material) { super(material); } public boolean onBlockDestroyed(ItemStack stack, World world, Block block, int x, int y, int z, EntityLivingBase entity) { //Tu met ton code ici, ça va ressembler à un truc avec 2 boucles et un gestion de la direction return false; } }