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