#Add a tooltip to all items of a certain item class
12 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
what does "quality" mean?
[➤](#1382568300113821706 message)
try this
ItemEvents.tooltip(event => {
event.addAdvanced('simplyswords:slumbering_lichblade', (item, advanced, text)=>{
const killCount = item.nbt? (item.nbt.get('killCount') || 0) : 0
text.add(
Text.of(killCount)
.append(Text.of('/50'))
)
})
});
How would I put that tooltip on all the items without manual adding each item though?
Is there a way to exclude types of items like blocks
event.addAdvanced("*", (item, advanced, text) => {
if(item.block) return;
...
})
Alright thank you