Custom Name data getting reformated to "Normal" text
What is your Quests version / build number (do not say "latest")?
Version: 5.2.8-b554
When inserting items into actions or into quests rewards that have "custom_name"s, they will format themself back from italic, bold, underlined etc to normal 0b values. This also happens in the item's lore.
Colors work fine, they keep their hex-rgb value.
Describe the problem and how to replicate it.
Add/edit a quest go into rewards set your item reward that has minecraft:custom_name and any form of formatting finish quest get reward see that its back to plain unformatted text. if color was formatted, it still remains.
Actions, same thing.
Any console errors to share?
nope
If applicable, can you provide an example quest from quests.yml?
not necessary. easily reproducible.
The config would literally just be the quest reward with all its tags removed.
Items generated by other plugins have never been supported without use of a module. Please see https://pikamug.gitbook.io/quests/casual/modules#want-support-for-other-plugins-or-features
@PikaMug The items we use are not even created by a different plugin. We use NBT-Tags that we set ourselfs through vanilla commands...
Plus, the name thats shown on the reward is also the "Custom_name"...
@PikaMug The items we use are not even created by a different plugin. We use NBT-Tags that we set ourselfs through vanilla commands...
Plus, the name thats shown on the reward is also the "Custom_name"...
In that case, please provide the exact command you're using to create the item. I can't guarantee a fix, but will look into it.
Thats the vanilla command to get the key The item will most likely not have a texture on your end
give @a tripwire_hook[custom_name=["",{"text":"S","bold":true,"color":"#c7c7c7","shadow_color":-16777216},{"text":"u","bold":true,"color":"#cacaca","shadow_color":-16777216},{"text":"p","bold":true,"color":"#cdcdcd","shadow_color":-16777216},{"text":"p","bold":true,"color":"#d0d0d0","shadow_color":-16777216},{"text":"l","bold":true,"color":"#d2d2d2","shadow_color":-16777216},{"text":"y","bold":true,"color":"#d5d5d5","shadow_color":-16777216},{"text":" ","bold":true,"color":"#d8d8d8","shadow_color":-16777216},{"text":"Ca","bold":true,"color":"#dbdbdb","shadow_color":-16777216},{"text":"s","bold":true,"color":"#d8d8d8","shadow_color":-16777216},{"text":"e","bold":true,"color":"#d4d4d4","shadow_color":-16777216},{"text":" ","bold":true,"color":"#d1d1d1","shadow_color":-16777216},{"text":"K","bold":true,"color":"#cecece","shadow_color":-16777216},{"text":"e","bold":true,"color":"#cacaca","shadow_color":-16777216},{"text":"y","bold":true,"color":"#c7c7c7","shadow_color":-16777216}],lore=[[{"text":"This item allows you to open the Supply Case!","italic":false}]],item_name=[{"text":"Supply Case Key","italic":false}],item_model="gtc:supplykey",custom_data={IsKey:supplycasekey}]
This is the NBT Data the item i created has:
SelectedItem: {id: "minecraft:tripwire_hook", count: 1, components: {"minecraft:item_model": "gtc:supplykey", "minecraft:lore": [{italic: 0b, text: "This item allows you to open the Supply Case!"}], "minecraft:custom_name": {extra: [{color: "#C7C7C7", shadow_color: -16777216, bold: 1b, text: "S"}, {color: "#CACACA", shadow_color: -16777216, bold: 1b, text: "u"}, {color: "#CDCDCD", shadow_color: -16777216, bold: 1b, text: "p"}, {color: "#D0D0D0", shadow_color: -16777216, bold: 1b, text: "p"}, {color: "#D2D2D2", shadow_color: -16777216, bold: 1b, text: "l"}, {color: "#D5D5D5", shadow_color: -16777216, bold: 1b, text: "y"}, {color: "#D8D8D8", shadow_color: -16777216, bold: 1b, text: " "}, {color: "#DBDBDB", shadow_color: -16777216, bold: 1b, text: "Ca"}, {color: "#D8D8D8", shadow_color: -16777216, bold: 1b, text: "s"}, {color: "#D4D4D4", shadow_color: -16777216, bold: 1b, text: "e"}, {color: "#D1D1D1", shadow_color: -16777216, bold: 1b, text: " "}, {color: "#CECECE", shadow_color: -16777216, bold: 1b, text: "K"}, {color: "#CACACA", shadow_color: -16777216, bold: 1b, text: "e"}, {color: "#C7C7C7", shadow_color: -16777216, bold: 1b, text: "y"}], text: ""}, "minecraft:custom_data": {IsKey: "supplycasekey"}, "minecraft:item_name": {italic: 0b, text: "Supply Case Key"}}},
And this is the item i get returned from the quest:
SelectedItem: {id: "minecraft:tripwire_hook", count: 1, components: {"minecraft:item_model": "gtc:supplykey", "minecraft:lore": [{extra: ["This item allows you to open the Supply Case!"], text: ""}], "minecraft:custom_name": {extra: [{italic: 0b, underlined: 0b, bold: 1b, color: "#C7C7C7", obfuscated: 0b, strikethrough: 0b, text: "S"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#CACACA", obfuscated: 0b, strikethrough: 0b, text: "u"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#CDCDCD", obfuscated: 0b, strikethrough: 0b, text: "p"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D0D0D0", obfuscated: 0b, strikethrough: 0b, text: "p"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D2D2D2", obfuscated: 0b, strikethrough: 0b, text: "l"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D5D5D5", obfuscated: 0b, strikethrough: 0b, text: "y"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D8D8D8", obfuscated: 0b, strikethrough: 0b, text: " "}, {italic: 0b, underlined: 0b, bold: 1b, color: "#DBDBDB", obfuscated: 0b, strikethrough: 0b, text: "Ca"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D8D8D8", obfuscated: 0b, strikethrough: 0b, text: "s"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D4D4D4", obfuscated: 0b, strikethrough: 0b, text: "e"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#D1D1D1", obfuscated: 0b, strikethrough: 0b, text: " "}, {italic: 0b, underlined: 0b, bold: 1b, color: "#CECECE", obfuscated: 0b, strikethrough: 0b, text: "K"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#CACACA", obfuscated: 0b, strikethrough: 0b, text: "e"}, {italic: 0b, underlined: 0b, bold: 1b, color: "#C7C7C7", obfuscated: 0b, strikethrough: 0b, text: "y"}], text: ""}, "minecraft:custom_data": {IsKey: "supplycasekey"}, "minecraft:item_name": {italic: 0b, text: "Supply Case Key"}}}
Because of the way the items get given back as quest rewards -> This also goes for actions that give you items. The items given back are not the same, so you cant setup the quest without playing through it and using that item.
@1337psgolfcart Thanks for your reply. Unfortunately, that command did not place any items in my inventory, textured or otherwise, on a Minecraft 1.21.10 server. Do you have another command which would be useful in testing this issue?
I'm hella sick atm, i'll be replying once i'm better (39,4°C fever)
Closing due to lack of response from OP. Feel free to reply below with requested information to re-open this isuue.