So I have this script in client scripts
ItemEvents.modifyTooltips(event => {
if (global.nukelist.length > 0) {
event.add(global.nukelist, Text.red('This item has been disabled, if obtained please file a bug report'))
}
})
And I put an item into the nukelist, then I ran
- /kubejs reload startup-scripts
- /reload
- /kubejs reload lang
However, the tooltip did not apply to the item
In KubeJS v2101.7.1-build.181, adding an item to the nukelist and running those commands would give that item the tooltip. However, in KubeJS v2101.7.2-build.348 this doesn't work anymore, and I need to run F3+T for it to work. Does anybody know if tooltips have changed sometime between these updates?