
Eaglenator
Members-
Posts
36 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
Eaglenator's Achievements

Tree Puncher (2/8)
0
Reputation
-
and where is FoodStats?
-
I will work in a Mod that haves four new bars and they works like the hugry bar, I need the codes of that bar, where I find that class?
-
ok, thanks all, for now, I will ask you a last thing, where I learn Java?
-
ItemStack constructor? you mean to ItemStack.java or to the codes with "ItemStack". Sequituri: You won the bet, I don't program in Java much, that's the reason why I'm in this forum
-
I finded two code lines that make mention to the ItemStack in the crash report: at net.minecraft.item.ItemStack.<init>(ItemStack.java:82) both says the same thing but I don't find the object that's null
-
sorry for the second topic, but, what I must do?
-
yes, sorry, I forget the crash report, this is: ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe! Time: 16/11/13 01:00 PM Description: Initializing game java.lang.NullPointerException at net.minecraft.item.ItemStack.<init>(ItemStack.java:82) at example.items.Items.registerRecipes(Items.java:21) at example.Itz.load(Itz.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:698) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249) at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.item.ItemStack.<init>(ItemStack.java:82) at example.items.Items.registerRecipes(Items.java:21) at example.Itz.load(Itz.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:698) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249) at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.7.0_40, Oracle Corporation Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation Memory: 991219872 bytes (945 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.11 FML v6.4.38.942 Minecraft Forge 9.11.1.942 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{6.4.38.942} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized Forge{9.11.1.942} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized Obsidiana{1.6.4.1.0.1} [itz] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: AMD Radeon HD 6310M GL version 4.0.10318 Compatibility Profile Context, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: Español (México) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
-
appear the same problem, this is the code: package source.items; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class Items { public static void init() { EspadaDeObsidiana = new ItemSword(ItemInfo.WAND_ID, EnumToolMaterial.EMERALD).setUnlocalizedName("EspadaDeObsidiana"); } public static Item EspadaDeObsidiana; public static void addNames() { LanguageRegistry.addName(new ItemStack(EspadaDeObsidiana, 1), ItemInfo.WAND_NAME); } public void registerIcons(IconRegister icon) { icon.registerIcon(ItemInfo.WAND_ID + ":" + setUnlocalizedName().substring(5)); } public static void registerRecipes() { GameRegistry.addRecipe(new ItemStack (EspadaDeObsidiana, 1), new Object[] { " O ", " O ", " / ", 'O', Block.obsidian, '/', Item.stick, }); } }
-
package source.items; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class Items { public static void init() { EspadaDeObsidiana = new ItemSword(ItemInfo.WAND_ID, EnumToolMaterial.EMERALD); } public static Item EspadaDeObsidiana; public static void addNames() { LanguageRegistry.addName(new ItemStack(EspadaDeObsidiana, 1), ItemInfo.WAND_NAME); } public void registerIcons(IconRegister icon) { icon.registerIcon(ItemInfo.WAND_ID + ":" + getUnlocalizedName("swordObsidian").substring(5)); } public static void registerRecipes() { GameRegistry.addRecipe(new ItemStack (EspadaDeObsidiana, 1), new Object[] { " O ", " O ", " / ", 'O', Block.obsidian, '/', Item.stick, }); } } marks error in "getUnlocalizedName", says: Create method "getUnlocalizedName(string)" what can I do?
-
like a good Modder, I made a count in adf.ly but I don't know if I can trust in them because they ask for my direction, and that is not secure, so I ask you if do that is secure
-
well, I been looking a crowd of Mods and they are very... complex like Galacticraft, IndustrialCraft, Buildcraft or LotsOMobs, so, I think I can do everything in the Mods if I have the correct methods, fields and classes, but, how I do them?
-
How I give a texture to my items? and, how to give them their durability? Thanks. Eaglenator
-
package example.items; import net.minecraft.block.Block; import net.minecraft.item.EnumToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class Items { public static void init() { EspadaDeObsidiana = new ItemSword(ItemInfo.WAND_ID, EnumToolMaterial); } public static Item EspadaDeObsidiana; public static void addNames() { LanguageRegistry.addName(new ItemStack(EspadaDeObsidiana, 1), ItemInfo.WAND_NAME); } public static void registerRecipes() { GameRegistry.addRecipe(new ItemStack (EspadaDeObsidiana, 1), new Object[] { " O ", " O ", " / ", 'O', Block.obsidian, '/', Item.stick, }); } } what I can write in the part: public static void init() { EspadaDeObsidiana = new ItemSword(ItemInfo.WAND_ID, (here)); appear error in that part, I think I must write EnumToolMaterial, but the recipe uses Obsidian, the obsidian is not in the type EnumToolMaterial, what can I do?
-
I want to create a Mod with swords, tools (picaxe, axe, shovel, hoe) and armor, but I don't know how, can you help me?