#How to modify armour stats?
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I tried this but it didn't work
onEvent('item.modification', event=>{
event.modify('mod:item', item=>{
item.armorProtection-=1;
item.armorToughness-=1;
})
})
this also didn't work
onEvent('item.modification', event=>{
event.modify('minecraft:leather_boots', item=>{
item.setArmorProtection(20);
})
})
in this file kubejs/startup_scripts/script.js
item.armorProtection = 20
it's also not a method
i explained it wrong, sorry
this also did't work (full /kubejs/startup_scripts/script.js file)
// priority: 0
console.info('Hello, World! (You will only see this line once in console, during startup)')
onEvent('item.modification', event=>{
event.modify('minecraft:leather_boots', item=>{
item.armorProtection=20;
})
})
@mental yarrow Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!