Closed LuisHNovais closed 3 years ago
What version of spigot are you using? Also, what type of block are you trying to modify? It's not possible to add custom NBT tags on blocks or entities.
I'm working on 1.8.8, and trying to modify a mob_spawner. When I set the tag for the first time, it works. But when I try to edit, example: in the first set I've put Owner = "yChusy", when I try to edit the Owner to "Banana", it doesn't work.
When you set the block's compound back in your setString
method, it needs to be NBTEditor.set( block, compound, "SpawnData" );
since you fetched it previously with NBTEditor.getNBTCompound( block, "SpawnData" )
.
I'll try, give me a minute.
Works perfectly, thank you
Hello, I have this code and, the first set it's ok. But, when I try to re-set, it doesn't set anything.
First, I have this one, that happens ok:
And, I have this another code, that doesn't work: