#solved close pls

1 messages · Page 1 of 1 (latest)

glossy compass
#

I need help with NBT and skbee

storm patrol
#

why upload as a txt? could have used code blocks

#

also use lists and uuids

#

line 3 you forgot %

#

you dont see where?

#

i said line 3

#

for the owner variable

glossy compass
#

set {_n} to nbt compound from "%{owner::%player%}%"

storm patrol
glossy compass
#

I totatlly didnt see the only 1 :

#

alright, let me give it a try and see whats up!

#

I will help in just a second. just need to find the problem!

#

it does!

#

so you want the {_owner} to be a players name?

unkempt birch
#

try set {_owner} to tag "Tag;owner" of {_n}

glossy compass
#

are u just trying to make it say owner : Oskar? or the tag!

#

or what ever ign

#

might be a better way to do that I think

#

command /removesword [<offline-player>]:
    trigger:
        set {_player} to arg-2
        remove 1 of {item::%{_player}%} from {_player}'s inventory

#

Hold up, im gunna have to read up on skbee

#

on nbt tags

#

yeah, you are using skbee right?

unkempt birch
#

I fixed it by adding the owner to the dropped entity as well as the item

#

But it only worked in the custom tag

#

set tag "custom;owner" of nbt compound of last dropped item to "%player%" and to check it set {_owner} to tag "custom;owner" of {_n}

#

Seems so entities and blocks can only have stuff stored in custom tags I believe items on the other hand are different

glossy compass
#
    set {_n} to nbt compound from "%{owner::%player%}%"
    set {_item} to netherite sword with nbt {_n}
    set {_loc} to the location 1.5 meter above player
    drop {_item} at {_loc} without velocity
    set gravity of last dropped item to off
    set {_drop} to last dropped item
    set tag "custom;owner" of nbt compound of last dropped item to "%player%"
    wait 3 seconds
    loop entities in radius 2 of {_loc}:
        if loop-value is a dropped netherite sword:
            set {_n} to nbt compound of loop-value
            set {_owner} to tag "custom;owner" of {_n}
            #broadcast "owner : %{_owner}%. nbt : %{_n}%."
            if {_owner} is set:    
                send "pass"
            else:
                send "fail"
            delete loop-value ````
#

im not sure with the pickup though

unkempt birch
glossy compass
#

my brain is going places today LMFAO

unkempt birch
#

all good happens

glossy compass
#

I need help with NBT [SOLVED]