#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)

fervent schooner
#

im sorry, im kinda new with this, im trying to balance a modpack but theres to much weapons to go one by one

oblique tinselBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

cedar eagle
#
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

fervent schooner
#

Theres no way to use the mods tag?

cedar eagle
#

Does it have a tag for all the weapons?

fervent schooner
#

I think most of then have

#

I cant use the mods name? Like using regex or something