#how to check if a player has an item in his inventory with a certain lore

1 messages · Page 1 of 1 (latest)

shut canyon
#

so well i made this

on walking on magenta stained glass:
    if player's inventory contains diamond helmet or netherite helmet:
        if player's inventory contains diamond chestplate or netherite chestplate:
            if player's inventory contains diamond leggings or netherite leggings:
                if player's inventory contains diamond boots or netherite boots:
                    if player's inventory contains an item that lore contain "smth random":
                        teleport player at location(-49.606,73,-99.545, world("planet_mining"))
                else:
                    send "&cYou do not the proper gear!"
                    push player backwards with speed 15
                    push player up with speed 5
            else:
                send "&cYou do not have the proper gear!"
                push player backwards with speed 15
                push player up with speed 5
        else:
            send "&cYou do not have the proper gear!"
            push player backwards with speed 15
            push player up with speed 5
    else:
        send "&cYou do not have the proper gear!"
        push player backwards with speed 15
        push player up with speed 5

so i want to check that if player has an item in his inventory that his lore contains a "certain thing" in line 5 please help

limber holly
#

@shut canyon what exactly are u trying to do?

stoic skiff
limber holly
stoic skiff
#

¯_(ツ)_/¯

limber holly
#

@stoic skiff u cant?

#

xd

#

new to skript soo

#

im rly good at python and swift

#

but skript im still getting the hang of

stoic skiff
#

I like how I said nothing, then were talking about how good you're at coding

limber holly
stoic skiff
stoic skiff
#

It's fine dw 😅

limber holly
#

okok thx 😭

#

u came across as kinda like harsh ig 💀😭

shut canyon
#

so what to do?

limber holly
#

scroll up

#

2 solutions

shut canyon
#

if player's inventory contains "x" with lore "x":

limber holly
#

one mine, and one of Mr. Tesco here

stoic skiff
shut canyon
#

so both work?

limber holly
shut canyon
stoic skiff
#
shut canyon
#

wait

#

and one more thing

#

teleport player at location(900.500,50,-55,world("planet_mining")

#

this is correct right?

stoic skiff
#

You need some spaces

shut canyon
#

no it is right i needed one more ) at the end

#

how do i check a color of leather armor?

shut canyon
limber holly