#solved close pls
1 messages · Page 1 of 1 (latest)
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
set {_n} to nbt compound from "%{owner::%player%}%"
.
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?
try set {_owner} to tag "Tag;owner" of {_n}
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?
alright, ima check skbee wiki https://github.com/ShaneBeee/SkBee/wiki
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
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
With the % % around the nbt you made it a variable that doesn't contain anything tho
my brain is going places today LMFAO
all good happens
I need help with NBT [SOLVED]