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!
Create an account or sign in to comment.
8
1
1
[/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.
1
Skitto493You 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
He is using Forge, not vanilla. If he does that in one world, it isn't going to be the same in the other, as the give command ONLY MODIFY the item is given.
1
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
1
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
1
Im on forge
1
oh forge sorry i forgot to mention that
1
Forge or Modloader?