#Event for armor equip
29 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
should be the inventory changed event
player.inventory.changed ?
i think theres a _ there
This is a list of all the events. Choose your version.
never used it 

i was gonna suggest the forge armor change event but this probably works fine
yeah, it does

It's not for this ticket, but any ideas how I can send message to player?
e.player.tell()
onEvent('player.inventory.changed', event => {
var iSlot = event.getSlot();
var sItemId = event.getItem().getId();
if(iSlot == 8 && sItemId === 'ssrp:farmer_boots') {
//send message only to player
}
console.log("Slot: " + event.getSlot());
console.log("Item: " + event.getItem().getId());
});
Can I use some color coding?
with &a for green or?
you can use Text class
for instance
e.player.tell(Text.green('hello'))
i think theres a page on it
You can use Text Components a lot in KubeJS, and the wiki has a page on them!
there