#Loot Modifier not changing result item in loot table

1 messages · Page 1 of 1 (latest)

feral osprey
#
{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:stone",
          "weight": 1
        }
      ]
    }
  ],
  "functions": [
    {
          "function": "minecraft:sequence",
        "functions": [
                {
                    "function": "minecraft:set_lore",
                    "lore": [
                      {
                        "text": "Line-1",
                        "color": "green",
                        "italic": false,
                        "hoverEvent": {
                          "action": "show_text",
                          "value": "test"
                        }
                      },
                      {
                        "text": "Line-2-A",
                        "color": "green",
                        "italic": false,
                        "hoverEvent": {
                          "action": "show_text",
                          "value": "test"
                        }
                      }
                    ]
                },
                {
                    "function": "debugthings:modify_nbt",
                    "tag": "{\"text\":\"Line-2-B\"}",
                    "target": "display.Lore[1]",
                    "op": "replace"
                }
        ]
    }
  ]
}```
The attached file is the code for the "modify_nbt" loot modifier. However despite going through it several times, I cannot seem to find why the result is always "Line-2-A" instead of "Line-2-B" like it should be, even replace doesn't work and it does no conditionals.
#

Also this is 1.20.4 if that's needed at all.

#

Where did my post go.

#

The attached is my code for a loot modifier, however even though all of this code looks proper and I've gone over it several times now, it doesn't seem to have any effect inside of a loot table,