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

function set_nbt fails on Realm Loot tables.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • PC-1.13.6, 1.17 (Java Edition)
    • None
    • MacOS High Sierra 10.13.6 (17G65)
    • Java

    Description

      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
                                  }
                              }
                          ]
                       }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: