Fence et FenceGate
-
Slt j’aimerais savoir comment créer une Fence et une FenceGate svp
-
Slt jan kev1ne, Google é ton ami.
Regarde les blocks de Minecraft : Le block fence demande un block en paramètre, tu as juste à mettre ce que tu veux dedans et le model s’adaptera.
-
Oui mais le jeux crash quand je le lance
[18:43:34] [main/INFO] [GradleStart]: Extra: [] [18:43:35] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Codeur TheAzkaze/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [18:43:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [18:43:35] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading [18:43:35] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 8.1:x86:6.3, installed at C:\Program Files (x86)\Java\jre1.8.0_45 [18:43:35] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:43:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [18:43:35] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [18:43:35] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [18:43:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [18:43:35] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:43:36] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:43:40] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:43:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [18:43:40] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [18:43:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:43:41] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [18:43:41] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [18:43:41] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:43:42] [main/INFO]: Setting user: Player778 [18:43:45] [Client thread/INFO]: LWJGL Version: 2.9.1 [18:43:46] [Client thread/INFO] [STDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's. [18:43:46] [Client thread/ERROR]: Couldn't initialize twitch stream [18:43:46] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [18:43:46] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized [18:43:46] [Client thread/INFO] [FML]: Replaced 183 ore recipies [18:43:46] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [18:43:46] [Client thread/INFO] [FML]: Searching C:\Users\Codeur TheAzkaze\Desktop\Mod Laucheur NovaMine 1.7.10\eclipse\mods for mods [18:43:51] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:43:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modnovamine] at CLIENT [18:43:52] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, modnovamine] at SERVER [18:43:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod Novamine [18:43:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:43:53] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [18:43:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:43:53] [Client thread/INFO] [FML]: Applying holder lookups [18:43:53] [Client thread/INFO] [FML]: Holder lookups applied [18:43:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:43:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [18:43:54] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:43:54] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:43:54] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:43:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:43:54] [Sound Library Loader/INFO]: Sound engine started [18:44:01] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [18:44:01] [Client thread/INFO]: Created: 256x256 textures/items-atlas [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/WARN] [FML]: * The object fr.minecraftforgefrance.novamine.common.SimpleItems@db09b9 has been registered twice for the same name modnovamine:itemTitan. [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:378) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) [18:44:01] [Client thread/WARN] [FML]: * at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:234)… [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/WARN] [FML]: * The object fr.minecraftforgefrance.novamine.common.SimpleItems@189719e has been registered twice for the same name modnovamine:itemRuby. [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:378) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) [18:44:01] [Client thread/WARN] [FML]: * at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:244)… [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/WARN] [FML]: * The object fr.minecraftforgefrance.novamine.common.SimpleItems@17268db has been registered twice for the same name modnovamine:itemTopaze. [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:378) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:838) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameData.registerItem(GameData.java:802) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:143) [18:44:01] [Client thread/WARN] [FML]: * at cpw.mods.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:131) [18:44:01] [Client thread/WARN] [FML]: * at fr.minecraftforgefrance.novamine.common.ModNovamine.init(ModNovamine.java:254)… [18:44:01] [Client thread/WARN] [FML]: **************************************** [18:44:01] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:44:01] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mod Novamine [18:44:02] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_166_null.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [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.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45] 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/:?] [18:44:02] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [18:44:02] [Client thread/INFO]: Created: 512x512 textures/items-atlas [18:44:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:44:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down… [18:44:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [18:44:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:44:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:44:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem… [18:44:03] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [18:44:03] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:44:03] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [18:44:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [18:44:03] [Sound Library Loader/INFO]: Sound engine started [18:44:23] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10 [18:44:23] [Server thread/INFO]: Generating keypair [18:44:24] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance [18:44:24] [Server thread/INFO] [FML]: Applying holder lookups [18:44:24] [Server thread/INFO] [FML]: Holder lookups applied [18:44:24] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1f3fff8) [18:44:24] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1f3fff8) [18:44:24] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1f3fff8) [18:44:24] [Server thread/INFO]: Preparing start region for level 0 [18:44:25] [Server thread/INFO]: Preparing spawn area: 33% [18:44:26] [Server thread/INFO]: Preparing spawn area: 95% [18:44:26] [Server thread/INFO]: Changing view distance to 8, from 10 [18:44:28] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [18:44:28] [Netty IO #1/INFO] [FML]: Client protocol version 1 [18:44:28] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.85.1291,Forge@10.13.2.1291,mcp@9.05,modnovamine@1.0.0 [18:44:28] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [18:44:28] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [18:44:28] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [18:44:28] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [18:44:28] [Server thread/INFO]: Player778[local:E:bce5080f] logged in with entity id 282 at (99.57740390880174, 103.0, -3.505364135407924) [18:44:28] [Server thread/INFO]: Player778 joined the game [18:44:30] [Client thread/FATAL]: Unreported exception thrown! java.lang.ClassCastException: fr.minecraftforgefrance.novamine.common.FenceGateS cannot be cast to net.minecraft.block.BlockFenceGate at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:380) ~[RenderBlocks.class:?] at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207) ~[WorldRenderer.class:?] at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45] 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/:?] [18:44:30] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ---- // Don't be sad. I'll do better next time, I promise! Time: 27/06/15 18:44 Description: Unexpected error java.lang.ClassCastException: fr.minecraftforgefrance.novamine.common.FenceGateS cannot be cast to net.minecraft.block.BlockFenceGate at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:380) at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207) at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(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 net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:380) at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207) at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player778'/282, l='MpServer', x=99,58, y=104,62, z=-3,51]] Chunk stats: MultiplayerChunkCache: 135, 135 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (0,64,0), Chunk: (at 0,4,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 170745 game time, 170745 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 72 total; [EntityPig['Pig'/128, l='MpServer', x=49,59, y=70,00, z=37,75], EntityPig['Pig'/129, l='MpServer', x=63,47, y=72,00, z=46,31], EntitySkeleton['Skeleton'/130, l='MpServer', x=63,50, y=47,00, z=53,50], EntitySkeleton['Skeleton'/258, l='MpServer', x=177,50, y=50,00, z=42,16], EntitySkeleton['Skeleton'/131, l='MpServer', x=61,50, y=47,00, z=53,50], EntityBat['Bat'/132, l='MpServer', x=49,75, y=51,10, z=54,75], EntityZombie['Zombie'/133, l='MpServer', x=49,94, y=50,00, z=53,38], EntityPig['Pig'/134, l='MpServer', x=53,88, y=71,00, z=54,09], EntityCreeper['Creeper'/150, l='MpServer', x=66,50, y=20,00, z=-48,50], EntityPig['Pig'/151, l='MpServer', x=78,94, y=72,00, z=-48,06], EntityPig['Pig'/152, l='MpServer', x=67,75, y=88,00, z=-13,50], EntitySkeleton['Skeleton'/153, l='MpServer', x=72,75, y=91,80, z=2,22], EntitySkeleton['Skeleton'/154, l='MpServer', x=67,50, y=26,00, z=27,50], EntitySkeleton['Skeleton'/155, l='MpServer', x=63,84, y=47,00, z=52,16], EntityCreeper['Creeper'/156, l='MpServer', x=78,50, y=46,00, z=67,50], EntitySpider['Spider'/157, l='MpServer', x=78,27, y=46,00, z=63,99], EntityCow['Cow'/172, l='MpServer', x=90,75, y=64,00, z=-80,78], EntityPig['Pig'/173, l='MpServer', x=93,56, y=64,00, z=-55,47], EntityBat['Bat'/174, l='MpServer', x=85,37, y=73,73, z=-27,14], EntityPig['Pig'/175, l='MpServer', x=88,88, y=95,00, z=6,81], EntityZombie['Zombie'/176, l='MpServer', x=93,50, y=61,00, z=68,50], EntityZombie['Zombie'/177, l='MpServer', x=93,50, y=61,00, z=70,50], EntitySquid['Squid'/186, l='MpServer', x=103,78, y=57,02, z=-64,24], EntityPig['Pig'/187, l='MpServer', x=104,03, y=77,00, z=-23,47], EntityItem['item.item.arrow'/188, l='MpServer', x=100,97, y=90,13, z=-16,22], EntityItem['item.item.bone'/189, l='MpServer', x=101,06, y=90,13, z=-16,22], EntityPig['Pig'/190, l='MpServer', x=103,03, y=96,00, z=2,41], EntityItem['item.item.bone'/196, l='MpServer', x=119,31, y=64,13, z=-65,91], EntityPig['Pig'/197, l='MpServer', x=114,69, y=75,00, z=-31,50], EntityZombie['Zombie'/198, l='MpServer', x=117,53, y=51,00, z=-1,97], EntityCreeper['Creeper'/199, l='MpServer', x=124,31, y=45,00, z=2,66], EntityPig['Pig'/200, l='MpServer', x=122,59, y=90,00, z=15,13], EntityBat['Bat'/201, l='MpServer', x=116,06, y=36,00, z=55,59], EntityBat['Bat'/208, l='MpServer', x=138,72, y=58,10, z=21,75], EntityPig['Pig'/209, l='MpServer', x=132,50, y=72,00, z=54,31], EntityCreeper['Creeper'/210, l='MpServer', x=138,50, y=14,00, z=66,50], EntityCreeper['Creeper'/211, l='MpServer', x=139,28, y=14,00, z=68,50], EntityBat['Bat'/94, l='MpServer', x=31,41, y=26,70, z=-17,86], EntityClientPlayerMP['Player778'/282, l='MpServer', x=99,58, y=104,62, z=-3,51], EntityPig['Pig'/97, l='MpServer', x=24,38, y=92,00, z=53,25], EntityPig['Pig'/226, l='MpServer', x=159,88, y=64,00, z=-11,16], EntityPig['Pig'/98, l='MpServer', x=21,78, y=88,00, z=48,16], EntityPig['Pig'/227, l='MpServer', x=147,06, y=64,00, z=6,38], EntityPig['Pig'/228, l='MpServer', x=157,03, y=65,00, z=10,94], EntityPig['Pig'/229, l='MpServer', x=158,25, y=64,00, z=7,19], EntityPig['Pig'/230, l='MpServer', x=158,44, y=64,00, z=4,03], EntityPig['Pig'/231, l='MpServer', x=156,22, y=65,00, z=17,63], EntitySkeleton['Skeleton'/103, l='MpServer', x=35,37, y=30,69, z=-57,43], EntityPig['Pig'/232, l='MpServer', x=144,88, y=67,00, z=54,09], EntitySkeleton['Skeleton'/104, l='MpServer', x=47,50, y=56,00, z=-56,97], EntityPig['Pig'/233, l='MpServer', x=159,63, y=66,00, z=61,28], EntityZombie['Zombie'/105, l='MpServer', x=32,50, y=39,00, z=-19,50], EntityPig['Pig'/234, l='MpServer', x=154,06, y=64,00, z=51,03], EntitySkeleton['Skeleton'/106, l='MpServer', x=44,09, y=39,00, z=-9,31], EntityPig['Pig'/235, l='MpServer', x=143,15, y=71,00, z=62,66], EntityBat['Bat'/107, l='MpServer', x=40,67, y=41,48, z=-10,96], EntityZombie['Zombie'/108, l='MpServer', x=43,50, y=65,00, z=32,50], EntityCreeper['Creeper'/109, l='MpServer', x=46,50, y=65,00, z=32,50], EntityPig['Pig'/110, l='MpServer', x=46,84, y=73,00, z=62,53], EntityPig['Pig'/111, l='MpServer', x=45,50, y=71,00, z=54,75], EntityPig['Pig'/112, l='MpServer', x=34,03, y=92,00, z=73,06], EntityZombie['Zombie'/244, l='MpServer', x=173,50, y=28,00, z=-14,06], EntityPig['Pig'/245, l='MpServer', x=170,53, y=66,00, z=11,53], EntitySquid['Squid'/246, l='MpServer', x=162,60, y=59,92, z=40,18], EntitySkeleton['Skeleton'/247, l='MpServer', x=175,53, y=50,00, z=33,84], EntitySquid['Squid'/248, l='MpServer', x=160,25, y=61,70, z=43,72], EntityPig['Pig'/249, l='MpServer', x=161,66, y=68,00, z=68,22], EntityCreeper['Creeper'/123, l='MpServer', x=62,50, y=20,00, z=-49,50], EntitySkeleton['Skeleton'/124, l='MpServer', x=58,50, y=20,00, z=-50,50], EntityBat['Bat'/125, l='MpServer', x=51,28, y=57,70, z=-54,78], EntityPig['Pig'/126, l='MpServer', x=55,13, y=67,00, z=-40,16], EntityPig['Pig'/127, l='MpServer', x=48,44, y=69,00, z=-23,13]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) – System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (x86) version 6.3 Java Version: 1.8.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 763180960 bytes (727 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 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: 11, tcache: 0, allocated: 13, tallocated: 95 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->Post-initialized->Available->Available->Available->Available FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available modnovamine{1.0.0} [Mod Novamine] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 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) [18:44:30] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Codeur TheAzkaze\Desktop\Mod Laucheur NovaMine 1.7.10\eclipse\.\crash-reports\crash-2015-06-27_18.44.30-client.txt [18:44:30] [Client Shutdown Thread/INFO]: Stopping server AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release ```</init>
-
Donc tu t’ai dit que c’était mieux de mettre un post en posant une simple question que tu pourrais poster sur Google au lieu de donner le crash report ?
-
Tu as enregistré un Item 2 fois et je penses que tu as mis une fence gate en paramètre de la fence, je peux pas dire grand chose d’autres sans le code.
-
Ma class principale
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.ItemAppleGold; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; 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(); WorldGenerationr worldgenerationr = new WorldGenerationr(); WorldGenerationti worldgenerationti = new WorldGenerationti(); WorldGenerationto worldgenerationto = new WorldGenerationto(); public static Item saphir, PommeH, PommeS; public static Block saphirOre, RubyOre, TitaneOre, TopazeOre, NovaOre, Slime, FenceGateS; 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 helmetSaphir, chestPlateSaphir, leggingsSaphir, bootsSaphir, swordSaphir, pickaxeSaphir, axeSaphir, shovelSaphir, hoeSaphir; public static Item itemTopaze, helmetTopaze, chestPlateTopaze, leggingsTopaze, bootsTopaze, swordTopaze, pickaxeTopaze, axeTopaze, shovelTopaze, hoeTopaze; public static Item itemNova, helmetNova, chestPlateNova, leggingsNova, bootsNova, swordNova, pickaxeNova, axeNova, shovelNova, hoeNova; 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 ArmorMaterial armorNova = EnumHelper.addArmorMaterial("armorNova", 110, new int[] {10, 15, 13, 10}, 55); public static ToolMaterial toolObsi = EnumHelper.addToolMaterial("toolObsi", 4, 2000, 10.0F, 4.0F, 18); public static ToolMaterial toolEmerald = EnumHelper.addToolMaterial("toolEmerald", 5, 2400, 10.0F, 5.0F, 19); public static ToolMaterial toolTitan = EnumHelper.addToolMaterial("toolTitan", 6, 2800, 10.0F, 6.0F, 20); public static ToolMaterial toolRuby = EnumHelper.addToolMaterial("toolRuby", 7, 3200, 10.0F, 7.0F, 21); public static ToolMaterial toolSaphir = EnumHelper.addToolMaterial("toolSaphir", 8, 3600, 10.0F, 8.0F, 22); public static ToolMaterial toolTopaze = EnumHelper.addToolMaterial("toolTopaze", 9, 4000, 10.0F, 9.0F, 23); public static ToolMaterial toolNova = EnumHelper.addToolMaterial("toolNova", 10, 4400, 10.0F, 10.0F, 24); /** 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).setHardness(5.0F).setResistance(10.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); helmetTitan = new ItemTitanArmor(armorTitan, 0).setUnlocalizedName("Titane_helmet").setTextureName(MODID + ":titane_helmet").setCreativeTab(ArmurNovaMine); chestPlateTitan = new ItemTitanArmor(armorTitan, 1).setUnlocalizedName("Titane_chestplate").setTextureName(MODID + ":titane_chestplate").setCreativeTab(ArmurNovaMine); leggingsTitan = new ItemTitanArmor(armorTitan, 2).setUnlocalizedName("Titane_leggings").setTextureName(MODID + ":titane_leggings").setCreativeTab(ArmurNovaMine); bootsTitan = new ItemTitanArmor(armorTitan, 3).setUnlocalizedName("Titane_boots").setTextureName(MODID + ":titane_boots").setCreativeTab(ArmurNovaMine); swordTitan = new ItemTitanSword(toolTitan).setUnlocalizedName("Titane_sword").setTextureName(MODID + ":titanium_sword").setCreativeTab(ItemNovaMine); pickaxeTitan = new ItemTitanPickaxe(toolTitan).setUnlocalizedName("Titane_pickaxe").setTextureName(MODID + ":titane_pickaxe").setCreativeTab(ItemNovaMine); axeTitan = new ItemTitanAxe(toolTitan).setUnlocalizedName("Titane_axe").setTextureName(MODID + ":titane_hatchet").setCreativeTab(ItemNovaMine); shovelTitan = new ItemTitanShovel(toolTitan).setUnlocalizedName("Titane_shovel").setTextureName(MODID + ":titane_shovel").setCreativeTab(ItemNovaMine); hoeTitan = new ItemTitanHoe(toolTitan).setUnlocalizedName("Titane_hoe").setTextureName(MODID + ":titane_hoe").setCreativeTab(ItemNovaMine); helmetRuby = new ItemRubyArmor(armorRuby, 0).setUnlocalizedName("Ruby_helmet").setTextureName(MODID + ":helmetRuby").setCreativeTab(ArmurNovaMine); chestPlateRuby = new ItemRubyArmor(armorRuby, 1).setUnlocalizedName("Ruby_chestplate").setTextureName(MODID + ":chestplateRuby").setCreativeTab(ArmurNovaMine); leggingsRuby = new ItemRubyArmor(armorRuby, 2).setUnlocalizedName("Ruby_leggings").setTextureName(MODID + ":leggingsRuby").setCreativeTab(ArmurNovaMine); bootsRuby = new ItemRubyArmor(armorRuby, 3).setUnlocalizedName("Ruby_boots").setTextureName(MODID + ":bootsRuby").setCreativeTab(ArmurNovaMine); swordRuby = new ItemRubySword(toolRuby).setUnlocalizedName("Ruby_sword").setTextureName(MODID + ":garnet_sword").setCreativeTab(ItemNovaMine); pickaxeRuby = new ItemRubyPickaxe(toolRuby).setUnlocalizedName("Ruby_pickaxe").setTextureName(MODID + ":garnet_pickaxe").setCreativeTab(ItemNovaMine); axeRuby = new ItemRubyAxe(toolRuby).setUnlocalizedName("Ruby_axe").setTextureName(MODID + ":garnet_axe").setCreativeTab(ItemNovaMine); shovelRuby = new ItemRubyShovel(toolRuby).setUnlocalizedName("Ruby_shovel").setTextureName(MODID + ":shovelRuby").setCreativeTab(ItemNovaMine); hoeRuby = new ItemRubyHoe(toolRuby).setUnlocalizedName("Ruby_hoe").setTextureName(MODID + ":garnet_hoe").setCreativeTab(ItemNovaMine); helmetTopaze = new ItemTopazeArmor(armorTopaze, 0).setUnlocalizedName("Topaze_helmet").setTextureName(MODID + ":topaze_helmet").setCreativeTab(ArmurNovaMine); chestPlateTopaze = new ItemTopazeArmor(armorTopaze, 1).setUnlocalizedName("Topaze_chestplate").setTextureName(MODID + ":topaze_chestplate").setCreativeTab(ArmurNovaMine); leggingsTopaze = new ItemTopazeArmor(armorTopaze, 2).setUnlocalizedName("Topaze_leggings").setTextureName(MODID + ":topaze_leggings").setCreativeTab(ArmurNovaMine); bootsTopaze = new ItemTopazeArmor(armorTopaze, 3).setUnlocalizedName("Topaze_boots").setTextureName(MODID + ":topaze_boots").setCreativeTab(ArmurNovaMine); swordTopaze = new ItemTopazeSword(toolTopaze).setUnlocalizedName("Topaze_sword").setTextureName(MODID + ":topaze_sword").setCreativeTab(ItemNovaMine); pickaxeTopaze = new ItemTopazePickaxe(toolTopaze).setUnlocalizedName("Topaze_pickaxe").setTextureName(MODID + ":topaze_pickaxe").setCreativeTab(ItemNovaMine); axeTopaze = new ItemTopazeAxe(toolTopaze).setUnlocalizedName("Topaze_axe").setTextureName(MODID + ":topaze_axe").setCreativeTab(ItemNovaMine); shovelTopaze = new ItemTopazeShovel(toolTopaze).setUnlocalizedName("Topaze_shovel").setTextureName(MODID + ":topaze_shovel").setCreativeTab(ItemNovaMine); hoeTopaze = new ItemTopazeHoe(toolTopaze).setUnlocalizedName("Topaze_hoe").setTextureName(MODID + ":topaze_hoe").setCreativeTab(ItemNovaMine); PommeH = new Pomme(4, 1.2F, false).setAlwaysEdible().setPotionEffect(Potion.digSpeed.id, 360, 1, 1.0F).setUnlocalizedName("PommeH").setTextureName(MODID + ":PommeH"); PommeS = new PommeS(4, 1.2F, false).setAlwaysEdible().setPotionEffect(Potion.moveSpeed.id, 360, 1, 1.0F).setUnlocalizedName("PommeS").setTextureName(MODID + ":PommeH"); Slime = new Slime(Material.rock).setCreativeTab(Nova1_8); FenceGateS = new FenceGateS().setCreativeTab(Nova1_8); //Minecraft Ore saphirOre = new SimpleBlock(Material.rock).setBlockName("oreSaphir").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName(MODID + ":Saphir_ore").setCreativeTab(BlockNovaMine); saphir = new SimpleItems().setUnlocalizedName("Saphir").setTextureName(MODID + ":Saphir").setCreativeTab(ItemNovaMine); RubyOre = new SimpleBlock(Material.rock).setBlockName("MRuby").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName(MODID + ":rubis_ore").setCreativeTab(BlockNovaMine); itemRuby = new SimpleItems().setUnlocalizedName("Ruby").setCreativeTab(ItemNovaMine).setTextureName(MODID + ":ruby"); TitaneOre = new SimpleBlock(Material.rock).setBlockName("oreTitane").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName(MODID + ":titane_ore").setCreativeTab(BlockNovaMine); itemTitan = new SimpleItems().setUnlocalizedName("Titan").setCreativeTab(ItemNovaMine).setTextureName(MODID + ":titane_lingot"); TopazeOre = new SimpleBlock(Material.rock).setBlockName("oreTopaze").setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockTextureName(MODID + ":topaze_ore").setCreativeTab(BlockNovaMine);; itemTopaze = new SimpleItems().setUnlocalizedName("Topaze").setCreativeTab(ItemNovaMine).setTextureName(MODID + ":topaze"); } @EventHandler public void init(FMLInitializationEvent event) { GameRegistry.registerBlock(FenceGateS, "FenceGateS"); GameRegistry.registerBlock(Slime, "Slime"); GameRegistry.registerItem(PommeS, "PommeS"); GameRegistry.registerItem(PommeH, "PommeH"); GameRegistry.registerBlock(RubyOre, "RubyOre"); GameRegistry.registerItem(itemRuby, "itemRuby"); GameRegistry.registerBlock(TitaneOre, "TitaneOre"); GameRegistry.registerItem(itemTitan, "itemTitan"); GameRegistry.registerBlock(TopazeOre, "TopazeOre"); GameRegistry.registerItem(itemTopaze, "itemTopaze"); GameRegistry.registerBlock(saphirOre, "saphirOre"); GameRegistry.registerItem(saphir, "saphir"); GameRegistry.registerWorldGenerator(worldgeneration, 0); GameRegistry.registerWorldGenerator(worldgenerationr, 0); GameRegistry.registerWorldGenerator(worldgenerationti, 0); GameRegistry.registerWorldGenerator(worldgenerationto, 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(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"); GameRegistry.registerItem(itemRuby, "itemRuby"); GameRegistry.registerItem(helmetRuby, "helmetRuby"); GameRegistry.registerItem(chestPlateRuby, "chestPlateRuby"); GameRegistry.registerItem(leggingsRuby, "leggingsRuby"); GameRegistry.registerItem(bootsRuby, "bootsRuby"); GameRegistry.registerItem(swordRuby, "swordRuby"); GameRegistry.registerItem(pickaxeRuby, "pickaxeRuby"); GameRegistry.registerItem(axeRuby, "axeRuby"); GameRegistry.registerItem(shovelRuby, "shovelRuby"); GameRegistry.registerItem(hoeRuby, "hoeRuby"); GameRegistry.registerItem(itemTopaze, "itemTopaze"); GameRegistry.registerItem(helmetTopaze, "helmetTopaze"); GameRegistry.registerItem(chestPlateTopaze, "chestPlateTopaze"); GameRegistry.registerItem(leggingsTopaze, "leggingsTopaze"); GameRegistry.registerItem(bootsTopaze, "bootsTopaze"); GameRegistry.registerItem(swordTopaze, "swordTopaze"); GameRegistry.registerItem(pickaxeTopaze, "pickaxeTopaze"); GameRegistry.registerItem(axeTopaze, "axeTopaze"); GameRegistry.registerItem(shovelTopaze, "shovelTopaze"); GameRegistry.registerItem(hoeTopaze, "hoeTopaze"); //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.saphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(swordSaphir, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(pickaxeSaphir, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(axeSaphir, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(axeSaphir, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(shovelSaphir, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(hoeSaphir, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(hoeSaphir, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(helmetSaphir, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(helmetSaphir, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(chestPlateSaphir, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(leggingsSaphir, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(bootsSaphir, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.saphir }); GameRegistry.addRecipe(new ItemStack(bootsSaphir, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.saphir }); 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.addRecipe(new ItemStack(swordObsi, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(swordObsi, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(swordObsi, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(pickaxeObsi, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(axeObsi, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(axeObsi, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(shovelObsi, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(shovelObsi, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(shovelObsi, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(hoeObsi, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(hoeObsi, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(helmetObsi, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(helmetObsi, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(chestPlateObsi, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(leggingsObsi, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(bootsObsi, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(bootsObsi, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.itemObsi }); GameRegistry.addRecipe(new ItemStack(swordTitan, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(swordTitan, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(swordTitan, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(pickaxeTitan, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(axeTitan, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(axeTitan, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(shovelTitan, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(shovelTitan, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(shovelTitan, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(hoeTitan, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(hoeTitan, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(helmetTitan, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(helmetTitan, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(chestPlateTitan, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(leggingsTitan, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(bootsTitan, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(bootsTitan, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.itemTitan }); GameRegistry.addRecipe(new ItemStack(swordRuby, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(swordRuby, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(swordRuby, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(pickaxeRuby, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(axeRuby, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(axeRuby, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(shovelRuby, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(shovelRuby, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(shovelRuby, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(hoeRuby, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(hoeRuby, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(helmetRuby, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(helmetRuby, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(chestPlateRuby, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(leggingsRuby, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(bootsRuby, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.itemRuby }); GameRegistry.addRecipe(new ItemStack(bootsTopaze, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(swordTopaze, 1), new Object[] { " S ", " S ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(swordTopaze, 1), new Object[] { "S ", "S ", "0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(swordTopaze, 1), new Object[] { " S", " S", " 0", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(pickaxeTopaze, 1), new Object[] { "SSS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(axeTopaze, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(axeTopaze, 1), new Object[] { " SS", " 0S", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(shovelTopaze, 1), new Object[] { " S ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(shovelTopaze, 1), new Object[] { "S ", "0 ", "0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(shovelTopaze, 1), new Object[] { " S", " 0", " 0", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(hoeTopaze, 1), new Object[] { " SS", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(hoeTopaze, 1), new Object[] { "SS ", " 0 ", " 0 ", '0', Items.stick, 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(helmetTopaze, 1), new Object[] { "SSS", "S S", " ", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(helmetTopaze, 1), new Object[] { " ", "SSS", "S S", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(chestPlateTopaze, 1), new Object[] { "S S", "SSS", "SSS", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(leggingsTopaze, 1), new Object[] { "SSS", "S S", "S S", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(bootsTopaze, 1), new Object[] { "S S", "S S", " ", 'S', ModNovamine.itemTopaze }); GameRegistry.addRecipe(new ItemStack(bootsTopaze, 1), new Object[] { " ", "S S", "S S", 'S', ModNovamine.itemTopaze }); //recette four GameRegistry.addSmelting(ModNovamine.saphirOre, new ItemStack(ModNovamine.saphir), 1.0F); GameRegistry.addSmelting(ModNovamine.RubyOre, new ItemStack(ModNovamine.itemRuby), 1.0F); GameRegistry.addSmelting(ModNovamine.TitaneOre, new ItemStack(ModNovamine.itemTitan), 1.0F); GameRegistry.addSmelting(ModNovamine.TopazeOre, new ItemStack(ModNovamine.itemTopaze), 1.0F); //GameRegistry.addShapelessRecipe(new ItemStack(tutoBlock, 2), Blocks.dirt, Blocks.dirt, tutoItem); } @EventHandler public void postInit(FMLPostInitializationEvent event) { } }
La class de ma fenceGate
package fr.minecraftforgefrance.novamine.common; import net.minecraft.block.Block; import net.minecraft.block.BlockDirectional; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class FenceGateS extends BlockDirectional { private static final String __OBFID = "CL_00000243"; public FenceGateS() { super(Material.wood); this.setCreativeTab(CreativeTabs.tabRedstone); } /** * Gets the block's texture. Args: side, meta */ @SideOnly(Side.CLIENT) public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return Blocks.planks.getBlockTextureFromSide(p_149691_1_); } /** * Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z */ public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_) { return !p_149742_1_.getBlock(p_149742_2_, p_149742_3_ - 1, p_149742_4_).getMaterial().isSolid() ? false : super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_, p_149742_4_); } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_) { int l = p_149668_1_.getBlockMetadata(p_149668_2_, p_149668_3_, p_149668_4_); /** * Returns if the fence gate is open according to its metadata. */ return isFenceGateOpen(l) ? null : (l != 2 && l != 0 ? AxisAlignedBB.getBoundingBox((double)((float)p_149668_2_ + 0.375F), (double)p_149668_3_, (double)p_149668_4_, (double)((float)p_149668_2_ + 0.625F), (double)((float)p_149668_3_ + 1.5F), (double)(p_149668_4_ + 1)) : AxisAlignedBB.getBoundingBox((double)p_149668_2_, (double)p_149668_3_, (double)((float)p_149668_4_ + 0.375F), (double)(p_149668_2_ + 1), (double)((float)p_149668_3_ + 1.5F), (double)((float)p_149668_4_ + 0.625F))); } /** * Updates the blocks bounds based on its current state. Args: world, x, y, z */ public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_) { int l = getDirection(p_149719_1_.getBlockMetadata(p_149719_2_, p_149719_3_, p_149719_4_)); if (l != 2 && l != 0) { this.setBlockBounds(0.375F, 0.0F, 0.0F, 0.625F, 1.0F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.375F, 1.0F, 1.0F, 0.625F); } } /** * Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two * adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block. */ public boolean isOpaqueCube() { return false; } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_) { /** * Returns if the fence gate is open according to its metadata. */ return isFenceGateOpen(p_149655_1_.getBlockMetadata(p_149655_2_, p_149655_3_, p_149655_4_)); } /** * The type of render function that is called for this block */ public int getRenderType() { return 21; } /** * Called when the block is placed in the world. */ public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_) { int l = (MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4; p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, l, 2); } /** * Called upon block activation (right click on the block.) */ public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) { int i1 = p_149727_1_.getBlockMetadata(p_149727_2_, p_149727_3_, p_149727_4_); if (isFenceGateOpen(i1)) { p_149727_1_.setBlockMetadataWithNotify(p_149727_2_, p_149727_3_, p_149727_4_, i1 & -5, 2); } else { int j1 = (MathHelper.floor_double((double)(p_149727_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) % 4; int k1 = getDirection(i1); if (k1 == (j1 + 2) % 4) { i1 = j1; } p_149727_1_.setBlockMetadataWithNotify(p_149727_2_, p_149727_3_, p_149727_4_, i1 | 4, 2); } p_149727_1_.playAuxSFXAtEntity(p_149727_5_, 1003, p_149727_2_, p_149727_3_, p_149727_4_, 0); return true; } /** * Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are * their own) Args: x, y, z, neighbor Block */ public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_) { if (!p_149695_1_.isRemote) { int l = p_149695_1_.getBlockMetadata(p_149695_2_, p_149695_3_, p_149695_4_); boolean flag = p_149695_1_.isBlockIndirectlyGettingPowered(p_149695_2_, p_149695_3_, p_149695_4_); if (flag || p_149695_5_.canProvidePower()) { if (flag && !isFenceGateOpen(l)) { p_149695_1_.setBlockMetadataWithNotify(p_149695_2_, p_149695_3_, p_149695_4_, l | 4, 2); p_149695_1_.playAuxSFXAtEntity((EntityPlayer)null, 1003, p_149695_2_, p_149695_3_, p_149695_4_, 0); } else if (!flag && isFenceGateOpen(l)) { p_149695_1_.setBlockMetadataWithNotify(p_149695_2_, p_149695_3_, p_149695_4_, l & -5, 2); p_149695_1_.playAuxSFXAtEntity((EntityPlayer)null, 1003, p_149695_2_, p_149695_3_, p_149695_4_, 0); } } } } /** * Returns if the fence gate is open according to its metadata. */ public static boolean isFenceGateOpen(int p_149896_0_) { return (p_149896_0_ & 4) != 0; } /** * Returns true if the given side of this block type should be rendered, if the adjacent block is at the given * coordinates. Args: blockAccess, x, y, z, side */ @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) { return true; } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) {} }
-
- Il ne faut jamais copier les __OBFID ?
- Ta classe devrait être extends BlockFence.
- Tu ne devrais pas utiliser le nom de domaine fr.minecraftforgefrance, car cela veut dire que ton code nous appartient …
-
Et pour la textures par exemple le spruce
-
Remplace ta fonction getIcon par celle-ci :
@SideOnly(Side.CLIENT) public IIcon getIcon(int metadata, int side) { return Blocks.planks.getIcon(1, side); }