Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-136329

Error using data path for slot -106

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13.1
    • None
    • Not possible to use path Inventory[-106] for detect Count, Damage, Tags or other nbt of a item in slot -106 (Off hand slot) using data get command.
    • Unconfirmed

      The slot for the offhand is -106 , so for detect a nbt of a item in that slot is needed use a path of data get command but this is not possible because -106 does not make sense as an array index because is a negative number and command expect it to be 0+ , so there's no way to get the amount or damage or tag or any nbt of a item that is in that slot without hardcoding. the result of trying to use /data get entity <entity> Inventory[-106] is a unexpected error , this error message say "An unexpected error ocurred trying to execute that command" , i discovered this bug when trying to get the number of a tag given to a custom item, i tryed use /data get entity Javier107 Inventory[-106].tag.backpack and happened the error , at the start i though maybe i write it wrong but it was write of the correct way because i placed the same item in the slot 0 and using the same command but changing -106 to 0 get the information that backpack was backpack:5b , so in that moment i discovered that was a bug of trying to detect anything that is on the slot of the offhand.

            Unassigned Unassigned
            Javier107 Javier Alejandro Jara González
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: