#theres a way to multiply the damage of all the weapons of a mod without making one by one?
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
ItemEvents.modification(event => {
const DoubleDamage = ["minecraft:wooden_sword","minecraft:stone_sword"]
DoubleDamage.forEach(id => {
event.modify(id, item=>{
item.attackDamage = item.attackDamage*2
})
});
})
})
get all the weapons from the mod in your inventory and type /kubejs inventory
it will output a list
you might need to remove nbt from that list
Theres no way to use the mods tag?
Does it have a tag for all the weapons?