Résolu Création/Génération d'un minerais
-
Bonjour je voudrais s’avoir comment fait pour créer un minerais et le générer dans minecraft
-
Déjà demandé sur le forum, chercher avant de poster et une bonne méthode pour trouver (google aussi et ton ami).
-
-
J’ai une erreur quand je lance le jeux
[19:42:57] [main/INFO] [GradleStart]: Extra: [] [19:42:57] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, C:/Users/Alexandre/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [19:42:57] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [19:42:57] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [19:42:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [19:42:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [19:42:58] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading [19:42:58] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_79, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre7 [19:42:58] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [19:42:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [19:42:58] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [19:42:58] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [19:42:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:42:58] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [19:42:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:42:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:42:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [19:42:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [19:42:58] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [19:43:05] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [19:43:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [19:43:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [19:43:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:43:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [19:43:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [19:43:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:43:11] [main/INFO]: Setting user: Player671 [19:43:15] [Client thread/INFO]: LWJGL Version: 2.9.1 [19:43:17] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [19:43:17] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized [19:43:17] [Client thread/INFO] [FML]: Replaced 183 ore recipies [19:43:17] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [19:43:18] [Client thread/INFO] [FML]: Searching C:\Users\Alexandre\Desktop\Mod Laucheur NovaMine 1.7.10\eclipse\mods for mods [19:43:26] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [19:43:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modnovamine] at CLIENT [19:43:27] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modnovamine] at SERVER [19:43:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod Novamine [19:43:29] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [19:43:29] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [19:43:29] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [19:43:29] [Client thread/INFO] [FML]: Applying holder lookups [19:43:29] [Client thread/INFO] [FML]: Holder lookups applied [19:43:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [19:43:30] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [19:43:31] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [19:43:31] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:43:31] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [19:43:31] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [19:43:31] [Sound Library Loader/INFO]: Sound engine started [19:43:43] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [19:43:44] [Client thread/INFO]: Created: 256x256 textures/items-atlas [19:43:44] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue [19:43:44] [Client thread/ERROR] [FML]: mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized modnovamine{1.0.0} [Mod Novamine] (bin) Unloaded->Constructed->Pre-initialized->Errored [19:43:44] [Client thread/ERROR] [FML]: The following problems were captured during this phase [19:43:44] [Client thread/ERROR] [FML]: Caught exception from modnovamine java.lang.NullPointerException: Can't add null-object to the registry, name modnovamine:itemSaphir. at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:357) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:163) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] 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:208) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1291.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] 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:118) [LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [19:43:44] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Why is it breaking :( Time: 17/06/15 19:43 Description: Initializing game java.lang.NullPointerException: Can't add null-object to the registry, name modnovamine:itemSaphir. at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:357) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:163) 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:513) 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:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) at net.minecraft.client.Minecraft.run(Minecraft.java:931) 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:357) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:163) 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:513) 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:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) 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:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:931) 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 8.1 (amd64) version 6.3 Java Version: 1.7.0_79, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 720906440 bytes (687 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.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized modnovamine{1.0.0} [Mod Novamine] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3958, Intel 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) [19:43:44] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Alexandre\Desktop\Mod Laucheur NovaMine 1.7.10\eclipse\.\crash-reports\crash-2015-06-17_19.43.44-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
-
Rien à voir avec la génération, tu essayes d’enregistrer un item null …
java.lang.NullPointerException: Can’t add null-object to the registry, name modnovamine:itemSaphir.Faut suivre correctement les tutoriels …
-
Et on est censés t’aider comment si tu nous donnes pas tes classes ?
-
Voici ma class principal
package fr.minecraftforgefrance.novamine.common; import net.minecraft.block.Block; import net.minecraft.block.BlockGlowstone; import net.minecraft.block.BlockOre; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; 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.minecraftforgefrance.novamine.proxy.CommonProxy; @Mod(modid = "modnovamine", name = "Mod Novamine", version = "1.0.0") public class ModNovamine { public static final String MODID = "modnovamine"; public static final String MODNAME = "Mod Novamine"; public static final String MODVERSION = "1.0.0"; @SidedProxy(clientSide = "fr.minecraftforgefrance.novamine.proxy.ClientProxy", serverSide = "fr.minecraftforgefrance.novamine.proxy.CommonProxy") public static CommonProxy proxy; @Instance("modnovamine") public static ModNovamine instance; WorldGeneration worldgeneration = new WorldGeneration(); public static Item saphir; public static Block saphirOre; public static Item porteItem, porteItemA, porteItemB, porteItemDA, porteItemJ; public static Block porte, porteA, porteB, porteDA, porteJ; public static Item itemObsi, helmetObsi, chestPlateObsi, leggingsObsi, bootsObsi, swordObsi, pickaxeObsi, axeObsi, shovelObsi, hoeObsi; public static Item helmetEmerald, chestPlateEmerald, leggingsEmerald, bootsEmerald, swordEmerald, pickaxeEmerald, axeEmerald, shovelEmerald, hoeEmerald; public static Item itemTitan, helmetTitan, chestPlateTitan, leggingsTitan, bootsTitan, swordTitan, pickaxeTitan, axeTitan, shovelTitan, hoeTitan; public static Item itemRuby, helmetRuby, chestPlateRuby, leggingsRuby, bootsRuby, swordRuby, pickaxeRuby, axeRuby, shovelRuby, hoeRuby; public static Item itemSaphir, helmetSaphir, chestPlateSaphir, leggingsSaphir, bootsSaphir, swordSaphir, pickaxeSaphir, axeSaphir, shovelSaphir, hoeSaphir; public static Item itemTopaze, helmetTopaze, chestPlateTopaze, leggingsTopaze, bootsTopaze, swordTopaze, pickaxeTopaze, axeTopaze, shovelTopaze, hoeTopaze; public static Block invi, invil, Nova, LA, BlockSaphir; public static CreativeTabs Nova1_8 = new Nova1_8("Nova1_8"); public static CreativeTabs BlockNovaMine = new BlockNovaMine("BlockNovaMine"); public static CreativeTabs ItemNovaMine = new ItemNovaMine("ItemNovaMine"); public static CreativeTabs ArmurNovaMine = new ArmurNovaMine("ArmurNovaMine"); public static ArmorMaterial armorObsi = EnumHelper.addArmorMaterial("armorObsi", 50, new int[] {4, 9, 7, 4}, 30); public static ArmorMaterial armorEmerald = EnumHelper.addArmorMaterial("armorEmerald", 60, new int[] {5, 10, 8, 5}, 35); public static ArmorMaterial armorTitan = EnumHelper.addArmorMaterial("armorTitan", 70, new int[] {6, 11, 9, 6}, 40); public static ArmorMaterial armorRuby = EnumHelper.addArmorMaterial("armorRuby", 80, new int[] {7, 12, 10, 7}, 45); public static ArmorMaterial armorSaphir = EnumHelper.addArmorMaterial("armorSaphir", 90, new int[] {8, 13, 11, 8}, 50); public static ArmorMaterial armorTopaze = EnumHelper.addArmorMaterial("armorTopaze", 100, new int[] {9, 14, 12, 9}, 55); public static ToolMaterial toolObsi = EnumHelper.addToolMaterial("toolObsi", 4, 2000, 10.0F, 4.0F, 18); public static ToolMaterial toolEmerald = EnumHelper.addToolMaterial("toolEmerald", 4, 2400, 10.0F, 4.0F, 18); public static ToolMaterial toolTitan = EnumHelper.addToolMaterial("toolTitan", 4, 2800, 10.0F, 4.0F, 18); public static ToolMaterial toolSaphir = EnumHelper.addToolMaterial("toolSaphir", 5, 2400, 10.0F, 5.0F, 19); /** Tool Armor WOOD(0, 59, 2.0F, 0.0F, 15), CLOTH(5, new int[]{1, 3, 2, 1}, 15), STONE(1, 131, 4.0F, 1.0F, 5), CHAIN(15, new int[]{2, 5, 4, 1}, 12), IRON(2, 250, 6.0F, 2.0F, 14), IRON(15, new int[]{2, 6, 5, 2}, 9), EMERALD(3, 1561, 8.0F, 3.0F, 10), GOLD(7, new int[]{2, 5, 3, 1}, 25), DIAMOND(33, new int[]{3, 8, 6, 3}, 10); */ @EventHandler public void preInit(FMLPreInitializationEvent event) { invi = new BlockInvisible(Material.rock).setBlockName("invi").setBlockTextureName(MODID + ":invi").setCreativeTab(BlockNovaMine).setBlockUnbreakable(); invil = new BlockInvisible(Material.rock).setBlockName("invil").setBlockTextureName(MODID + ":invi").setCreativeTab(BlockNovaMine).setLightLevel(1.0F).setBlockUnbreakable(); Nova = new BlockOre().setHardness(3.0F).setResistance(5.0F).setBlockName("oreIron").setBlockTextureName("iron_ore").setCreativeTab(BlockNovaMine).setStepSound(Block.soundTypeStone); LA = new BlockGlowstone(Material.glass).setHardness(0.3F).setStepSound(Block.soundTypeGlass).setLightLevel(1.0F).setBlockName("LA").setBlockTextureName(MODID + ":la").setCreativeTab(Nova1_8); helmetEmerald = new ItemEmeraldArmor(armorEmerald, 0).setUnlocalizedName("helmetEmerald").setTextureName(MODID + ":Emerald_helmet").setCreativeTab(ArmurNovaMine); chestPlateEmerald = new ItemEmeraldArmor(armorEmerald, 1).setUnlocalizedName("chestPlateEmerald").setTextureName(MODID + ":Emerald_chestplate").setCreativeTab(ArmurNovaMine); leggingsEmerald = new ItemEmeraldArmor(armorEmerald, 2).setUnlocalizedName("leggingsEmerald").setTextureName(MODID + ":Emerald_leggings").setCreativeTab(ArmurNovaMine); bootsEmerald = new ItemEmeraldArmor(armorEmerald, 3).setUnlocalizedName("bootsEmerald").setTextureName(MODID + ":Emerald_boots").setCreativeTab(ArmurNovaMine); swordEmerald = new ItemEmeraldSword(toolEmerald).setUnlocalizedName("swordEmerald").setTextureName(MODID + ":Emerald_sword").setCreativeTab(ItemNovaMine); pickaxeEmerald = new ItemEmeraldPickaxe(toolEmerald).setUnlocalizedName("pickaxeEmerald").setTextureName(MODID + ":Emerald_pickaxe").setCreativeTab(ItemNovaMine); axeEmerald = new ItemEmeraldAxe(toolEmerald).setUnlocalizedName("axeEmerald").setTextureName(MODID + ":Emerald_hatchet").setCreativeTab(ItemNovaMine); shovelEmerald = new ItemEmeraldShovel(toolEmerald).setUnlocalizedName("shovelEmerald").setTextureName(MODID + ":Emerald_shovel").setCreativeTab(ItemNovaMine); hoeEmerald = new ItemEmeraldHoe(toolEmerald).setUnlocalizedName("hoeEmerald").setTextureName(MODID + ":Emerald_hoe").setCreativeTab(ItemNovaMine); helmetSaphir = new ItemSaphirArmor(armorSaphir, 0).setUnlocalizedName("Saphir_helmet").setTextureName(MODID + ":Saphir_helmet").setCreativeTab(ArmurNovaMine); chestPlateSaphir = new ItemSaphirArmor(armorSaphir, 1).setUnlocalizedName("Saphir_chestplate").setTextureName(MODID + ":Saphir_chestplate").setCreativeTab(ArmurNovaMine); leggingsSaphir = new ItemSaphirArmor(armorSaphir, 2).setUnlocalizedName("Saphir_leggings").setTextureName(MODID + ":Saphir_leggings").setCreativeTab(ArmurNovaMine); bootsSaphir = new ItemSaphirArmor(armorSaphir, 3).setUnlocalizedName("Saphir_boots").setTextureName(MODID + ":Saphir_boots").setCreativeTab(ArmurNovaMine); swordSaphir = new ItemSaphirSword(toolSaphir).setUnlocalizedName("Saphir_sword").setTextureName(MODID + ":Saphir_sword").setCreativeTab(ItemNovaMine); pickaxeSaphir = new ItemSaphirPickaxe(toolSaphir).setUnlocalizedName("Saphir_pickaxe").setTextureName(MODID + ":Saphir_pickaxe").setCreativeTab(ItemNovaMine); axeSaphir = new ItemSaphirAxe(toolSaphir).setUnlocalizedName("Saphir_axe").setTextureName(MODID + ":Saphir_axe").setCreativeTab(ItemNovaMine); shovelSaphir = new ItemSaphirShovel(toolSaphir).setUnlocalizedName("Saphir_shovel").setTextureName(MODID + ":Saphir_shovel").setCreativeTab(ItemNovaMine); hoeSaphir = new ItemSaphirHoe(toolSaphir).setUnlocalizedName("Saphir_hoe").setTextureName(MODID + ":Saphir_hoe").setCreativeTab(ItemNovaMine); BlockSaphir = new BlockSaphir (Material.rock).setBlockName("BlockSaphir").setBlockTextureName(MODID + ":Saphir_block").setCreativeTab(BlockNovaMine).setResistance(5.0F); porte = new Porte().setBlockName("Sporte").setBlockTextureName(MODID + ":spruce"); porteItem = new ItemPorte().setUnlocalizedName("ItemSporte").setTextureName(MODID + ":spruce").setCreativeTab(Nova1_8); porteA = new PorteA().setBlockName("Aporte").setBlockTextureName(MODID + ":acacia"); porteItemA = new ItemPorteA().setUnlocalizedName("ItemAporte").setTextureName(MODID + ":acacia").setCreativeTab(Nova1_8); porteB = new PorteB().setBlockName("Bporte").setBlockTextureName(MODID + ":birch"); porteItemB = new ItemPorteB().setUnlocalizedName("ItemBporte").setTextureName(MODID + ":birch").setCreativeTab(Nova1_8); porteDA = new PorteDA().setBlockName("DAporte").setBlockTextureName(MODID + ":dark_oak"); porteItemDA = new ItemPorteDA().setUnlocalizedName("ItemDAporte").setTextureName(MODID + ":dark_oak").setCreativeTab(Nova1_8); porteJ = new PorteJ().setBlockName("Jporte").setBlockTextureName(MODID + ":jungle"); porteItemJ = new porteItemJ().setUnlocalizedName("ItemJporte").setTextureName(MODID + ":jungle").setCreativeTab(Nova1_8); itemObsi = new Item().setUnlocalizedName("Obsi").setCreativeTab(ItemNovaMine).setTextureName(MODID + ":obsidian_ingot"); helmetObsi = new ItemObsiArmor(armorObsi, 0).setUnlocalizedName("Obsi_helmet").setTextureName(MODID + ":obsidian_helmet").setCreativeTab(ArmurNovaMine); chestPlateObsi = new ItemObsiArmor(armorObsi, 1).setUnlocalizedName("Obsi_chestplate").setTextureName(MODID + ":obsidian_chestplate").setCreativeTab(ArmurNovaMine); leggingsObsi = new ItemObsiArmor(armorObsi, 2).setUnlocalizedName("Obsi_leggings").setTextureName(MODID + ":obsidian_leggings").setCreativeTab(ArmurNovaMine); bootsObsi = new ItemObsiArmor(armorObsi, 3).setUnlocalizedName("Obsi_boots").setTextureName(MODID + ":obsidian_boots").setCreativeTab(ArmurNovaMine); swordObsi = new ItemObsiSword(toolObsi).setUnlocalizedName("Obsi_sword").setTextureName(MODID + ":obsidian_sword").setCreativeTab(ItemNovaMine); pickaxeObsi = new ItemObsiPickaxe(toolObsi).setUnlocalizedName("Obsi_pickaxe").setTextureName(MODID + ":obsidian_pickaxe").setCreativeTab(ItemNovaMine); axeObsi = new ItemObsiAxe(toolObsi).setUnlocalizedName("Obsi_axe").setTextureName(MODID + ":obsidian_axe").setCreativeTab(ItemNovaMine); shovelObsi = new ItemObsiShovel(toolObsi).setUnlocalizedName("Obsi_shovel").setTextureName(MODID + ":obsidian_shovel").setCreativeTab(ItemNovaMine); hoeObsi = new ItemObsiHoe(toolObsi).setUnlocalizedName("Obsi_hoe").setTextureName(MODID + ":obsidian_hoe").setCreativeTab(ItemNovaMine); itemTitan = new Item().setUnlocalizedName("Titan").setCreativeTab(ItemNovaMine).setTextureName(MODID + ":Titandian_ingot"); helmetTitan = new ItemTitanArmor(armorTitan, 0).setUnlocalizedName("Titan_helmet").setTextureName(MODID + ":Titandian_helmet").setCreativeTab(ArmurNovaMine); chestPlateTitan = new ItemTitanArmor(armorTitan, 1).setUnlocalizedName("Titan_chestplate").setTextureName(MODID + ":Titandian_chestplate").setCreativeTab(ArmurNovaMine); leggingsTitan = new ItemTitanArmor(armorTitan, 2).setUnlocalizedName("Titan_leggings").setTextureName(MODID + ":Titandian_leggings").setCreativeTab(ArmurNovaMine); bootsTitan = new ItemTitanArmor(armorTitan, 3).setUnlocalizedName("Titan_boots").setTextureName(MODID + ":Titandian_boots").setCreativeTab(ArmurNovaMine); swordTitan = new ItemTitanSword(toolTitan).setUnlocalizedName("Titan_sword").setTextureName(MODID + ":Titandian_sword").setCreativeTab(ItemNovaMine); pickaxeTitan = new ItemTitanPickaxe(toolTitan).setUnlocalizedName("Titan_pickaxe").setTextureName(MODID + ":Titandian_pickaxe").setCreativeTab(ItemNovaMine); axeTitan = new ItemTitanAxe(toolTitan).setUnlocalizedName("Titan_axe").setTextureName(MODID + ":Titandian_axe").setCreativeTab(ItemNovaMine); shovelTitan = new ItemTitanShovel(toolTitan).setUnlocalizedName("Titan_shovel").setTextureName(MODID + ":Titandian_shovel").setCreativeTab(ItemNovaMine); hoeTitan = new ItemTitanHoe(toolTitan).setUnlocalizedName("Titan_hoe").setTextureName(MODID + ":Titandian_hoe").setCreativeTab(ItemNovaMine); //Minecraft Ore saphirOre = new SimpleBlock(Material.rock).setBlockName("oreSaphir").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName(MODID + ":ruby_ore").setCreativeTab(BlockNovaMine); saphir = new SimpleItems().setUnlocalizedName("ruby").setTextureName(MODID + ":ruby").setCreativeTab(ItemNovaMine); } @EventHandler public void init(FMLInitializationEvent event) { GameRegistry.registerBlock(saphirOre, "saphirOre"); GameRegistry.registerItem(saphir, "saphir"); GameRegistry.registerWorldGenerator(worldgeneration, 0); GameRegistry.registerBlock(porte, "porte"); GameRegistry.registerItem(porteItem, "porteItem"); GameRegistry.registerBlock(porteA, "porteA"); GameRegistry.registerItem(porteItemA, "porteItemA"); GameRegistry.registerBlock(porteB, "porteB"); GameRegistry.registerItem(porteItemB, "porteItemB"); GameRegistry.registerBlock(porteDA, "porteDA"); GameRegistry.registerItem(porteItemDA, "porteItemDA"); GameRegistry.registerBlock(porteJ, "porteJ"); GameRegistry.registerItem(porteItemJ, "porteItemJ"); GameRegistry.registerBlock(invi, "invi"); GameRegistry.registerBlock(invil, "invil"); GameRegistry.registerBlock(Nova, "Nova"); GameRegistry.registerBlock(LA, "LA"); GameRegistry.registerItem(helmetEmerald, "helmetEmerald"); GameRegistry.registerItem(chestPlateEmerald, "chestPlateEmerald"); GameRegistry.registerItem(leggingsEmerald, "leggingsEmerald"); GameRegistry.registerItem(bootsEmerald, "bootsEmerald"); GameRegistry.registerItem(swordEmerald, "swordEmerald"); GameRegistry.registerItem(pickaxeEmerald, "pickaxeEmerald"); GameRegistry.registerItem(axeEmerald, "axeEmerald"); GameRegistry.registerItem(shovelEmerald, "shovelEmerald"); GameRegistry.registerItem(hoeEmerald, "hoeEmerald"); GameRegistry.registerItem(itemSaphir, "itemSaphir"); GameRegistry.registerItem(helmetSaphir, "helmetSaphir"); GameRegistry.registerItem(chestPlateSaphir, "chestPlateSaphir"); GameRegistry.registerItem(leggingsSaphir, "leggingsSaphir"); GameRegistry.registerItem(bootsSaphir, "bootsSaphir"); GameRegistry.registerItem(swordSaphir, "swordSaphir"); GameRegistry.registerItem(pickaxeSaphir, "pickaxeSaphir"); GameRegistry.registerItem(axeSaphir, "axeSaphir"); GameRegistry.registerItem(shovelSaphir, "shovelSaphir"); GameRegistry.registerItem(hoeSaphir, "hoeSaphir"); GameRegistry.registerBlock(BlockSaphir, "BlockSaphir"); GameRegistry.registerItem(itemObsi, "itemObsi"); GameRegistry.registerItem(helmetObsi, "helmetObsi"); GameRegistry.registerItem(chestPlateObsi, "chestPlateObsi"); GameRegistry.registerItem(leggingsObsi, "leggingsObsi"); GameRegistry.registerItem(bootsObsi, "bootsObsi"); GameRegistry.registerItem(swordObsi, "swordObsi"); GameRegistry.registerItem(pickaxeObsi, "pickaxeObsi"); GameRegistry.registerItem(axeObsi, "axeObsi"); GameRegistry.registerItem(shovelObsi, "shovelObsi"); GameRegistry.registerItem(hoeObsi, "hoeObsi"); GameRegistry.registerItem(itemTitan, "itemTitan"); GameRegistry.registerItem(helmetTitan, "helmetTitan"); GameRegistry.registerItem(chestPlateTitan, "chestPlateTitan"); GameRegistry.registerItem(leggingsTitan, "leggingsTitan"); GameRegistry.registerItem(bootsTitan, "bootsTitan"); GameRegistry.registerItem(swordTitan, "swordTitan"); GameRegistry.registerItem(pickaxeTitan, "pickaxeTitan"); GameRegistry.registerItem(axeTitan, "axeTitan"); GameRegistry.registerItem(shovelTitan, "shovelTitan"); GameRegistry.registerItem(hoeTitan, "hoeTitan"); //recette GameRegistry.addRecipe(new ItemStack(swordEmerald, 1), new Object[] { " E ", " E ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(swordEmerald, 1), new Object[] { "E ", "E ", "S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(swordEmerald, 1), new Object[] { " E", " E", " S", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(pickaxeEmerald, 1), new Object[] { "EEE", " S ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(axeEmerald, 1), new Object[] { " EE", " SE", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(axeEmerald, 1), new Object[] { "EE ", "ES ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(shovelEmerald, 1), new Object[] { " E ", " S ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(shovelEmerald, 1), new Object[] { "E ", "S ", "S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(shovelEmerald, 1), new Object[] { " E", " S", " S", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(hoeEmerald, 1), new Object[] { "EE ", " S ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(hoeEmerald, 1), new Object[] { " EE", " S ", " S ", 'S', Items.stick, 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(helmetEmerald, 1), new Object[] { "EEE", "E E", " ", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(helmetEmerald, 1), new Object[] { " ", "EEE", "E E", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(chestPlateEmerald, 1), new Object[] { "E E", "EEE", "EEE", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(leggingsEmerald, 1), new Object[] { "EEE", "E E", "E E", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(bootsEmerald, 1), new Object[] { " ", "E E", "E E", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(bootsEmerald, 1), new Object[] { "E E", "E E", " ", 'E', Items.emerald }); GameRegistry.addRecipe(new ItemStack(BlockSaphir, 1), new Object[] { "SSS", "SSS", "SSS", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(pickaxeSaphir, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(axeSaphir, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(axeSaphir, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(hoeSaphir, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(hoeSaphir, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(helmetSaphir, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(helmetSaphir, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(chestPlateSaphir, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(leggingsSaphir, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(bootsSaphir, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(bootsSaphir, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.itemSaphir }); GameRegistry.addRecipe(new ItemStack(porteItem, 1), new Object[] { "SS ", "SS ", "SS ", 'S', new ItemStack(Blocks.planks, 1, 1) }); GameRegistry.addRecipe(new ItemStack(porteItem, 1), new Object[] { " SS", " SS", " SS", 'S', new ItemStack(Blocks.planks, 1, 1) }); GameRegistry.addRecipe(new ItemStack(porteItemA, 1), new Object[] { "AA ", "AA ", "AA ", 'A', new ItemStack(Blocks.planks, 1, 4) }); GameRegistry.addRecipe(new ItemStack(porteItemA, 1), new Object[] { " AA", " AA", " AA", 'A', new ItemStack(Blocks.planks, 1, 4) }); GameRegistry.addRecipe(new ItemStack(porteItemB, 1), new Object[] { "BB ", "BB ", "BB ", 'B', new ItemStack(Blocks.planks, 1, 2) }); GameRegistry.addRecipe(new ItemStack(porteItemB, 1), new Object[] { " BB", " BB", " BB", 'B', new ItemStack(Blocks.planks, 1, 2) }); GameRegistry.addRecipe(new ItemStack(porteItemDA, 1), new Object[] { "DD ", "DD ", "DD ", 'D', new ItemStack(Blocks.planks, 1, 5) }); GameRegistry.addRecipe(new ItemStack(porteItemDA, 1), new Object[] { " DD", " DD", " DD", 'D', new ItemStack(Blocks.planks, 1, 5) }); GameRegistry.addRecipe(new ItemStack(porteItemJ, 1), new Object[] { "JJ ", "JJ ", "JJ ", 'J', new ItemStack(Blocks.planks, 1, 3) }); GameRegistry.addRecipe(new ItemStack(porteItemJ, 1), new Object[] { " JJ", " JJ", " JJ", 'J', new ItemStack(Blocks.planks, 1, 3) }); //GameRegistry.addShapelessRecipe(new ItemStack(tutoBlock, 2), Blocks.dirt, Blocks.dirt, tutoItem); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
Ma ckass SimpleItems
package fr.minecraftforgefrance.novamine.common; import net.minecraft.item.Item; public class SimpleItems extends Item { }
Et enfin ma class WorldGeneration
package fr.minecraftforgefrance.novamine.common; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; public class WorldGeneration implements IWorldGenerator { public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId) { case -1: generateNether(world, random, chunkX * 16, chunkZ * 16); break; case 0: generateSurface(world, random, chunkX * 16, chunkZ * 16); break; case 1: generateEnd(world, random, chunkX * 16, chunkZ * 16); break; } } private void generateEnd(World world, Random random, int x, int z) { } private void generateSurface(World world, Random random, int x, int z) { this.addOreSpawn(ModNovamine.saphirOre, 0, Blocks.stone, world, random, x, z, 16, 16, 6, 15, 16, 64); //this.addOreSpawn('BlocÀGénérer', 'MétadataDuBloc', 'BlocÀRemplacer', world, random, x, z, 16, 16, 'TailleMaximaleDUnFilon', 'Rareté', 'PositionYMinimum', 'PositionYMaximum'); } private void generateNether(World world, Random random, int x, int z) { } public void addOreSpawn(Block block, int metadata, Block target, World world, Random random, int blockXPos, int blockZPos, int maxX, int maxZ, int maxVeinSize, int chancesToSpawn, int minY, int maxY) { assert maxY > minY : "La position Y maximum doit être supérieure à la position Y minimum."; assert maxX > 0 && maxX <= 16 : "X doit se trouver entre 0 et 16."; assert minY > 0 : "La position Y minimum doit être supérieure à 0."; assert maxY < 256 && maxY > 0 : "La position Y maximum doit se trouver entre 0 et 256."; assert maxZ > 0 && maxZ <= 16 : "Z doit se trouver entre 0 et 16."; for(int i = 0; i < chancesToSpawn; i++) { int posY = random.nextInt(128); if((posY <= maxY) && (posY >= minY)) { (new WorldGenMinable(block, metadata, maxVeinSize, target)).generate(world, random, blockXPos + random.nextInt(16), posY, blockZPos + random.nextInt(16)); } } } }
-
Tu n’as pas initialisé l’Item itemSaphir.
-
A oui merci de me l’avoir fait remarquer mais maintenant pour le fait cuir comment je fais
-
-
Selon moi tu ne cherche pas beaucoup… Il y a des tuto sur le forum et des multiples demande d’aide sur le sujet.
Petit extrait du sujet à lire de la section :
[size=mediumAvant d’exposer son problème :]
Sachez que le support est fait durant notre temps libre, et donc comme nous sommes aussi des moddeurs, nous avons aussi nos propre mods à faire, et notre vie privé à côté; nous ne pouvons donc pas faire du support 24/24h, 7j/7. En conséquence, avant de crier “à l’aide” nous vous prions de faire un minimum de recherche, au minimum dans les tutoriels du site et dans les demandes d’aide déjà existantes, si possible sur le forum officiel de forge et au mieux, passer sur les deux/trois premières pages de la recherche google.
Si malgré les recherches effectués vous ne trouvez aucune solution à votre problème, vous pouvez alors postuler dans cette section.
-
Au pire je vais créer un nouveau groupe nommé “privé de support” qui ne pourra poster aucun message dans les sections de support. Ça obligera certains à chercher un peu avant de crier à l’aide …
-
Salut, pour pouvoir faire cuire ton minerai, tu dois créer une recette de four (smelting recipe en anglais). Un tutoriel est disponible sur Minecraft Forge France : http://www.minecraftforgefrance.fr/showthread.php?tid=235
Il a été fait pour la 1.6 mais tu ne devrais pas avoir trop de problèmes avec la compatibilité.