#is there a way to remove the tooltip of an existing item?

11 messages · Page 1 of 1 (latest)

ancient mantle
#

as the title says, i was wondering if there's a way with kube to remove the tooltip/lore of an already existing item with a tooltip? ive searched through a couple of the past posts that ask similar questions but haven't found anything helpful for my idiot brain
i could use the lang file and just override the existing tooltip but the item in question has such a long tooltip thats spread out into multiple lines that there would have to be some empty lines/blank space left behind which is not ideal

gaunt siloBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

bright pasture
#

if you use the addAdvanced method on the event you can directly modify the existing text of the tooltip

ancient mantle
#

doing
tooltip.addAdvanced('bigbrain:buckler', (item, advanced, text) => { text.remove(1) })
does remove the first line, but adding further 'text.remove's doesnt seem to do anything - i assume im being very not smart here

bright pasture
#

what do you mean by 'adding further text.removes doesn't seem to do anything`?

#

when editing a list, removing a position would make the rest of the list shift up. So 2 in the list becomes 1 after you remove 1

ancient mantle
#

... ah

#

yep, i am a fool

#

i was doing 1, 2, 3, so on and so forth

#

when i shouldve just being doing multiple text.remove(1)s

#

alright, thank you