1
Help with creating datapack for custom weapons
I'm trying to add custom weapons to a map i'm making but i can't figure out the proper way to do so. What i can add so far is the following: weapon with custom attack value and attack speed using attribute modifiers. The problem with these is that the attack damage and speed don't display properly and enchantments like sharpness do not increase the attack damage. Right now the damage displays as +X Attack Damage and the speed as -X Attack Speed in blue.
What i'm looking for is a way to add weapons that display attack damage and attack speed in the same way vanilla weapons and tools do like this: Diamond Sword, 7 Attack Damage, 1.6 Attack Speed. With the idea that you can increase the damage further by adding a enchantment like sharpness to the custom weapons. Is this possible with data packs?
What i'm looking for is a way to add weapons that display attack damage and attack speed in the same way vanilla weapons and tools do like this: Diamond Sword, 7 Attack Damage, 1.6 Attack Speed. With the idea that you can increase the damage further by adding a enchantment like sharpness to the custom weapons. Is this possible with data packs?
1
You can use the HideFlags nbt to undisplay attributes, while using lore as a substitute
Im pretty sure this would work, but I have a feeling that the original text values of the item would stay behind and be uneditable
Im pretty sure this would work, but I have a feeling that the original text values of the item would stay behind and be uneditable
