Uploaded image for project: 'Minecraft Realms'
  1. Minecraft Realms
  2. REALMS-1299

function set_nbt fails on Realm Loot tables.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • PC-1.13.6, 1.17 (Java Edition)
    • MacOS High Sierra 10.13.6 (17G65)
    • Java

      The loot table works as intended in 1.13.1 official release single player  testing.

      When upload to the Realm server, the portion of the loot table related to set_nbt is ignored.

      The specific case revealing bug is this custom minecraft/entities/potions loot table. The set nbt portions are ignored, and the loot is just the default empty potion bottle.

      Since set_nbt is ignored on Realm server, written book loots don't work at all on Realms (but do in single player), dropping nothing on Realms, given that books depend entirely on set_nbt.

                      {
                          "type": "item",
                          "name": "minecraft:potion",
                          "weight": 2,
                          "quality": 2,
                          "functions": [
                              {
                                  "function": "set_nbt",
                                  "tag": "{
                                      Potion:\"minecraft:empty\",
                                      CustomPotionEffects: [
                                          {
                                              Id: 8,
                                              Amplifier: 3,
                                              Duration: 1000
                                          }
                                      ],
                                      display: {
                                          Lore: [
                                              \"§r§9Flying (0:50)§r\",
                                              \"Mysterious Concoction\"
                                          ]
                                      },
                                      CustomPotionColor:16777215
                                  }"
                              },
                              {
                                  "function": "set_name",
                                  "name": {
                                      "text": "Flying Potion"
                                  }
                              },
                              {
                                  "function": "set_count",
                                  "count": {
                                       "min": 1,
                                       "max": 2
                                  }
                              },
                              {
                                  "function": "looting_enchant",
                                  "count": {
                                      "min": 1,
                                      "max": 2
                                  }
                              }
                          ]
                       }
      

        1. 2018-09-19_17.33.47.png
          332 kB
          Scott Miller
        2. Screen Shot 2018-11-03 at 12.14.45 AM.png
          71 kB
          Scott Miller
        3. Screen Shot 2018-11-03 at 12.32.19 AM.png
          145 kB
          Scott Miller
        4. Screen Shot 2018-11-03 at 12.32.19 AM.png
          145 kB
          Scott Miller
        5. Screen Shot 2019-06-09 at 10.46.27 PM.png
          71 kB
          Scott Miller

            Unassigned Unassigned
            Gatinh0 Scott Miller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: