#checkitem expansion

1 messages · Page 1 of 1 (latest)

brittle oxide
#

i m trying to use the lorecontains: but for some reason i cant make it work
thats the item from /paper dumpitem: https://pastebin.com/JMynG1rZ
and thats the line of the lore that i wanna use: https://prnt.sc/Jz9WZ3kGZFNj

I ve tried this %checkitem_amount_mat:NETHER_STAR,lorecontains:[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"#3E8493","text":"• "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gray","text":"Refinement: "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"#ABFDEE","text":"1"}]% but doesnt seem to work

ornate bridge
#

lorecontains: accepts a string, not a json value

#

and it doesn't test the lore as raw json either

#

If you just check for Refinement would that work?

#

colors become a pita when having to check for it

brittle oxide
#

it would work but i need the whole thing

ornate bridge
#

so it wouldn't work

#

do you have an image by chance?

brittle oxide
#

there isnt some way to check for the colors?

#

of the lore?

ornate bridge
brittle oxide
#

oh oke i ll give it a try

#

ig something like that? %checkitem_amount_mat:NETHER_STAR,lorecontains:&x&3&e&8&4&9&3• &7Refinement: &x&a&b&f&d&e&e1% but it still doesnt work

#

do i replace the spaces with smth else?

#

idk if u can think of any other way

#

and a key word

#

like mine or something like that

ornate bridge
#

what happens if you hold it and type /papi parse me %checkitem_getinfo:mainhand_loreequals:%?

#

I feel it's just going to come back colored, which isn't what I want sadly

brittle oxide
#

yuh tried that with the name too

ornate bridge
#

what if you type it in console

#

colors it as well?

brittle oxide
#

yeap same thing in console too

ornate bridge
#

test with just lorecontains:&7Refinement

brittle oxide
#

idk if it helps but the plugin handles the hex colors like this #3e8493

ornate bridge
#

see if that works to start

ornate bridge
brittle oxide
ornate bridge
#

but not lorecontains:&x&a&b&f&d&e&e1

#

it is #abfdee1 as well, right?

brittle oxide
ornate bridge
#

what if you use § instead of &?

brittle oxide
#

still no

#

lorecontains:§x§b§0§c§1§f§d1

#

oh wait

#

i have wrong hex color ughh

ornate bridge
#

O.o

#

lol

brittle oxide
#

nop still doesnt seem to work

#

and i have the correct hex color this time xd

#

lorecontains:§x§a§b§f§d§e§e1

ornate bridge
#

hmm

#

Are you trying to retrieve the refinement level, or just check that it's 1?

#

might have to make a custom javascript for this

brittle oxide
#

just checks if its 1

#

if its level 2 it ll check for 2

#

the issue is the hex colors

ornate bridge
#

ya..

brittle oxide
#

cause if i try it with &b1 it ll return that i have 1 of the item in my inv

#

and if i drop it it ll return 0

ornate bridge
#

really not sure hmm

brittle oxide
#

So best option is to use the vanilla colors xd

ornate bridge
#

ya... there's gotta be a way

#

but

#

🤷‍♂️

#

I might be able to parse hex in checkitem, but no idea when I would have the time to add it

brittle oxide
#

its fineee since that works i m ok with it

#

also is it possible to use the lorecontaints twice?

ornate bridge
#

no

brittle oxide
#

hmm i think i ll be oke just with the &b1

#

anyway thanks for the help fingerguns

brittle oxide
#

is there any way for the checkitem placeholder to not include the offhand item?

#

like with this %checkitem_mat:NETHER_STAR,amt:1,lorecontains:&b1% i just wanna check the inv besides the off hand

#

tag reply me pls :/

#

ig a solution would be the inslot:<integer> and get all the slots besides the off hand one?

brittle oxide
#

anyway all good i just used the inslot:40 for the off hand and inverted the requirement