Résolu Crash Lors du craft d'un bloc
-
Bonjours, depuis quelques minutes je n’arrive plus a craft un bloc de plus si se bloc est dans un craft le craft ne marche pas je ne sais vraiment pas trop pourquoi si quelqu’un peut m’éclairer Merci !
[04:06:46] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering item at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1168) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] 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/:?] Caused by: java.lang.NullPointerException at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265) ~[ItemStack.class:?] at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419) ~[RenderItem.class:?] at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) ~[RenderItem.class:?] at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:289) ~[GuiContainer.class:?] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) ~[GuiContainer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) ~[EntityRenderer.class:?] … 11 more [04:06:46] [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/10/15 04:06 Description: Rendering item java.lang.NullPointerException: Rendering item at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419) at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:289) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) at net.minecraft.client.Minecraft.run(Minecraft.java:962) 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.item.ItemStack.getItemDamage(ItemStack.java:265) at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419) -- Item being rendered -- Details: Item Type: null Item Aux: ~~ERROR~~ NullPointerException: null Item NBT: null Item Foil: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585) at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:289) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:114) -- Screen render details -- Details: Screen name: net.minecraft.client.gui.inventory.GuiCrafting Mouse location: Scaled: (132, 89). Absolute: (265, 301) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player67'/257, l='MpServer', x=-24,50, y=70,62, z=245,50]] Chunk stats: MultiplayerChunkCache: 545, 545 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (-24,64,252), Chunk: (at 8,4,12 in -2,15; contains blocks -32,0,240 to -17,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 655 game time, 655 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 85 total; [EntityChicken['Chicken'/213, l='MpServer', x=-73,50, y=69,00, z=252,50], EntityChicken['Chicken'/214, l='MpServer', x=-67,59, y=69,00, z=255,41], EntityChicken['Chicken'/215, l='MpServer', x=-73,50, y=69,00, z=252,50], EntityChicken['Chicken'/216, l='MpServer', x=-77,50, y=68,00, z=250,50], EntityPig['Pig'/217, l='MpServer', x=-39,66, y=69,00, z=251,53], EntityPig['Pig'/218, l='MpServer', x=-28,97, y=69,00, z=255,06], EntityPig['Pig'/219, l='MpServer', x=-33,97, y=69,00, z=255,06], EntityPig['Pig'/220, l='MpServer', x=-36,91, y=70,00, z=246,84], EntityPig['Pig'/221, l='MpServer', x=-2,22, y=72,00, z=321,78], EntityPig['Pig'/222, l='MpServer', x=-3,81, y=72,00, z=320,19], EntityPig['Pig'/223, l='MpServer', x=-1,50, y=72,00, z=324,50], EntityPig['Pig'/224, l='MpServer', x=-11,03, y=73,00, z=316,06], EntityPig['Pig'/225, l='MpServer', x=24,50, y=64,00, z=242,50], EntityPig['Pig'/226, l='MpServer', x=24,50, y=66,00, z=246,50], EntityPig['Pig'/227, l='MpServer', x=24,50, y=64,00, z=242,50], EntityPig['Pig'/228, l='MpServer', x=26,50, y=66,00, z=246,50], EntityBat['Bat'/258, l='MpServer', x=-44,01, y=14,07, z=247,59], EntityBat['Bat'/259, l='MpServer', x=-15,44, y=20,10, z=274,69], EntitySquid['Squid'/272, l='MpServer', x=-85,84, y=58,31, z=263,50], EntitySquid['Squid'/274, l='MpServer', x=-83,50, y=57,34, z=264,50], EntitySquid['Squid'/276, l='MpServer', x=-82,50, y=58,00, z=266,66], EntitySquid['Squid'/278, l='MpServer', x=-82,50, y=58,38, z=265,50], EntitySquid['Squid'/279, l='MpServer', x=33,94, y=56,34, z=181,78], EntitySquid['Squid'/287, l='MpServer', x=29,09, y=53,78, z=190,63], EntitySquid['Squid'/288, l='MpServer', x=29,19, y=55,94, z=182,69], EntitySquid['Squid'/289, l='MpServer', x=31,72, y=54,94, z=185,50], EntitySquid['Squid'/290, l='MpServer', x=26,41, y=55,31, z=182,84], EntitySquid['Squid'/300, l='MpServer', x=34,25, y=61,34, z=305,97], EntitySquid['Squid'/301, l='MpServer', x=36,09, y=59,63, z=300,97], EntitySquid['Squid'/302, l='MpServer', x=34,63, y=60,25, z=300,03], EntitySquid['Squid'/304, l='MpServer', x=37,50, y=61,28, z=300,81], EntitySquid['Squid'/306, l='MpServer', x=38,50, y=60,34, z=298,56], EntitySquid['Squid'/307, l='MpServer', x=38,28, y=60,09, z=308,50], EntitySquid['Squid'/308, l='MpServer', x=35,72, y=61,16, z=298,81], EntitySquid['Squid'/310, l='MpServer', x=29,91, y=61,03, z=294,25], EntitySquid['Squid'/311, l='MpServer', x=35,78, y=60,09, z=295,47], EntitySquid['Squid'/360, l='MpServer', x=-78,50, y=51,00, z=306,50], EntitySquid['Squid'/361, l='MpServer', x=-79,69, y=50,34, z=305,44], EntitySquid['Squid'/362, l='MpServer', x=-79,56, y=51,28, z=308,22], EntitySquid['Squid'/363, l='MpServer', x=-81,88, y=51,34, z=304,22], EntitySquid['Squid'/364, l='MpServer', x=-77,63, y=50,03, z=300,50], EntitySquid['Squid'/414, l='MpServer', x=-42,72, y=59,22, z=212,88], EntitySquid['Squid'/415, l='MpServer', x=-44,50, y=62,31, z=205,16], EntitySquid['Squid'/416, l='MpServer', x=-41,69, y=62,38, z=217,72], EntitySquid['Squid'/417, l='MpServer', x=-39,59, y=60,00, z=206,56], EntitySquid['Squid'/418, l='MpServer', x=-45,66, y=62,31, z=201,78], EntitySquid['Squid'/419, l='MpServer', x=-54,69, y=59,66, z=203,72], EntitySquid['Squid'/420, l='MpServer', x=-37,97, y=61,38, z=208,41], EntitySquid['Squid'/421, l='MpServer', x=-44,41, y=62,34, z=202,50], EntitySquid['Squid'/422, l='MpServer', x=-50,50, y=61,22, z=207,56], EntitySquid['Squid'/463, l='MpServer', x=25,53, y=55,84, z=306,38], EntitySquid['Squid'/464, l='MpServer', x=32,75, y=52,72, z=310,53], EntitySquid['Squid'/465, l='MpServer', x=26,63, y=56,75, z=301,28], EntitySquid['Squid'/466, l='MpServer', x=31,31, y=56,97, z=298,19], EntitySquid['Squid'/468, l='MpServer', x=39,25, y=57,19, z=310,50], EntitySquid['Squid'/470, l='MpServer', x=29,50, y=57,38, z=308,34], EntitySquid['Squid'/471, l='MpServer', x=36,03, y=57,28, z=306,47], EntitySquid['Squid'/472, l='MpServer', x=23,25, y=55,78, z=304,66], EntitySquid['Squid'/473, l='MpServer', x=29,22, y=57,38, z=295,56], EntitySquid['Squid'/474, l='MpServer', x=32,97, y=55,91, z=296,34], EntitySquid['Squid'/499, l='MpServer', x=-32,97, y=62,38, z=212,06], EntitySquid['Squid'/500, l='MpServer', x=-39,84, y=61,38, z=215,56], EntitySquid['Squid'/501, l='MpServer', x=-26,03, y=61,14, z=214,34], EntitySquid['Squid'/502, l='MpServer', x=-30,47, y=61,78, z=212,53], EntitySquid['Squid'/503, l='MpServer', x=-36,50, y=61,34, z=207,50], EntitySquid['Squid'/504, l='MpServer', x=-34,48, y=60,19, z=220,51], EntitySquid['Squid'/505, l='MpServer', x=-36,69, y=61,88, z=213,16], EntitySquid['Squid'/506, l='MpServer', x=-24,56, y=60,38, z=215,20], EntitySquid['Squid'/507, l='MpServer', x=-33,31, y=57,31, z=216,50], EntityBat['Bat'/616, l='MpServer', x=-56,40, y=47,07, z=214,44], EntityBat['Bat'/667, l='MpServer', x=-85,13, y=37,45, z=170,72], EntityClientPlayerMP['Player67'/257, l='MpServer', x=-24,50, y=70,62, z=245,50], EntityBat['Bat'/749, l='MpServer', x=49,50, y=41,48, z=258,50], EntityBat['Bat'/753, l='MpServer', x=53,28, y=46,08, z=253,44], EntityItem['item.item.seeds'/4910, l='MpServer', x=-48,09, y=64,13, z=196,22], EntityItem['item.tile.flower2.poppy'/824, l='MpServer', x=12,34, y=64,13, z=292,59], EntityItem['item.item.seeds'/5085, l='MpServer', x=-45,66, y=64,13, z=195,25], EntityBat['Bat'/1427, l='MpServer', x=36,94, y=42,00, z=318,53], EntityBat['Bat'/1428, l='MpServer', x=38,69, y=42,14, z=321,53], EntityBat['Bat'/1433, l='MpServer', x=27,88, y=41,10, z=206,84], EntityBat['Bat'/1434, l='MpServer', x=26,25, y=44,10, z=211,75], EntityBat['Bat'/1435, l='MpServer', x=27,22, y=41,26, z=206,09], EntityBat['Bat'/1437, l='MpServer', x=26,75, y=42,10, z=202,75], EntityBat['Bat'/1441, l='MpServer', x=-67,13, y=55,12, z=246,47], EntityBat['Bat'/1442, l='MpServer', x=-73,75, y=60,51, z=247,53]] 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:2566) at net.minecraft.client.Minecraft.run(Minecraft.java:984) 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 10 (amd64) version 10.0 Java Version: 1.8.0_60, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 727501560 bytes (693 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: 13, tallocated: 95 FML: MCP v9.05 FML v7.10.130.1395 Minecraft Forge 10.13.3.1395 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->Available->Available->Available->Available->Available FML{7.10.130.1395} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available Forge{10.13.3.1395} [Minecraft Forge] (forgeSrc-1.7.10-10.13.3.1395-1710ls.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available serveur{1.3.0} [serveur] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1151.1004' Renderer: 'AMD Radeon R9 200 Series' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon R9 200 Series GL version 4.5.13399 Compatibility Profile Context 15.201.1151.1004, ATI Technologies Inc. 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) [04:06:46] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Mosca421\Desktop\Paladium\eclipse\.\crash-reports\crash-2015-10-27_04.06.46-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
-
Tu as un problème de rendu sur l’item, il a l’air d’être null
-
Le problème c’est que le bloc je ne le vois pas null =/
-
Envoies ton code car en effet l’item ou le bloc qui est en train d’être rendu est null.
-
Le code du bloc Très détailler =p :
package fr.Mosca421.mods.Blocs; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class PaladiumBloc extends Block { public PaladiumBloc(Material material) { super(material); } }
Classe principale #Bordel :
package fr.Mosca421.mods; import java.io.File; import com.google.common.base.Throwables; 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.network.NetworkRegistry; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import fr.Mosca421.mods.Armures.ArmureMobs; import fr.Mosca421.mods.Armures.ArmurePaladium; import fr.Mosca421.mods.Armures.Armureamethyst; import fr.Mosca421.mods.Armures.Armuretitane; import fr.Mosca421.mods.Blocs.Andesite; import fr.Mosca421.mods.Blocs.Andesitep; import fr.Mosca421.mods.Blocs.Diorite; import fr.Mosca421.mods.Blocs.Dioritep; import fr.Mosca421.mods.Blocs.Granite; import fr.Mosca421.mods.Blocs.Granitep; import fr.Mosca421.mods.Blocs.PaladiumBloc; import fr.Mosca421.mods.Blocs.PaladiumBloclumi; import fr.Mosca421.mods.Blocs.PaladiumOre; import fr.Mosca421.mods.Blocs.TitaneBloc; import fr.Mosca421.mods.Blocs.TitaneOre; import fr.Mosca421.mods.Blocs.amethystBloc; import fr.Mosca421.mods.Blocs.amethystOre; import fr.Mosca421.mods.Blocs.fencequartz; import fr.Mosca421.mods.Blocs.findiumore; import fr.Mosca421.mods.Blocs.invisible; import fr.Mosca421.mods.Dynamite.EntityDynamite; import fr.Mosca421.mods.Enchantement.EnchantmentHandler; import fr.Mosca421.mods.Generation.WorldGenerationminerai; import fr.Mosca421.mods.Items.CompressPaladium; import fr.Mosca421.mods.Items.ItemDynamite; import fr.Mosca421.mods.Items.Paladium; import fr.Mosca421.mods.Items.Titane; import fr.Mosca421.mods.Items.amethyst; import fr.Mosca421.mods.Items.bigring; import fr.Mosca421.mods.Items.ficellediams; import fr.Mosca421.mods.Items.findium; import fr.Mosca421.mods.Items.healstick; import fr.Mosca421.mods.Items.itemPaladiumaxe; import fr.Mosca421.mods.Items.itemPaladiumepee; import fr.Mosca421.mods.Items.itemPaladiumpickaxe; import fr.Mosca421.mods.Items.itemPaladiumshovel; import fr.Mosca421.mods.Items.itemamethystaxe; import fr.Mosca421.mods.Items.itemamethystepee; import fr.Mosca421.mods.Items.itemamethystpickaxe; import fr.Mosca421.mods.Items.itemamethystshovel; import fr.Mosca421.mods.Items.itemmobsaxe; import fr.Mosca421.mods.Items.itemmobsepee; import fr.Mosca421.mods.Items.itemmobspickaxe; import fr.Mosca421.mods.Items.itemmobsshovel; import fr.Mosca421.mods.Items.itemtitaneaxe; import fr.Mosca421.mods.Items.itemtitaneepee; import fr.Mosca421.mods.Items.itemtitanepickaxe; import fr.Mosca421.mods.Items.itemtitaneshovel; import fr.Mosca421.mods.Items.jumpstick; import fr.Mosca421.mods.Items.legendaryring; import fr.Mosca421.mods.Items.mediumring; import fr.Mosca421.mods.Items.milkpotion; import fr.Mosca421.mods.Items.openbucket; import fr.Mosca421.mods.Items.orbe; import fr.Mosca421.mods.Items.smallring; import fr.Mosca421.mods.Items.speedstick; import fr.Mosca421.mods.Items.stickpala; import fr.Mosca421.mods.Items.strengthstick; import fr.Mosca421.mods.MachinePala.GuiHandler; import fr.Mosca421.mods.MachinePala.MachinePala; import fr.Mosca421.mods.MachinePala.TileEntityMachinePala; import fr.Mosca421.mods.proxy.commonproxy; import fr.Mosca421.mods.recipe.RecipeMachine; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; 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.ItemBucketMilk; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; @Mod(modid = "serveur", name = "serveur", version = "1.3.0") public class Mods { public static final String MODID = "serveur"; @Instance("serveur") public static Mods instance; @SidedProxy(clientSide = "fr.Mosca421.mods.proxy.clientproxy", serverSide = "fr.Mosca421.mods.proxy.commonproxy") public static commonproxy proxy; //===================================== Blocs public static Block amethystBloc, amethystOre; public static Block PaladiumOre; public static Block PaladiumBloc; public Block PaladiumBloclumi; public static Block MachinePala; public static Block TitaneOre, TitaneBloc; public static Block invisible, fencequartz, findiumore; public static Block Andesite, Granite, Diorite; public static Block Dioritep, Andesitep, Granitep; //End================================== Blocs //===================================== Items public static Item findium, amethyst, Paladium, Titane, openbucket; public static Item casqueamethyst, plastronamethyst, pantalonamethyst, botteamethyst; public static Item casquePaladium, plastronPaladium, pantalonPaladium, bottePaladium; public static Item casquetitane, plastrontitane, pantalontitane, bottetitane; public static Item epeeamethyst, hoeamethyst, axeamethyst, pickaxeamethyst, shovelamethyst; public static Item epeePaladium, hoePaladium, axePaladium, pickaxePaladium, shovelPaladium; public static Item epeetitane, hoetitane, axetitane, pickaxetitane, shoveltitane; public static Item dynamite; public static Item ficellediams; public static Item skinepeePaladium1, skinepeePaladium2, skinepeePaladium3; public static Item skinepeeamethyst1, skinepeeamethyst2, skinepeeamethyst3; public static Item skinepeetitane1, skinepeetitane2, skinepeetitane3; public static Item casquemobs, plastronmobs, pantalonmobs, bottemobs; public static Item epeemobs, pickaxemobs, axemobs, shovelmobs; public static Item smallring, mediumring, bigring, legendaryring; public static Item healstick, strengthstick, speedstick, jumpstick; public static Item CompressPaladium; public static Item orbespeed, orbeheal, orbestrength, stickpala; public static Item milkpotion, fallpotion; public static Enchantment depthstrider; //End================================== Items //===================================== Armure stats public static ArmorMaterial Armureamethyst = EnumHelper.addArmorMaterial("Armureamethyst", 180, new int[] {4, 6, 6, 3}, 15); public static ArmorMaterial ArmurePaladium = EnumHelper.addArmorMaterial("ArmurePaladium", 220, new int[] {5, 7, 6, 5}, 21); public static ArmorMaterial Armuretitane = EnumHelper.addArmorMaterial("Armuretitane", 200, new int[] {4, 8, 6, 4}, 17); public static ArmorMaterial Armuremobs = EnumHelper.addArmorMaterial("Armuremobs", 250, new int[] {6, 7, 5, 6}, 23); //End================================== Armure stats //===================================== Armes stats public static ToolMaterial toolmobs = EnumHelper.addToolMaterial("toolmobs", 3, 6999, 40.0F, 7.0F, 50); public static ToolMaterial toolamethyst = EnumHelper.addToolMaterial("toolamethyst", 3, 1999, 20.0F, 4.0F, 25); public static ToolMaterial toolPaladium = EnumHelper.addToolMaterial("toolPaladium", 3, 4999, 30.0F, 6.0F, 40); public static ToolMaterial tooltitane = EnumHelper.addToolMaterial("tooltitane", 3, 2999, 23.0F, 5.0F, 30); //End================================== Armes stats @EventHandler public void preInit(FMLPreInitializationEvent event) { /* if(event.getSide().isClient()) { if(!Minecraft.getMinecraft().mcDataDir.getAbsolutePath().contains("Paladium") && !Minecraft.getMinecraft().mcDataDir.equals(new File("."))) { Throwables.propagate(new Exception("Launcher non autorise Cherche pas !")); } } */ //======================================== Machines MachinePala = new MachinePala().setBlockName("MachinePala"); //End ==================================== Machines //======================================== Blocs Diorite = new Diorite(Material.rock).setBlockName("Diorite").setBlockTextureName("serveur:Diorite").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); Dioritep = new Dioritep(Material.rock).setBlockName("Dioritep").setBlockTextureName("serveur:Dioritep").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); Andesitep = new Andesitep(Material.rock).setBlockName("Andesitep").setBlockTextureName("serveur:Andesitep").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); Andesite = new Andesite(Material.rock).setBlockName("Andesite").setBlockTextureName("serveur:Andesite").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); Granite = new Granite(Material.rock).setBlockName("Granite").setBlockTextureName("serveur:Granite").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); Granitep = new Granitep(Material.rock).setBlockName("Granitep").setBlockTextureName("serveur:Granitep").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); invisible = new invisible(Material.air).setHardness(9999F).setResistance(9999F).setBlockName("invisible").setBlockTextureName("serveur:invisible").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F) ; fencequartz = new fencequartz("serveur:Quartzblanc").setBlockName("FenceQuartz").setCreativeTab(CreativeTabs.tabDecorations); //End ==================================== Blocs //======================================== Minerais findiumore = new findiumore(Material.rock).setBlockName("findiumore").setBlockTextureName("serveur:findiumore").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); amethystBloc = new amethystBloc(Material.rock).setBlockName("Blocdeamethyst").setBlockTextureName("serveur:blocamethyst").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); amethystOre = new amethystOre(Material.rock).setBlockName("Mineraideamethyst").setBlockTextureName("serveur:amethystore").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); PaladiumBloc = new PaladiumBloc(Material.rock).setBlockName("BlocdePaladium").setBlockTextureName("serveur:Paladiumbloc").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); PaladiumBloclumi = new PaladiumBloclumi(Material.rock).setBlockName("PaladiumBloclumi").setBlockTextureName("serveur:Paladiumbloc").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F).setLightLevel(1.0F); PaladiumOre = new PaladiumOre(Material.rock).setBlockName("MineraidePaladium").setBlockTextureName("serveur:Paladiumore").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); TitaneBloc = new TitaneBloc(Material.rock).setBlockName("BlocdeTitane").setBlockTextureName("serveur:bloctitane").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); TitaneOre = new TitaneOre(Material.rock).setBlockName("MineraideTitane").setBlockTextureName("serveur:titaneore").setCreativeTab(CreativeTabs.tabBlock).setResistance(2.0F).setHardness(2.0F); depthstrider = new EnchantmentHandler().setName("depthstrider"); //End ==================================== Minerais //======================================== Item stickpala = new stickpala().setUnlocalizedName("stickpala").setTextureName("serveur:stickpala").setCreativeTab(CreativeTabs.tabMaterials); CompressPaladium = new CompressPaladium().setUnlocalizedName("CompressPaladium").setTextureName("serveur:CompressPaladium").setCreativeTab(CreativeTabs.tabMaterials); orbespeed = new orbe().setUnlocalizedName("orbespeed").setTextureName("serveur:orbespeed").setCreativeTab(CreativeTabs.tabMaterials); orbestrength = new orbe().setUnlocalizedName("orbestrength").setTextureName("serveur:orbestrength").setCreativeTab(CreativeTabs.tabMaterials); orbeheal = new orbe().setUnlocalizedName("orbeheal").setTextureName("serveur:orbeheal").setCreativeTab(CreativeTabs.tabMaterials); jumpstick = new jumpstick().setUnlocalizedName("jumpstick").setTextureName("serveur:jumpstick").setCreativeTab(CreativeTabs.tabCombat); healstick = new healstick().setUnlocalizedName("healstick").setTextureName("serveur:healstick").setCreativeTab(CreativeTabs.tabCombat); speedstick = new speedstick().setUnlocalizedName("speedstick").setTextureName("serveur:speedstick").setCreativeTab(CreativeTabs.tabCombat); strengthstick = new strengthstick().setUnlocalizedName("strengthstick").setTextureName("serveur:strengthstick").setCreativeTab(CreativeTabs.tabCombat); smallring = new smallring().setUnlocalizedName("smallring").setTextureName("serveur:smallring").setCreativeTab(CreativeTabs.tabTools); mediumring = new mediumring().setUnlocalizedName("mediumring").setTextureName("serveur:mediumring").setCreativeTab(CreativeTabs.tabTools); bigring = new bigring().setUnlocalizedName("bigring").setTextureName("serveur:bigring").setCreativeTab(CreativeTabs.tabTools); legendaryring = new legendaryring().setUnlocalizedName("legendaryring").setTextureName("serveur:legendaryring").setCreativeTab(CreativeTabs.tabTools); openbucket = new openbucket().setUnlocalizedName("openbucket").setTextureName("serveur:openbucket").setCreativeTab(CreativeTabs.tabTools); amethyst = new amethyst().setUnlocalizedName("amethyst").setTextureName("serveur:amethyst").setCreativeTab(CreativeTabs.tabMaterials); Titane = new Titane().setUnlocalizedName("Titane").setTextureName("serveur:titane").setCreativeTab(CreativeTabs.tabMaterials); Paladium = new Paladium().setUnlocalizedName("Paladium").setTextureName("serveur:Paladium").setCreativeTab(CreativeTabs.tabMaterials); ficellediams = new ficellediams().setUnlocalizedName("ficellediams").setTextureName("serveur:ficellediams").setCreativeTab(CreativeTabs.tabMaterials); findium = new findium().setUnlocalizedName("findium").setTextureName("serveur:findium").setCreativeTab(CreativeTabs.tabMaterials); milkpotion = new milkpotion().setUnlocalizedName("milkpotion").setTextureName("serveur:milkpotion").setCreativeTab(CreativeTabs.tabBrewing); dynamite = new ItemDynamite("dynamite").setTextureName("serveur:dynamite").setUnlocalizedName("dynamite").setCreativeTab(CreativeTabs.tabCombat); //End ==================================== Item //====================================== Armures //Amethyst casqueamethyst = new Armureamethyst(Armureamethyst, 0).setUnlocalizedName("casqueamethyst").setTextureName("serveur:casqueamethyst").setCreativeTab(CreativeTabs.tabCombat); plastronamethyst = new Armureamethyst(Armureamethyst, 1).setUnlocalizedName("plastronamethyst").setTextureName("serveur:plastronamethyst").setCreativeTab(CreativeTabs.tabCombat); pantalonamethyst = new Armureamethyst(Armureamethyst, 2).setUnlocalizedName("pantalonamethyst").setTextureName("serveur:pantalonamethyst").setCreativeTab(CreativeTabs.tabCombat); botteamethyst = new Armureamethyst(Armureamethyst, 3).setUnlocalizedName("botteamethyst").setTextureName("serveur:botteamethyst").setCreativeTab(CreativeTabs.tabCombat); //End=Amethyst //Titane casquetitane = new Armuretitane(Armuretitane, 0).setUnlocalizedName("casquetitane").setTextureName("serveur:casquetitane").setCreativeTab(CreativeTabs.tabCombat); plastrontitane = new Armuretitane(Armuretitane, 1).setUnlocalizedName("plastrontitane").setTextureName("serveur:plastrontitane").setCreativeTab(CreativeTabs.tabCombat); pantalontitane = new Armuretitane(Armuretitane, 2).setUnlocalizedName("pantalontitane").setTextureName("serveur:pantalontitane").setCreativeTab(CreativeTabs.tabCombat); bottetitane = new Armuretitane(Armuretitane, 3).setUnlocalizedName("bottetitane").setTextureName("serveur:bottetitane").setCreativeTab(CreativeTabs.tabCombat); //End=Titane //Paladium casquePaladium = new ArmurePaladium(ArmurePaladium, 0).setUnlocalizedName("casquePaladium").setTextureName("serveur:casquePaladium").setCreativeTab(CreativeTabs.tabCombat); plastronPaladium = new ArmurePaladium(ArmurePaladium, 1).setUnlocalizedName("plastronPaladium").setTextureName("serveur:plastronPaladium").setCreativeTab(CreativeTabs.tabCombat); pantalonPaladium = new ArmurePaladium(ArmurePaladium, 2).setUnlocalizedName("pantalonPaladium").setTextureName("serveur:pantalonPaladium").setCreativeTab(CreativeTabs.tabCombat); bottePaladium = new ArmurePaladium(ArmurePaladium, 3).setUnlocalizedName("bottePaladium").setTextureName("serveur:bottePaladium").setCreativeTab(CreativeTabs.tabCombat); //End=Paladium //Endium casquemobs = new ArmureMobs(Armuremobs, 0).setUnlocalizedName("casquemobs").setTextureName("serveur:casquemobs").setCreativeTab(CreativeTabs.tabCombat); plastronmobs = new ArmureMobs(Armuremobs, 1).setUnlocalizedName("plastronmobs").setTextureName("serveur:plastronmobs").setCreativeTab(CreativeTabs.tabCombat); pantalonmobs = new ArmureMobs(Armuremobs, 2).setUnlocalizedName("pantalonmobs").setTextureName("serveur:pantalonmobs").setCreativeTab(CreativeTabs.tabCombat); bottemobs = new ArmureMobs(Armuremobs, 3).setUnlocalizedName("bottemobs").setTextureName("serveur:bottemobs").setCreativeTab(CreativeTabs.tabCombat); //End=Endium //End ================================== Armures //===================================== Kits Tools //Amethyst skinepeeamethyst1 = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeeamethyst").setTextureName("serveur:epeeamethyst1"); skinepeeamethyst2 = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeeamethyst").setTextureName("serveur:epeeamethyst2"); skinepeeamethyst3 = new itemPaladiumepee(toolamethyst).setUnlocalizedName("epeeamethyst").setTextureName("serveur:epeeamethyst3"); epeeamethyst = new itemamethystepee(toolamethyst).setUnlocalizedName("epeeamethyst").setTextureName("serveur:epeeamethyst"); pickaxeamethyst = new itemamethystpickaxe(toolamethyst).setUnlocalizedName("pickaxeamethyst").setTextureName("serveur:pickaxeamethyst"); axeamethyst = new itemamethystaxe(toolamethyst).setUnlocalizedName("axeamethyst").setTextureName("serveur:axeamethyst"); shovelamethyst = new itemamethystshovel(toolamethyst).setUnlocalizedName("shovelamethyst").setTextureName("serveur:shovelamethyst"); //End=Amethyst //Titane skinepeetitane1 = new itemPaladiumepee(tooltitane).setUnlocalizedName("epeetitane").setTextureName("serveur:epeetitane1"); skinepeetitane2 = new itemPaladiumepee(tooltitane).setUnlocalizedName("epeetitane").setTextureName("serveur:epeetitane2"); skinepeetitane3 = new itemPaladiumepee(tooltitane).setUnlocalizedName("epeetitane").setTextureName("serveur:epeetitane3"); epeetitane = new itemtitaneepee(tooltitane).setUnlocalizedName("epeetitane").setTextureName("serveur:epeetitane"); pickaxetitane = new itemtitanepickaxe(tooltitane).setUnlocalizedName("pickaxetitane").setTextureName("serveur:pickaxetitane"); axetitane = new itemtitaneaxe(tooltitane).setUnlocalizedName("axetitane").setTextureName("serveur:axetitane"); shoveltitane = new itemtitaneshovel(tooltitane).setUnlocalizedName("shoveltitane").setTextureName("serveur:shoveltitane"); //End=Titane //Paladium skinepeePaladium1 = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeePaladium").setTextureName("serveur:epeePaladium1"); skinepeePaladium2 = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeePaladium").setTextureName("serveur:epeePaladium2"); skinepeePaladium3 = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeePaladium").setTextureName("serveur:epeePaladium3"); epeePaladium = new itemPaladiumepee(toolPaladium).setUnlocalizedName("epeePaladium").setTextureName("serveur:epeePaladium"); pickaxePaladium = new itemPaladiumpickaxe(toolPaladium).setUnlocalizedName("pickaxePaladium").setTextureName("serveur:pickaxePaladium"); axePaladium = new itemPaladiumaxe(toolPaladium).setUnlocalizedName("axePaladium").setTextureName("serveur:axePaladium"); shovelPaladium = new itemPaladiumshovel(toolPaladium).setUnlocalizedName("shovelPaladium").setTextureName("serveur:shovelPaladium"); //End=Paladium //Endium epeemobs = new itemmobsepee(toolmobs).setUnlocalizedName("epeemobs").setTextureName("serveur:epeemobs"); pickaxemobs = new itemmobspickaxe(toolmobs).setUnlocalizedName("pickaxemobs").setTextureName("serveur:pickaxemobs"); axemobs = new itemmobsaxe(toolmobs).setUnlocalizedName("axemobs").setTextureName("serveur:axemobs"); shovelmobs = new itemmobsshovel(toolmobs).setUnlocalizedName("shovelmobs").setTextureName("serveur:shovelmobs"); //End=Endium //End ================================= Kits Tools //========================================== Recette GameRegistry.addRecipe(new ItemStack(CompressPaladium), new Object[]{"XXX", "XYX", "XXX", 'Y', Mods.Paladium, 'X', new ItemStack(Mods.PaladiumBloc)}); GameRegistry.addRecipe(new ItemStack(milkpotion, 4), new Object[]{" X ", "XYX", " X ", 'Y', Items.glass_bottle, 'X', new ItemStack(Items.milk_bucket)}); GameRegistry.addRecipe(new ItemStack(dynamite), new Object[]{" Y ", " X ", " X ", 'Y', ficellediams, 'X', new ItemStack(Blocks.tnt)}); GameRegistry.addRecipe(new ItemStack(TitaneBloc), new Object[]{"XXX", "XXX", "XXX", 'X', Titane}); GameRegistry.addRecipe(new ItemStack(orbeheal), new Object[]{" X ", "XYX", " X ", 'Y', Items.speckled_melon, 'X', new ItemStack(Paladium)}); GameRegistry.addRecipe(new ItemStack(orbestrength), new Object[]{" X ", "XYX", " X ", 'Y', Items.blaze_powder, 'X', new ItemStack(Paladium)}); GameRegistry.addRecipe(new ItemStack(orbespeed), new Object[]{" X ", "XYX", " X ", 'Y', Items.sugar, 'X', new ItemStack(Paladium)}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{" X ", " X ", " ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{" X", " X", " ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{"X ", "X ", " ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{" ", "X ", "X ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{" ", " X ", " X ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(stickpala), new Object[]{" ", " X", " X", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(PaladiumBloc), new Object[]{"XXX", "XXX", "XXX", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(amethystBloc), new Object[]{"XXX", "XXX", "XXX", 'X', amethyst}); GameRegistry.addRecipe(new ItemStack(openbucket), new Object[]{"X X", " Y ", " ", 'Y', PaladiumBloc, 'X', new ItemStack(Items.bucket)}); GameRegistry.addRecipe(new ItemStack(openbucket), new Object[]{" ", "X X", " Y ", 'Y', PaladiumBloc, 'X', new ItemStack(Items.bucket)}); GameRegistry.addRecipe(new ItemStack(Dioritep, 4), new Object[]{"XX ", "XX ", " ", 'X', Diorite}); GameRegistry.addRecipe(new ItemStack(Dioritep, 4), new Object[]{" XX", " XX", " ", 'X', Diorite}); GameRegistry.addRecipe(new ItemStack(Dioritep, 4), new Object[]{" ", "XX ", "XX ", 'X', Diorite}); GameRegistry.addRecipe(new ItemStack(Dioritep, 4), new Object[]{" ", " XX", " XX", 'X', Diorite}); GameRegistry.addRecipe(new ItemStack(Andesitep, 4), new Object[]{"XX ", "XX ", " ", 'X', Andesite}); GameRegistry.addRecipe(new ItemStack(Andesitep, 4), new Object[]{" XX", " XX", " ", 'X', Andesite}); GameRegistry.addRecipe(new ItemStack(Andesitep, 4), new Object[]{" ", "XX ", "XX ", 'X', Andesite}); GameRegistry.addRecipe(new ItemStack(Andesitep, 4), new Object[]{" ", " XX", " XX", 'X', Andesite}); GameRegistry.addRecipe(new ItemStack(Granitep, 4), new Object[]{"XX ", "XX ", " ", 'X', Granite}); GameRegistry.addRecipe(new ItemStack(Granitep, 4), new Object[]{" XX", " XX", " ", 'X', Granite}); GameRegistry.addRecipe(new ItemStack(Granitep, 4), new Object[]{" ", "XX ", "XX ", 'X', Granite}); GameRegistry.addRecipe(new ItemStack(Granitep, 4), new Object[]{" ", " XX", " XX", 'X', Granite}); GameRegistry.addRecipe(new ItemStack(casquetitane), new Object[]{"XXX", "X X", " ", 'X', Titane}); GameRegistry.addRecipe(new ItemStack(plastrontitane), new Object[]{"X X", "XXX", "XXX", 'X', Titane}); GameRegistry.addRecipe(new ItemStack(pantalontitane), new Object[]{"XXX", "X X", "X X", 'X', Titane}); GameRegistry.addRecipe(new ItemStack(bottetitane), new Object[]{" ", "X X", "X X", 'X', Titane}); GameRegistry.addRecipe(new ItemStack(casqueamethyst), new Object[]{"XXX", "X X", " ", 'X', amethyst}); GameRegistry.addRecipe(new ItemStack(plastronamethyst), new Object[]{"X X", "XXX", "XXX", 'X', amethyst}); GameRegistry.addRecipe(new ItemStack(pantalonamethyst), new Object[]{"XXX", "X X", "X X", 'X', amethyst}); GameRegistry.addRecipe(new ItemStack(botteamethyst), new Object[]{" ", "X X", "X X", 'X', amethyst}); GameRegistry.addRecipe(new ItemStack(casquePaladium), new Object[]{"XXX", "X X", " ", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(plastronPaladium), new Object[]{"X X", "XXX", "XXX", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(pantalonPaladium), new Object[]{"XXX", "X X", "X X", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(bottePaladium), new Object[]{" ", "X X", "X X", 'X', Paladium}); GameRegistry.addRecipe(new ItemStack(epeetitane), new Object[]{" X ", " X ", " Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axetitane), new Object[]{"XX ", "XY ", " Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(pickaxetitane), new Object[]{"XXX", " Y ", " Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shoveltitane), new Object[]{" X ", " Y ", " Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axetitane), new Object[]{" XX", " YX", " Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shoveltitane), new Object[]{" X", " Y", " Y", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shoveltitane), new Object[]{"X ", "Y ", "Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeetitane), new Object[]{" X", " X", " Y", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeetitane), new Object[]{"X ", "X ", "Y ", 'X', Titane, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeeamethyst), new Object[]{" X ", " X ", " Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axeamethyst), new Object[]{"XX ", "XY ", " Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(pickaxeamethyst), new Object[]{"XXX", " Y ", " Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelamethyst), new Object[]{" X ", " Y ", " Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axeamethyst), new Object[]{" XX", " YX", " Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelamethyst), new Object[]{" X", " Y", " Y", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelamethyst), new Object[]{"X ", "Y ", "Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeeamethyst), new Object[]{" X", " X", " Y", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeeamethyst), new Object[]{"X ", "X ", "Y ", 'X', amethyst, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeePaladium), new Object[]{" X ", " X ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axePaladium), new Object[]{"XX ", "XY ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(pickaxePaladium), new Object[]{"XXX", " Y ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelPaladium), new Object[]{" X ", " Y ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(hoePaladium), new Object[]{"XX ", " Y ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(axePaladium), new Object[]{" XX", " YX", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelPaladium), new Object[]{" X", " Y", " Y", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(hoePaladium), new Object[]{" XX", " Y ", " Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(shovelPaladium), new Object[]{"X ", "Y ", "Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeePaladium), new Object[]{" X", " X", " Y", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(epeePaladium), new Object[]{"X ", "X ", "Y ", 'X', Paladium, 'Y', new ItemStack(Items.stick)}); GameRegistry.addRecipe(new ItemStack(ficellediams, 8), new Object[]{"YXY", "YXY", "YXY", 'X', new ItemStack(Items.string), 'Y', new ItemStack(Items.diamond)}); //End ====================================== Recette //========================================== Register GameRegistry.registerItem(orbeheal, "orbeheal"); GameRegistry.registerItem(stickpala, "stickpala"); GameRegistry.registerItem(orbespeed, "orbespeed"); GameRegistry.registerItem(orbestrength, "orbestrength"); GameRegistry.registerItem(CompressPaladium, "CompressPaladium"); GameRegistry.registerBlock(MachinePala, "MachinePala"); GameRegistry.registerItem(milkpotion, "milkpotion"); GameRegistry.registerItem(healstick, "healstick"); GameRegistry.registerItem(jumpstick, "jumpstick"); GameRegistry.registerItem(strengthstick, "strengthstick"); GameRegistry.registerItem(speedstick, "speedstick"); GameRegistry.registerItem(dynamite, "dynamite"); GameRegistry.registerBlock(Granite, "Granite"); GameRegistry.registerBlock(invisible, "invisible"); GameRegistry.registerBlock(Granitep, "Granite Polie"); GameRegistry.registerBlock(Andesite, "Andesite"); GameRegistry.registerBlock(Andesitep, "Andesite Polie"); GameRegistry.registerBlock(Diorite, "Diorite"); GameRegistry.registerBlock(Dioritep, "Diorite Polie"); GameRegistry.registerBlock(fencequartz, "Quartz Fence"); GameRegistry.registerItem(legendaryring, "legendaryring"); GameRegistry.registerItem(bigring, "bigring"); GameRegistry.registerItem(mediumring, "mediumring"); GameRegistry.registerItem(smallring, "smallring"); GameRegistry.registerBlock(findiumore, "Minerai de findium"); GameRegistry.registerItem(findium, "Findium"); GameRegistry.registerBlock(amethystOre, "Minerai de amethyst"); GameRegistry.registerBlock(PaladiumBloclumi, "Bloc De Paladium Lumineux"); GameRegistry.registerBlock(amethystBloc, "Bloc de amethyst"); GameRegistry.registerBlock(PaladiumOre, "Minerai de Paladium"); GameRegistry.registerBlock(PaladiumBloc, "Bloc de Paladium"); GameRegistry.registerBlock(TitaneOre, "Minerai de Titane"); GameRegistry.registerBlock(TitaneBloc, "Bloc de Titane"); GameRegistry.registerItem(Paladium, "Paladium"); GameRegistry.registerItem(openbucket, "openbucket"); GameRegistry.registerItem(Titane, "Titane"); GameRegistry.registerItem(amethyst, "amethyst"); GameRegistry.registerItem(casqueamethyst, "casqueamethyst"); GameRegistry.registerItem(plastronamethyst, "plastronamethyst"); GameRegistry.registerItem(pantalonamethyst, "pantalonamethyst"); GameRegistry.registerItem(botteamethyst, "botteamethyst"); GameRegistry.registerItem(casquePaladium, "casquePaladium"); GameRegistry.registerItem(plastronPaladium, "plastronPaladium"); GameRegistry.registerItem(pantalonPaladium, "pantalonPaladium"); GameRegistry.registerItem(bottePaladium, "bottePaladium"); GameRegistry.registerItem(casquetitane, "casquetitane"); GameRegistry.registerItem(plastrontitane, "plastrontitane"); GameRegistry.registerItem(pantalontitane, "pantalontitane"); GameRegistry.registerItem(bottetitane, "bottetitane"); GameRegistry.registerItem(epeeamethyst, "epeeamethyst"); GameRegistry.registerItem(pickaxeamethyst, "pickaxeamethyst"); GameRegistry.registerItem(axeamethyst, "axeamethyst"); GameRegistry.registerItem(shovelamethyst, "shovelamethyst"); GameRegistry.registerItem(epeePaladium, "epeePaladium"); GameRegistry.registerItem(pickaxePaladium, "pickaxePaladium"); GameRegistry.registerItem(axePaladium, "axePaladium"); GameRegistry.registerItem(shovelPaladium, "shovelPaladium"); GameRegistry.registerItem(epeetitane, "epeetitane"); GameRegistry.registerItem(pickaxetitane, "pickaxetitane"); GameRegistry.registerItem(axetitane, "axetitane"); GameRegistry.registerItem(shoveltitane, "shoveltitane"); GameRegistry.registerItem(ficellediams, "ficellediams"); GameRegistry.registerItem(skinepeePaladium1, "skinepeePaladium1"); GameRegistry.registerItem(skinepeePaladium2, "skinepeePaladium2"); GameRegistry.registerItem(skinepeePaladium3, "skinepeePaladium3"); GameRegistry.registerItem(skinepeeamethyst1, "skinepeeamethyst1"); GameRegistry.registerItem(skinepeeamethyst2, "skinepeeamethyst2"); GameRegistry.registerItem(skinepeeamethyst3, "skinepeeamethyst3"); GameRegistry.registerItem(skinepeetitane1, "skinepeetitane1"); GameRegistry.registerItem(skinepeetitane2, "skinepeetitane2"); GameRegistry.registerItem(skinepeetitane3, "skinepeetitane3"); GameRegistry.registerItem(casquemobs, "casquemobs"); GameRegistry.registerItem(plastronmobs, "plastronmobs"); GameRegistry.registerItem(pantalonmobs, "pantalonmobs"); GameRegistry.registerItem(bottemobs, "bottemobs"); GameRegistry.registerItem(epeemobs, "epeemobs"); GameRegistry.registerItem(axemobs, "axemobs"); GameRegistry.registerItem(pickaxemobs, "pickaxemobs"); GameRegistry.registerItem(shovelmobs, "shovelmobs"); //End ====================================== Register //================================== Craft Four GameRegistry.addSmelting(amethystOre, new ItemStack(amethyst, 1), 1.0F); GameRegistry.addSmelting(PaladiumOre, new ItemStack(Paladium, 1), 1.0F); GameRegistry.addSmelting(TitaneOre, new ItemStack(Titane, 1), 1.0F); GameRegistry.addSmelting(findiumore, new ItemStack(findium, 1), 1.0F); //End ============================== Craft Four //================================== UnCraft Blocs GameRegistry.addShapelessRecipe(new ItemStack(amethyst, 9), new Object[]{ new ItemStack(amethystBloc, 1)}); GameRegistry.addShapelessRecipe(new ItemStack(Paladium, 9), new Object[]{ new ItemStack(PaladiumBloc, 1)}); GameRegistry.addShapelessRecipe(new ItemStack(Titane, 9), new Object[]{ new ItemStack(TitaneBloc, 1)}); //End ============================== UnCraft Blocs WorldGenerationminerai worldgeneration = new WorldGenerationminerai(); EntityRegistry.registerModEntity(EntityDynamite.class, "dynamite", 7, this, 64, 20, true); } @EventHandler public void init(FMLInitializationEvent event) { proxy.registerRender(); WorldGenerationminerai worldgeneration = new WorldGenerationminerai(); GameRegistry.registerTileEntity(TileEntityMachinePala.class, "serveur:MachinePala"); NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler()); GameRegistry.registerWorldGenerator(new WorldGenerationminerai(), 0); } @EventHandler public void postInit(FMLPostInitializationEvent event) { WorldGenerationminerai worldgeneration = new WorldGenerationminerai(); } }
Ps Le crash ne se passe que sur les Blocs, pas les items
-
Les recettes doivent être dans init et non dans preInit.
-
C’est un peu le bordel, il FAUT respecter la convention Java.
-
C’est un de mes tout premier mod =p la convention je connaisais mais pas encore a jour sur se mod
Faut que je le fasse