I think this is important information for anyone who is planning to run datapack on paperMC.
I ran this in the current 1.21.4 version, but I wanted to change the lore text of an item using the item_modifier in the datapack.
However, the console log showed that paperMC only accepts String type lore statements.
yeah?
If you write it as a String type
This method of description does not allow you to specify color, bold, or translation.
Why is paperMC a Strings type, even though the Minecraft wiki says to write it as a component type?
How to write the lore statement for components
Item_Modifier wiki
I think these specs need to be adapted to fit paperMC's use in vanilla Minecraft.
If you follow the URL written on the wiki, you will eventually arrive at the text component format.
Text component format
This syntax should be allowed
I'm not looking for this String type issue, but I don't think it's specific to item_modifier.
Considering the above, what are your thoughts?
Depending on your opinions, we will consider making suggestions in the feedback.
I ran this in the current 1.21.4 version, but I wanted to change the lore text of an item using the item_modifier in the datapack.
However, the console log showed that paperMC only accepts String type lore statements.
yeah?
If you write it as a String type
{
"functions": [
{
"function": "minecraft:set_components",
"components": {
"minecraft:lore": [
"Hello",
"World!!"
]
}
}
]
}
This method of description does not allow you to specify color, bold, or translation.
Why is paperMC a Strings type, even though the Minecraft wiki says to write it as a component type?
How to write the lore statement for components
Item_Modifier wiki
I think these specs need to be adapted to fit paperMC's use in vanilla Minecraft.
If you follow the URL written on the wiki, you will eventually arrive at the text component format.
Text component format
{
"functions": [
{
"function": "minecraft:set_components",
"components": {
"minecraft:lore": [
{
"text": "Hello",
"color": "#ff0000"
},
{
"translate": "example.hello",
"fallback": "World!!",
"color": "#0000ff"
}
]
}
}
]
}
This syntax should be allowed
I'm not looking for this String type issue, but I don't think it's specific to item_modifier.
Considering the above, what are your thoughts?
Depending on your opinions, we will consider making suggestions in the feedback.