Wow, second post today, I am sorry for spamming here so much.
Anyway, following issue:
I am working with item displays, and when I put an item in one and request a retrieval of said item (so basically, with the Denizen give command), it will have different NBT data from the item I put in it.
This, of course, concerns items that do have NBT data like armor stands and so on.
That is to say, the data seems to just be the standard data the item has, but it is now explicity appended to the item, which, sadly, results in the item being non-stackable with fresh items of the same kind.
Using the armor stand as example, following scenarios open up:
Item from creative inventory:
Using: "/data get entity @s SelectedItem":
{
id: "minecraft:armor_stand",
Count: 1b
}
Using: "/ex narrate <player.item_in_hand>":
i@armor_stand[armor_stand_data=map@[base_plate=true;visible=true;marker=false;is_small=false;arms=false]]
Item back from display:
Using: "/data get entity @s SelectedItem":
{
id: "minecraft:armor_stand",
tag: {
EntityTags: {
ShowArms: 0b,
Marker: 0b,
Small: 0b,
NoBasePlate: 0b,
Invisible: 0b
}
},
Count: 1b
}
Using: "/ex narrate <player.item_in_hand>":
i@armor_stand[armor_stand_data=map@[base_plate=true;visible=true;marker=false;is_small=false;arms=false]]
Now it gets vexing, as you can see the NBT is the same for the narrate command but for the data command it is not.
This tells me that something either in Denizen or Spigot (I really hope it is Denizen, as otherwise I just wasted a slot for another person seeking help :D)
adds the default data to the item.
Now I wonder, can I somehow remove this data from the itemstack, and if so, how can I avoid removing purposefully added NBT data?
May it even be a bug that needs fixing, but I am just an underling to the Denizen royalty, so thee may pardon mine own audacity. 🙇♀️
If any more data on this issue is needed, please tell me what it is and I will debug this baby for you!
Have fun everyone!
