1
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
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
Create an account or sign in to comment.
4
1
The point of forge is NOT to edit base classes.
1
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.
Still, I know there are better ways to do what i did.
1
i am also looking forward to using it!
1
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
Thanks for posting this tip, BTW. Glad you finally got your mod ported over, and look forward to trying it out, finally