{
"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.
#Loot Modifier not changing result item in loot table
1 messages · Page 1 of 1 (latest)