#Edit Ice And Fire items stats

10 messages · Page 1 of 1 (latest)

potent night
#

So, I need help editing ice and fire weapons stats, can somebody help me coding it?
And example of the code that is not working:

StartupEvents.registry('item', event => {
event.modify('iceandfire:silver_hoe', item => {
item.attackDamage = 10;
item.attackSpeed = 2;
});
});

dense cometBOT
#

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

crystal zodiac
#

you don't register an item you only modify a item and this is a other syntax and it should look like this in a startup_scripts file:

ItemEvents.modification(event => {
    event.modify('iceandfire:silver_hoe', item => {
      item.attackDamage = 10;
      item.attackSpeed = 2;
    });
  })

but you need to try if it works

potent night
#

ill try

#

just a sec

#

ive seen a guy talking about using that:
"ForgeEvent ItemAttributeModifierEvent"

but idk how to use this on code

potent night
#

nvm

#

found a mod that does exactly that