Jump to content

How to add Custom +Damage / +Armor / +HP to an armor/weapon ...


terraya

Recommended Posts

 

 

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?

 

Link to comment
Share on other sites

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 :D , well now lets see if i can get it into my sword

 

Link to comment
Share on other sites

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 ...

 

Link to comment
Share on other sites

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 ! :D

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.