Posted November 29, 201212 yr Hi, I know Java and tried searching on google and in the forums how to create a minecraft mod with forge and such, but I didn't have any luck So what I want to ask is: Where did you learn how to make mods for minecraft with forge? Thanks for reading and waiting for your reply, Debels.
November 30, 201212 yr The wiki. I'm not the same guy, but is there a section on enchanting? I've searched but can't find anything. iI can't even seem to find stuff in the Javadoc. I mean, I could just modify the base files in Minecraft, but that kinda defeats the purpose of Forge.
November 30, 201212 yr I have not found a tutorial about enchantments either. I have no clue how to add them (with forge) either, but I myself don't need them. I can imagine it is annoying when you do need them, though.
December 3, 201212 yr In all fairness Forge doesn't have tutorials on EVERYTHING. If you want to add enchanting to your mod, this is what I do and it works well: Search the documentation. It may take awhile but eventually your will get to know forge better
December 3, 201212 yr To add enchantments to tools, for example, is the same as it was in 1.3.2 I think. Here's the code: public int getItemEnchantability() { return this.toolMaterial.getEnchantability(); } Quoting from the ItemTool.class: Return the enchantability factor of the item, most of the time is based on material. I find Wuppy's tutorials very helpful: http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html He's re-writing all the tutorials to 1.4.5 at the moment. With forge, its more of a guessing and experiment game. You have to look in the minecraft files to see how to code certain things, for example, if I want to add features to my custom grass block, I'd look in the BlockGrass.class You will spend a lot of time huffing and puffing and getting frustrating when something doesn't work and you can't find a tutorial. Useful classes are: GameRegistry.class LanguageRegistry.class They contain the code that goes in the main mod class. Hope this helps
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.