I am getting server side only KubeJS stuff setup for a java server with bedrock compatibility. As you can guess, this is a nightmare.
PlayerEvents.inventoryChanged(event => {
console.log("Inv Changed")
event.player.tell(event.slot)
if (event.item.id == "minecraft:iron_helmet" && event.slot == 5) {
}
})
In the if statement I need to be able to set the item in helmet slot to an item (using paper for testing).
This is all to get around the fact I can't get bedrock players to be able to put non armour items in head slot
