#(Aviside) How to remove list tag when adding lines to an items lore?

58 messages · Page 1 of 1 (latest)

steady tundra
#

/ex inventory adjust slot:hand "lore:<&7>Target: <&f>player||<item[myItem].lore>" using this, I get a purple "li@" in the lore but that doesn't appear when I remove the two "|" line separators so am I using the tags wrong? How would I solve this

glacial shuttleBOT
#

(Aviside) How to remove list tag when adding lines to an items lore?

glacial shuttleBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

silver arrow
#

What is that || for? Are you making a new lines with those symbols?

steady tundra
#

Yes

silver arrow
#

!t <n>

errant tigerBOT
steady tundra
#

Is there another way?

#

okay great

silver arrow
#

Yeah, there is a tag

#

| is commonly used in list to separate values

#

!t listtag

errant tigerBOT
# silver arrow !t listtag
Cannot Specify Searched Tag

Multiple possible tags: <ListTag.any>, <ListTag.get[<#>|...]>, <ListTag.sum>, <ListTag.last[(<#>)]>, <ListTag.size>, <ListTag.set[...|...].at[<#>]>, <ListTag.find[<element>]>, <ListTag.first[(<#>)]>, <ListTag.sort[<procedure>]>, <ListTag.filter[<tag>]>, <ListTag.filter_tag[<dynamic-boolean>]>, <ListTag.parse_tag[<parseable-value>]>, <ListTag.to_map[(<separator>)]>, <ListTag.insert[...|...].at[<#>]>, <ListTag.get[<#>].to[<#>]>, <ListTag.find_all[<element>]>, <ListTag.count[<element>]>, <ListTag.average>, <ListTag.lowest[(<tag>)]>, <ListTag.highest[(<tag>)]>, ...

silver arrow
#

!l listtag

errant tigerBOT
#
Possible Confusion

Did you mean to search for objecttags?

silver arrow
#

Oh gosh

steady tundra
#

hmm, switching over to <n> didn't solve it

silver arrow
#

Can you paste your script?

#

!paste

errant tigerBOT
steady tundra
#

I'm just dealing with lore stuff

#

With this command

#

/ex inventory adjust slot:hand "lore:<n><&7>Lock Target: <&f>CoolGuy22<n><item[tomeOfTeleportation].lore>"

silver arrow
#

That should work fine. If you want a single empty line between target and item[tomeOfTeleportation], just use <n><n> for 2 spaces

steady tundra
#

Yeah, but I still get a li@ in there

#

That's my main issue

#

I'm not sure what could be doing it, but if I only include "<item[tomeOfTeleportation].lore>" it'll go away oddly

silver arrow
#

That's the item tag causing it, I'm almost 100% sure

steady tundra
#

Yeah I figured that too

#

just not sure

silver arrow
#

Can you try to replace it with <item[tomeOfTeleportation].lore.separated_by[<n>]>?

steady tundra
#

I thought that would space each line?

silver arrow
#

It probably will help but anyway that's kinda weird way to adjust lore with using other item's lore

steady tundra
#

It's so it doesn't add a line

silver arrow
visual drift
#

What

steady tundra
#

chicken butt?

#

forgive me

visual drift
#

haha

visual drift
#

You can simplify this a bit by modifying the listtag instead of adding the lore infront of it

errant tigerBOT
visual drift
#

Insert the lore you'd want to add at the beginning

#

<item.lore.insert[locktarget<&co> coolguy].at[1]

#

thats less hacky

#

because your current lore could become a single line

steady tundra
#

Okay awesome thanks for that, that's a better way of doing it! It's all working now