1
Help! How do I put a attack damage on an item in eclipse?
Hi, I was modding a weapon, except I didnt know how to put a specific damage value on it, the item just by default has the same damage value as a punch. But I want to make my weapon have 24 attack damage or so. How do I do so? I set up the item and everything, except I dont know how to do that one thing. Please help.
Thanks!
Thanks!
8
[/code]/** Harvest Level, Max Uses, Efficiency (f), Damage (f), Enchantability */
public static EnumToolMaterial MyToolMaterial = EnumHelper.addToolMaterial("Stronger", 3, 800, 10.0F, 8.0F, 11);[/code] Parameters correspond to comment like Harvest is 3 (diamond) Max Uses is 800 10 is efficiency how fast it can mine Damage the tool would have 8 attack damage and enchant ability is 11. And MyToolMaterial is the name of the material that you would put for your sword.
public static EnumToolMaterial MyToolMaterial = EnumHelper.addToolMaterial("Stronger", 3, 800, 10.0F, 8.0F, 11);[/code] Parameters correspond to comment like Harvest is 3 (diamond) Max Uses is 800 10 is efficiency how fast it can mine Damage the tool would have 8 attack damage and enchant ability is 11. And MyToolMaterial is the name of the material that you would put for your sword.
[deleted]
You can just use in-game commands
/give @p NameOfItemHere 1 0 (AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"Attack Damage",Amount:25,Operation:0,UUIDLeast:894654,UUIDMost:2872}
There's alot more you can do with vanilla commands
/give @p NameOfItemHere 1 0 (AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"Attack Damage",Amount:25,Operation:0,UUIDLeast:894654,UUIDMost:2872}
There's alot more you can do with vanilla commands
Well I kind of forgot but hopefully you'll find your answers in SCMowns Tut videos on youtube :/ sorry dude though It's been a while since I've modded or coded
Im on forge
oh forge sorry i forgot to mention that
Forge or Modloader?
