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

Loot table function "set_data" doestn't work with tools

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 15w43b
    • Fix Version/s: Minecraft 15w43c
    • Labels:
      None
    • Confirmation Status:
      Community Consensus

      Description

      With the new table loot system, it is possible to change the data value for generated items with the function "set_data" (see exemples with the sheep colored loots tables)

      But if I use the "set_data" function on a tool (axe, sword, etc.) the data value is not set, so it's not possible to create tools with custom damage value.

      I join an exemple file, with this generator:

      • 5 random color wools (that's work)
      • 1 sword with fix data value (don't work)
      • 1 axe with random "set_data" value (don't work)

      For both tools, the damage value are set to 0 in game.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Tronics Tronics
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: