Jump to content

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


Recommended Posts

Posted

 

 

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?

 

Posted

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

 

Posted

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

 

Posted

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

 

Posted

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

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.