ModernPatriot Posted January 18, 2016 Share Posted January 18, 2016 Id like to create a fairly dynamic sword, which can change its damage values, its durability values and its enchantability values dynamically, based on certain NBTTagCompounds. Normally you'd change the ToolMaterial accordingly but because I need to use the ToolMaterial inside the constructor it has to be static and cant be dynamic, at least not in the way I need it to be. So how would I have to change my code? You can find the code for the SwordTemplate here. Quote http://s27.postimg.org/p15i3wjcz/RI_Top.png[/img] Link to comment Share on other sites More sharing options...
Draco18s Posted January 18, 2016 Share Posted January 18, 2016 Check out this item of mine. All of its material values come from NBT https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
ModernPatriot Posted January 25, 2016 Author Share Posted January 25, 2016 Thank you very much! Gave a good inside how to Quote http://s27.postimg.org/p15i3wjcz/RI_Top.png[/img] Link to comment Share on other sites More sharing options...
Recommended Posts
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.