Jump to content

an_awsome_person

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by an_awsome_person

  1. This was slightly confusing. Can you please give an example or link me to a tutorial that's up-to-date?
  2. In my code right now, my item is being registered twice. Is it better to register all the items in one class, or is it better to register each item in its own class?
  3. What's an IForgeRegistryObject?
  4. From my best guess, it has something to do with registering items. I haven't been able to properly learn how to register an item in versions 1.8 and later. Can you please teach me? Also, if registerItem() is deprecated, what should I use instead?
  5. When I run my Minecraft mod, it runs fine for a few seconds, but then crashes before I get to the title screen. The console says, "AL lib: (EE) alc_cleanup: 1 device not closed". Forge crash report
  6. They're compiler errors, and that's all the information Eclipse gives me on compiler errors. That's what the tutorial had told me to do.
  7. Doesn't the original post have that information?
  8. In case you didn't know, most people ask for support when they don't know how to do something. Because you should be able to read the original post, you know that I don't know at least one thing. Please don't ask me to do something I don't know how to do, unless you attach instructions for how to do them.
  9. I also tried running gradlew.bat build, but my code still has compile errors.
  10. Are you sure you didn't mean gradlew.bat build? Because when I ran gradle.bat build, it said, "'gradle.bat' is not recognized as an internal or external command, operable program or batch file." I do, however, have a batch file called gradlew.bat.
  11. Is there a specific place where I have to open the command window?
  12. Running in Eclipse is fine. Building a jar you must use gradle. How do I use gradle? (sorry if I look like a noob because I mostly am)
  13. package items; import com.renewability.renewabilitymod.RenewabilityMod; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class ItemChainMail extends Item{ private final String name = "chain_mail"; public ItemChainMail(){ GameRegistry.registerItem(this, name); setUnlocalizedName(RenewabilityMod.MODID + "_" + name); setCreativeTab(CreativeTabs.MATERIALS); } public String getName(){ return(name); } } Eclipse compiles code automatically.
  14. Yes. Would you like for me to show you what's in the class ItemChainMail?
  15. I found this tutorial for updating mods and I tried following it exactly. http://www.wuppy29.com/minecraft/1-8-tutorial/updating-1-7-to-1-8-part-2-basic-items/#sthash.dfGTFGlk.PfQ8TRGI.dpbs When I compiled this code, it said that chainMail cannot be resolved to a variable, and that ModResourceLocation cannot be resolved to a type. if(event.getSide() == Side.CLIENT){ RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); renderItem.getItemModelMesher().register(chainMail, 0, new ModelResourceLocation(RenewabilityMod.MODID + ":" + ((ItemChainMail) chainMail).getName(), "inventory")); } Also, when I compiled this code, it said that EventHandler cannot be resolved to a type. public static Item chainMail; @EventHandler public static void items(){ chainMail = new ItemChainMail(); GameRegistry.registerItem(chainMail, "Chain Mail"); } What am I doing wrong?
  16. When I try to run my Forge project, I only get 0-5 FPS no matter what I do in the video settings. This used to be the case with regular Minecraft, but I fixed it by having Minecraft use 32-bit Java. I tried changing my entire computer to 32-bit, but it didn't seem to do anything.
  17. In case you didn't read the original post (which you probably should have), I AM using the 32-bit JVM. Do I have to change to 64-bit? I think using 64-bit on my computer makes Minecraft unable to launch.
  18. I couldn't find _JAVA_OPTIONS in the Environment Variables, so I made a new one and typed -Xmx2048M as its value. Then, I got a different error. Here's the log.
  19. You have a _JAVA_OPTIONS environment variable setting the maximum memory to 512 MB, delete it. Where do I go to delete it?
  20. I already Googled every error message I got, and doing everything that people told the internet to do, until I got back to an error message (Execution failed for task ':decompileMc'. > Java heap space) in which I already tried everything on the first page of results. I'm using 32-bit, Windows 10, JavaSetup8u91, and the Forge version for Minecraft Release 1.10 (not 1.10.2). I allocated 2 gigabytes of ram to Forge. Below is the stacktrace log from the last time I tried to install it. The EAQ said to use spoilers, but not hidden tags. Are they not the same thing?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.