Posted September 11, 20169 yr hello dear comunity, i ask me, how can i add more damage/armor/hp for a custom weapon/armor part, ofc i know how to do the basic thing but when i choose like "Tool.Material"EMERALD" , the max damage which can be is on "7" .. how can i create a tool material which allow me to add the max damage to 10000? (for example) another thing is , how to add armor/hp(lifepoints) can someone give me any hint please?
September 11, 20169 yr Author Hello, thank you for answering me the first question, well the second one is, im creating new Custom Weapons/Armors and i want to add , that if you wear them, you get + 100hp/+100 armor etc...
September 11, 20169 yr Author Also: i created a new Material: public static ToolMaterial Test = EnumHelper.addToolMaterial("Test", 3, 1000, 20.0F, 100, 20); but the problem is , it cant find the "class" EnumHelper, i addet this line to my main class where i have got all my items. any idea? EDIT:I got this , well now lets see if i can get it into my sword
September 11, 20169 yr Author i got it, eclispe just didnt find it, i created now my own tool.material, but when i try to register my weapon it wont be able to find the tool material ... public static ToolMaterial Test = EnumHelper.addToolMaterial("Test", 3, 1000, 20.0F, 100, 20); then after Wooden_Swordlv1 = new BlockUpdateSwordClass("Wooden_Swordlv1", ToolMaterial.Test); the problem is here, that he cant find the "ToolMaterial.Test" btw. thank you very much for your help ...
September 11, 20169 yr Author Of course not, there is no field called Test in the ToolMaterial class. You do know Java, yes? well im into it, im not perfect, started to code since 2 weeks, and im everyday trying and trying, at the end, now its working, my sword has +104attack damage(ofc its only a test) now i want to try out with the armor, thank you for your help, if it wont work, i would like to keep the theard and not to open a new one, have a nice day !
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.