Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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?

 

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

 

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

 

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

 

  • 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 ! :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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.