#Change attack damage of items

4 messages · Page 1 of 1 (latest)

nocturne pebble
#

I'm trying to rebalance the machetes from Harvest Scythes because they have superior DPS compared to swords and the same enchant capabilities.
I've looked around for example scripts, but there's a lot of confusion on what's the correct way, plus they're a bit obsolete as they still make use of onEvent( which the game warns it's obsolete.

I attempted this, but the attack value of the items don't change:

in startup_scripts

// priority: 0

ItemEvents.modification(e => {
    e.modify("harvest_scythes:wooden_machete", (item) => {
      item.attackDamage = 2
    });
    e.modify("harvest_scythes:stone_machete", (item) => {
        item.attackDamage = 3
      });
      e.modify("harvest_scythes:iron_machete", (item) => {
        item.attackDamage = 4
      });
      e.modify("harvest_scythes:golden_machete", (item) => {
        item.attackDamage = 2
      });
      e.modify("harvest_scythes:diamond_machete", (item) => {
        item.attackDamage = 5
      });
      e.modify("harvest_scythes:netherite_machete", (item) => {
        item.attackDamage = 6
      })
  })
glossy mossBOT
#

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

glossy mossBOT
#

@nocturne pebble Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

glossy mossBOT
#

@nocturne pebble Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!