I have created a custom fish that comes out of a custom loot table, and it took a while to get it to have a name. It turned out that there is a function called set_name
and I could name the item. Now I want to add a lore to the item, however, I tried set_lore
and it broke the loot table like before. (You Get Nothing From Fishing). I need to know what the function is to add a lore to the object.
Here is the Fish Item (Working Without Lore):
{
"type": "minecraft:fishing",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:tropical_fish",
"weight": 1000,
"quality": -1,
"functions": [
{
"function": "set_nbt",
"tag": "{CustomModelData:3}"
},
{
"function": "minecraft:set_name",
"name": {
"text": "Bluegill",
"color": "white",
"italic": "false"
}
}
]
}
]
}
]
}
Here is what I tried to add the lore with (Errors Out And No Fish For You):
{
"type": "minecraft:fishing",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:tropical_fish",
"weight": 1000,
"quality": -1,
"functions": [
{
"function": "set_nbt",
"tag": "{CustomModelData:3}"
},
{
"function": "minecraft:set_name",
"name": {
"text": "Bluegill",
"color": "white",
"italic": "false"
}
},
{
"function": "minecraft:set_lore",
"lore": {
"text": "Test",
"color": "gray",
"italic": "false"
}
}
]
}
]
}
]
}
Does anyone know the magic Minecraft json function to add a lore?