server.properties error on resource-pack-prompt= with 1.21.7 paper server

Hi all, I have just updated my 1.21.4 paper server to 1.21.7 and now I get an error in the console reporting I have a malformed json for my resource-pack-prompt (see attached). This is what I currently have: resource-pack-prompt=["",{"text"\:"\n"},{"text"\:"NOTE","bold"\:true,"color"\:"red"},{"text"\:"\n","bold"\:true},{"text"\:"THE","bold"\:true,"color"\:"white"},{"text"\:" CONSTRUCT","bold"\:true,"color"\:"gold"},{"text"\:" uses a custom resource pack to ensure certain features work correctly.\n\nThis is "},{"text"\:"required","underlined"\:true},{"text"\:" in order to ensure that everyones experience is the same.\n\nPlease select "},{"text"\:"Proceed","bold"\:true,"color"\:"dark_green"},{"text"\:" to download and automatically install."}]
No description
10 Replies
TinnyFusion
TinnyFusionOP•5w ago
Anyone know a site/resource that will let me create this in an online editor so the formatting is correct?
TinnyFusion
TinnyFusionOP•5w ago
To note, I have tried using https://minecraft.tools/en/json_text.php but still get the same error.
Minecraft.Tools
JSON Text Generator
JSON Text component Generator Minecraft Java Bedrock
Eismeister
Eismeister•5w ago
try using "\n" instead of "\n" for newlines bruh, discord wont show the second slash use two \ instead of one \
Lunaiskey
Lunaiskey•5w ago
thats invalid json, drop the backslashes from infront of "text" im also not 100% sure if you need the square brackets at the beginning and the end
{"text":"\n"},{"text":"NOTE","bold":true,"color":"red"},{"text":"\n","bold":true},{"text":"THE","bold":true,"color":"white"},{"text":" CONSTRUCT","bold":true,"color":"gold"},{"text":" uses a custom resource pack to ensure certain features work correctly.\n\nThis is "},{"text":"required","underlined":true},{"text":" in order to ensure that everyones experience is the same.\n\nPlease select "},{"text":"Proceed","bold":true,"color":"dark_green"},{"text":" to download and automatically install."}
{"text":"\n"},{"text":"NOTE","bold":true,"color":"red"},{"text":"\n","bold":true},{"text":"THE","bold":true,"color":"white"},{"text":" CONSTRUCT","bold":true,"color":"gold"},{"text":" uses a custom resource pack to ensure certain features work correctly.\n\nThis is "},{"text":"required","underlined":true},{"text":" in order to ensure that everyones experience is the same.\n\nPlease select "},{"text":"Proceed","bold":true,"color":"dark_green"},{"text":" to download and automatically install."}
i also dont think you require the empty quotes at the start of your string
TinnyFusion
TinnyFusionOP•5w ago
Thanks both. So do I also need a double \ for the new lines (\n) too?
TinnyFusion
TinnyFusionOP•5w ago
Still getting the error
No description
TinnyFusion
TinnyFusionOP•5w ago
I have just run this trough https://jsonlint.com/ and it gave the following: Error: Parse error on line 1: {"text":"\n"},{"text":"NOTE","bol -------------^ Expecting 'EOF', got ','
JSON Online Validator and Formatter - JSON Lint
JSONLint is the free online validator, json formatter, and json beautifier tool for JSON, a lightweight data-interchange format. You can format json, validate json, with a quick and easy copy+paste.
Lunaiskey
Lunaiskey•5w ago
[{"text":"\\n"},{"text":"NOTE","bold":true,"color":"red"},{"text":"\\n","bold":true},{"text":"THE","bold":true,"color":"white"},{"text":" CONSTRUCT","bold":true,"color":"gold"},{"text":" uses a custom resource pack to ensure certain features work correctly.\\n\\nThis is "},{"text":"required","underlined":true},{"text":" in order to ensure that everyones experience is the same.\\n\\nPlease select "},{"text":"Proceed","bold":true,"color":"dark_green"},{"text":" to download and automatically install."}]
[{"text":"\\n"},{"text":"NOTE","bold":true,"color":"red"},{"text":"\\n","bold":true},{"text":"THE","bold":true,"color":"white"},{"text":" CONSTRUCT","bold":true,"color":"gold"},{"text":" uses a custom resource pack to ensure certain features work correctly.\\n\\nThis is "},{"text":"required","underlined":true},{"text":" in order to ensure that everyones experience is the same.\\n\\nPlease select "},{"text":"Proceed","bold":true,"color":"dark_green"},{"text":" to download and automatically install."}]
try this thats cus i removed the square brackets the change i made was doing what eismeister suggested, doing \\n instead of \n
TinnyFusion
TinnyFusionOP•5w ago
Just trying now 😉
TinnyFusion
TinnyFusionOP•5w ago
@Lunaiskey thank you! Now to reword it as two ensures is hurting my brain lol
No description

Did you find this page helpful?