1

Advice for modding with Forge API

JasonWebb's Avatar JasonWebb4/13/13 3:08 pm
1 emeralds 215 4
4/16/2013 11:22 am
JasonWebb's Avatar JasonWebb
Hi there everybody!
Well, I recently updated one of my mods (Better Gold Mod) to have a forge compatible version, that is, rewriting it for forge.
Forge is a very good API to work with if one wants to add new features, but what I want to do is modify the already existing ones. So for the past couple of days I have been trying very hard to modify the Gold tools and armor properties and finally managed.

My point, for anyone out there that has trouble modifying the pickaxe mining properties of vanilla minecraft, be sure to check out the ForgeHooks class (it resets certain tool values). And to modify armor stats of vanilla the only way I found was to modify the EnumArmorMaterial class and then remove the references to the ForgeHooks methods in EntityLiving and EntityPlayer.

Well, that's it. The thing is that it took me far longer than I expected to find this and I wanted to share with whoever is interested.
If you have done similar things to this another way, let me know because I'm interested
Posted by JasonWebb's Avatar
JasonWebb
Level 43 : Master Engineer
22

Create an account or sign in to comment.

4

1
04/14/2013 2:19 pm
Level 36 : Artisan Modder
IAmChosen
IAmChosen's Avatar
The point of forge is NOT to edit base classes.
1
04/16/2013 11:22 am
Level 43 : Master Engineer
JasonWebb
JasonWebb's Avatar
Yeah, I know, but when you want to change some core things of forge you have to.
Still, I know there are better ways to do what i did.
1
04/13/2013 7:27 pm
Level 55 : Grandmaster Musician
Punkamoar
Punkamoar's Avatar
i am also looking forward to using it!
1
04/13/2013 6:51 pm
Level 3 : Apprentice Miner
Taledus
Taledus's Avatar
That kinda helps with what I have been doing wrong...I've found a few Forge tutorials for 1.5.1, but there really needs to be some better ones when someone gets a chance.

Thanks for posting this tip, BTW. Glad you finally got your mod ported over, and look forward to trying it out, finally
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome