#(Aviside) How to remove list tag when adding lines to an items lore?
58 messages · Page 1 of 1 (latest)
(Aviside) How to remove list tag when adding lines to an items lore?
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>
What is that || for? Are you making a new lines with those symbols?
Yes
!t <n>
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>)]>, ...
!l listtag
Did you mean to search for objecttags?
Oh gosh
hmm, switching over to <n> didn't solve it
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Content of Denizen Script Paste #109077: Unnamed Denizen Script Paste... pasted 2023/04/21 00:51:30 UTC-07:00, Paste length: 642 characters across 19 lines, Content: tomeOfTeleportation: type: item
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>"
That should work fine. If you want a single empty line between target and item[tomeOfTeleportation], just use <n><n> for 2 spaces
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
That's the item tag causing it, I'm almost 100% sure
Can you try to replace it with <item[tomeOfTeleportation].lore.separated_by[<n>]>?
I thought that would space each line?
It probably will help but anyway that's kinda weird way to adjust lore with using other item's lore
It's so it doesn't add a line
It will give you the same output but without the list
What
haha
that worked!
You can simplify this a bit by modifying the listtag instead of adding the lore infront of it
Returns a new ListTag with the items specified inserted to the specified location.
Note the index input options described at !objecttype listtag
ListTag
# Narrates a list of "one|two|three|four"
- narrate <list[one|four].insert[two|three].at[2]>
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
Okay awesome thanks for that, that's a better way of doing it! It's all working now