#how do i hide item flags on 1.20.6 with skript?

1 messages · Page 1 of 1 (latest)

shut arrow
#

set {types::*} to cobblestone named "&7default", iron pickaxe with all flags hidden named "&eMiner"

making it with nbt also doesnt work...

I have Skript, SkBee and Skript-Particles all on their current newest versions

finite garnet
#

set cobblestone named "&7default", iron pickaxe with all item flags named "&eMiner

#

@shut arrow

shut arrow
#

nope

#

😭

#

no errors but also no result D:

finite garnet
#

What i know is
give player 1 cobblestone of mending with all item flags named “blah” with lore “blah”,”blah”

#

Thats order

#

Without unbreakable

#

I forgot

finite garnet
shut arrow
#

give player iron pickaxe with all item flags named "test" also doesnt wrok D:

finite garnet
#

Hmm odd

shut arrow
#

maybe downgrading skbee?

honest plover
#

bro, are u want to hide the flags?

shut arrow
#

yes

finite garnet
#

“With all flags” try this

shut arrow
honest plover
#

with nbt "{Hideflags:63}"

#

did u tried this?

shut arrow
#

yea

#

i can try again

finite garnet
#

Put the flags before name :/

#

With all item flags

shut arrow
finite garnet
#

Put it before the name

shut arrow
#

it is?

honest plover
#

it should be the last

shut arrow
#

already

honest plover
#

to the end

finite garnet
#

To cobblestone with all item flags named “&7default”

honest plover
#

with nbt "{Hideflags:63}"

shut arrow
finite garnet
#

Why is their an iron pickaxe

#

And cobble

shut arrow
#

bc its a list

#

that i loop

#

to fill an inventory

finite garnet
#

Oh

#

Ive got no clue with 2 items in 1 line

shut arrow
#

i already tested it with just the pickaxe, and it also didnt owrk XD

finite garnet
#

Hmmmm

#

Do /pl and show me if they both green skbee and skript particles

shut arrow
finite garnet
#

What server version

shut arrow
#

1.20.6, i already tought it could be because of that

#

thats with the example from the wiki

#

set {sword} to diamond sword with all item flags

finite garnet
#

Set {sword} to diamond sword of mending with all item flags named “&bdiamondsword”

#

Try this

shut arrow
finite garnet
#

This is anoying me

#

I give up

shut arrow
#

thanks anyways

finite garnet
#

Alg i tried

abstract moth
#

@shut arrow too lazy to read the whole thing

#

what is the issue

shut arrow
#

its complicated, please read it

abstract moth
shut arrow
#

ye

abstract moth
# shut arrow

yeah don't listen to them, with all item flags should always come last

#

with all item flags doesn't hide attributes in 1.20.5+

#

so

#

it won't work

#

you need to find a new way

#

find the hidden attribute modifiers section

shut arrow
#
    get:
        set {_i} to expr-1.getRandom()
        set {_meta} to {_i}.getItemMeta()
        {_meta}.addItemFlags(hide attributes)
        set {_map} to {_i}.getType().getDefaultAttributeModifiers()
        loop ...{_map}.keySet():
            {_meta}.addAttributeModifier(loop-value, {_map}.get(loop-value).get(0))

        {_i}.setItemMeta({_meta})
        return {_i}``` how do i install it?
abstract moth
#

you need skript-reflect btw

abstract moth
shut arrow
#

So i dont need to call it like a function?

#

Just insert it?

abstract moth
shut arrow
#

Theres alpt that i dont understand

shut arrow
zealous trench
shut arrow
zealous trench
#

Also dosnt work for 1.20.5 lol, it only works for 1.20.4 or below

zealous trench
shut arrow
zealous trench
#

yes

shut arrow
#

Ty

shut arrow
#

worked

buoyant seal