#How can I edit the attack speed of cataclysm weapons?
16 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Bump
The Item Modification event:
https://hunter19823.github.io/kubejsoffline/1.20.1/forge/#?focus=global-bindings-ItemEvents.modification(ItemModificationEventJS)&global-bindings-expanded=true
And the Item class has an injected setAttackSpeed method:
https://hunter19823.github.io/kubejsoffline/1.20.1/forge/#net.minecraft.world.item.Item?focus=methods-dev.latvian.mods.kubejs.core.ItemKJS-void+kjs%24setAttackSpeed(double)&methods-expanded=true
Here is the wiki regarding item modifications:
You can modify various properties of an existing item with KubeJS, and the wiki has a page on it!
Idk if I'm writing it wrong but I get this error
event.modify('cataclysm:coral_bardiche', item => {
item.setAttackSpeed = -1.0;
})
})```
So I got it to work on a stone sword by removing the set, but when I changed it a cataclysm weapon I get this.
event.modify('cataclysm:coral_bardiche', item => {
item.attackSpeed = -1.0;
})
})```
So ig cataclysm items for whatever reason just don't work with item modification?
I assume it’s because it’s a modded item and not vanilla.
Your other bet might be using a forge event
I don’t see a forge event for it either tho
I would have to see the cataclysm source to see if you can modify it via config or maybe their code.
If the tool tier can be modified that might also work.
I’ve seen others use data sources to modify damage as well
I'm not sure what tier it would be to edit it. What are data sources?
That was my phone's auto-correct.
I meant to say Damage Sources
Would that work specifically for like swing speed?
Darn it, nvm. I mixed up tickets. Someone else was asking about damage modifications, not swing speed.
Similar solutions, but that one isn't applicable in this scenerio.
Darn