I'm trying to edit some armor base defense for my modpack, but it doesnt seems to work:
onEvent("item.modification", event => {
// Wandering Magician Armor
event.modify("irons_spellbooks:wandering_magician_helmet", item => {
item.armorProtection = 2;
});
event.modify("irons_spellbooks:wandering_magician_chestplate", item => {
item.armorProtection = 5;
});
event.modify("irons_spellbooks:wandering_magician_leggings", item => {
item.armorProtection = 3;
});
event.modify("irons_spellbooks:wandering_magician_boots", item => {
item.armorProtection = 1;
});
// Pumpkin Armor
event.modify("irons_spellbooks:pumpkin_helmet", item => {
item.armorProtection = 2;
});
event.modify("irons_spellbooks:pumpkin_chestplate", item => {
item.armorProtection = 5;
});
event.modify("irons_spellbooks:pumpkin_leggings", item => {
item.armorProtection = 3;
});
event.modify("irons_spellbooks:pumpkin_boots", item => {
item.armorProtection = 1;
});
});
OnEvent dont work anymore, and I dont know what to replace for this to work
Property Modifier mod doesnt work for this mod
And I've already read the wiki, and found nothing that helped me