summon item from nbt

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

xXCooBloyXx

Member
Nov 13, 2022
3
0
1
Hey, i tried to summon item using /paper dumpitem, copy and summon but it doesnt work cuz summon doesnt support /summon itemname{...} after that i tried in skript
idk where put code cuz im new:
command /test:
trigger:
set {_item} to player head
add "{SkullOwner:{Id:[I;1723896668,-1482601674,-2111782005,1488210406],Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDZlMTJmZGFlMWZjZWJhNjg3OWY2NTk3OTYxMzJhN2ZmYTA4Y2Q5MmEyNmNiN2ExMDY3ZDQ5NzAzZDdiMWI0YiJ9fX0=""}]}},display:{Name:'{""extra"":[{""bold"":true,""italic"":false,""underlined"":false,""strikethrough"":false,""obfuscated"":false,""color"":""aqua"",""text"":""Mystery Box""}],""text"":""""}'}}" to nbt compound of {_item} parsed as item
drop {_item} at player

but this dont work, can anyone help me?
 
Idk how to do with string nbt but you can do

set tag "NBTTag" of item's nbt to "value"
 
Status
Not open for further replies.