Posted May 24, 201411 yr How do you set the attack damage for a sword? Sorry this is kind of a noob question Don't tell me to learn the basics of java, I already know.
May 24, 201411 yr You can change it in ToolMaterial. You must first of all register youre tool material. It looks like it: WaterDiamondMaterial = new EnumHelper().addToolMaterial("WaterDiamondMaterial", 3, 2800, 11.0F, 4.5F, 20); one on this paramiter change damage but i m not sure which execly. ~ogrekpl
May 24, 201411 yr Author That's changes the a attack damage for all tools though, I want just the sword. Don't tell me to learn the basics of java, I already know.
May 24, 201411 yr ItemSword#getItemAttributeModifiers() can be overridden to alter your swords damage value -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
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.