Topic category: Help with Minecraft modding (Java Edition)
Okay so, ive found a way to bypass the broken 1.12.2 attackspeed modifier by using /give @p MODNAME:ITEMNAME 1 0 {AttributeModifiers:[{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:4,Operation:0,UUIDMost:45859,UUIDLeast:123134},{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:15.2,Operation:0,UUIDMost:23032,UUIDLeast:163747}]} But it would require you to constantly input the command to get the various attributes.
Ive also noticed this gives the weapon NBT data, is it possible to apply the NBT data to the weapon?
Im wondering if anyone else is interested to help find a way to use the attributes in /give to make it so that weapons can use these attributes, without having to be registered as SPECIAL and losing the ability to enchant.
I could really use a hand!
Still haven't found a solution! Really would appreciate if someone could lend a hand
5 years later lol. If you're still interested, I found a workaround for the Attack speed modifier, Weapon Description, and Weapon repair tool.
Would love to hear it.
You can create a TickInMainHand procedure then do "if getDisplayName = "itemName" do execute command "/replaceitem entity @p slot.weapon.mainhand ModName:ItemName 1 0 {display:{Name:"ItemName§f"}, other attributes, such as attack speed modifier and item description}"" I like to use https://mapmaking.fr/give1.12/ to add the display name, item desc, attack speed, and other attributes, then paste the /replaceitem command over the /give command. If you have any more questions, I'd be happy to answer them.
Forgot to mention that I like to turn off CommandBlockOutput in the world so that the chat isn't flooded
Also forgot to mention that attack speed is a little weird, the default attack speed is -2.4