NBT Tags in 1.11.2

Discussion in 'Spigot Plugin Development' started by NicoMCArchitekt, Apr 29, 2017.

  1. Hey everybody!
    I have another question about the NBT tags. I was now doing the stuff using NBT & NMS, but it just doesn't work with "CanPlaceOn" (As shown in the code below). When I tried it with the "Unbreakable" tag, it worked perfectly. What is wrong? Is the tagname wrong, maybe? Also, I do not get any errors in both cases and I'm using the latest BuildTools version (#59) for the plugin and the server.

    Here's my code:
  2. sothatsit


    I would assume that you would need to set "CanPlaceOn" to an NBTTagList of NBTTagStrings, not a NBTTagString formatted in JSON.
    • Agree Agree x 2
  3. Alright, thank you very much. It works perfectly now. Still my first time doing something using NBT & NMS..
    • Like Like x 1