Spigot does not honor CanDestroy NBT tag

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • None
    • Environment:

      Ubuntu LTR 14.10 x64,

      The following two commands, in CraftBukkit git-Bukkit-e8efbb8 via command blocks, will provide the player with an unbreakable diamond shovel that can break only grass blocks:

      /minecraft:give @p minecraft:diamond_shovel 1 0 {CanDestroy:["minecraft:grass"],Unbreakable:1}
      /summon Item ~ ~ ~ {Item:{id:minecraft:diamond_shovel,Count:1,tag:{CanDestroy:["minecraft:grass"],Unbreakable:1}}}
      

      These work fine in the 1.8 build of craftbukkit, along with vanilla 1.8 (when you switch minecraft:give with give), but the 1.8 build of spigot only honors the Unbreakable NBT tag. Additionally, any item saved with a CanDestroy NBT tag on vanilla 1.8 or cb 1.8, and then loaded on spigot 1.8, will lose that tag. For testing purposes, this was done with an empty dir clean install, with default configs, and no plugins.

            Assignee:
            Thinkofname
            Reporter:
            MrGold
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: