Can anyone tell me what is causing problems in yaml syntax?

'/give @p written_book{pages:['["",{"text":"The Holder of the End","bold":true,"underlined":true},{"text":"\n\nIn any city, in any country, go to any mental institution or halfway ","color":"reset"},{"text":"house","color":"blue"},{"text":" in you can get yourself to. When you reach the front desk, ask to visit\nsomeone who calls himself \"The Holder of the End\".","color":"reset"}]','{"text":"Should a look of child-like fear come over the workers face, you will then be taken to a cell in the building. It will be in a deep hidden section of the building. All you will hear is the sound of someone talking to themselves echo the halls. It is in a language that you will not understand, but"}','{"text":"your very soul will feel unspeakable fear.\nShould the talking stop at any time, STOP and QUICKLY say aloud \"I'm just passing through, I wish to talk.\" If you still hear silence, flee. Leave, do not stop for anything, do not go home, don't stay at an inn, just keep moving, and sleep where your"}','{"text":"body drops. You will know in the morning if you've escaped.\nIf the voice in the hall comes back after you utter those words continue on. Upon reaching the cell all you will see is a windowless room with a person in the corner, speaking an unknown language, and cradling"}','{"text":"something. The person will only respond to one question. \"What happens when they all come together?\"\nThe person will then stare into your eyes and answer your question in horrifying detail. Many go mad in that very cell, some disappear soon after the meeting, and a few"}','["",{"text":"end their lives. But most do the worst thing, and look upon the "},{"text":"object","color":"dark_purple"},{"text":" in the person's hands. You will want to as well. Be warned that if you do, your death will be one of cruelty and unrelenting horror.\nYour death will be in that room, by that person's hands.","color":"reset"}]','["",
{"text":"\n\n\n\nThat "},{"text":"object","color":"dark_purple"},{"text":" is ","color":"reset"},{"text":"1","color":"red"},{"text":" of ","color":"reset"},{"text":"538","color":"blue"},{"text":".\n\nThey must never come together. ","color":"reset"},{"text":"Never","obfuscated":true},{"text":".","color":"reset"}]'],title:"Object 1",author:Zew}'
'/give @p written_book{pages:['["",{"text":"The Holder of the End","bold":true,"underlined":true},{"text":"\n\nIn any city, in any country, go to any mental institution or halfway ","color":"reset"},{"text":"house","color":"blue"},{"text":" in you can get yourself to. When you reach the front desk, ask to visit\nsomeone who calls himself \"The Holder of the End\".","color":"reset"}]','{"text":"Should a look of child-like fear come over the workers face, you will then be taken to a cell in the building. It will be in a deep hidden section of the building. All you will hear is the sound of someone talking to themselves echo the halls. It is in a language that you will not understand, but"}','{"text":"your very soul will feel unspeakable fear.\nShould the talking stop at any time, STOP and QUICKLY say aloud \"I'm just passing through, I wish to talk.\" If you still hear silence, flee. Leave, do not stop for anything, do not go home, don't stay at an inn, just keep moving, and sleep where your"}','{"text":"body drops. You will know in the morning if you've escaped.\nIf the voice in the hall comes back after you utter those words continue on. Upon reaching the cell all you will see is a windowless room with a person in the corner, speaking an unknown language, and cradling"}','{"text":"something. The person will only respond to one question. \"What happens when they all come together?\"\nThe person will then stare into your eyes and answer your question in horrifying detail. Many go mad in that very cell, some disappear soon after the meeting, and a few"}','["",{"text":"end their lives. But most do the worst thing, and look upon the "},{"text":"object","color":"dark_purple"},{"text":" in the person's hands. You will want to as well. Be warned that if you do, your death will be one of cruelty and unrelenting horror.\nYour death will be in that room, by that person's hands.","color":"reset"}]','["",
{"text":"\n\n\n\nThat "},{"text":"object","color":"dark_purple"},{"text":" is ","color":"reset"},{"text":"1","color":"red"},{"text":" of ","color":"reset"},{"text":"538","color":"blue"},{"text":".\n\nThey must never come together. ","color":"reset"},{"text":"Never","obfuscated":true},{"text":".","color":"reset"}]'],title:"Object 1",author:Zew}'
If anyone knows yaml syntax well enough to tell me what is wrong with this please let me know.
33 Replies
Admincraft Meta
Admincraft Meta16mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by torrentstaff#0
Torrent
TorrentOP16mo ago
(I wasn't the one generating this command I just want to help the guy prepare for a scavenger hunt on my server)
Discount Milk
Discount Milk16mo ago
What error are you getting when you run the command? I guess you're trying to put this in a command block?
Torrent
TorrentOP16mo ago
Should’ve been more specific my bad. I’m trying to register a mycommand alias with this and I’m struggling to get it to work. In yaml checker it says something about bad separator or paragraph indent. I don’t really understand it
Philipp
Philipp16mo ago
Just from the looks it seems you don't escape the quotes correctly if what you posted is some value in some config file it probably can only read: '/give @p written_book{pages:['
Lunaiskey
Lunaiskey16mo ago
thats json not yaml
ProGamingDk
ProGamingDk16mo ago
It's a json command inside of a yaml config Probably
Lunaiskey
Lunaiskey16mo ago
also shouldnt they make sure they run /minecraft:give
ProGamingDk
ProGamingDk16mo ago
Only if they have essentials/plugin that's overriding the give command but generally a good idea yeah
Lunaiskey
Lunaiskey16mo ago
id probs run that through a json beautifier tho munecraft isnt known for its good json syntax or atleast it complains alot
Mortis
Mortis16mo ago
List all your plugins Honestly if you got essential make a kit for the book It's way simpler and users can run the cmd
Torrent
TorrentOP16mo ago
Server Plugins (34):
Paper Plugins: EconomyShopGUI
Bukkit Plugins:
BetonQuest, BetterRTP, Citizens, CommandButtons, CoreProtect, DecentHolograms, DiscordSRV, dynmap, Essentials, EssentialsChat, EzChestShop, Falling, FlightControl, floodgate, FreedomChat, Geyser-Spigot, GriefPrevention, GrimAC, GSit, LuckPerms, MyCommand, OpenInv, PlaceholderAPI, ProtocolLib, SimplePortals, SpectatorMode, TAB, Vault, VillagerMarket, Votifier, VotingPlugin, WebConsole, WorldEdit
Server Plugins (34):
Paper Plugins: EconomyShopGUI
Bukkit Plugins:
BetonQuest, BetterRTP, Citizens, CommandButtons, CoreProtect, DecentHolograms, DiscordSRV, dynmap, Essentials, EssentialsChat, EzChestShop, Falling, FlightControl, floodgate, FreedomChat, Geyser-Spigot, GriefPrevention, GrimAC, GSit, LuckPerms, MyCommand, OpenInv, PlaceholderAPI, ProtocolLib, SimplePortals, SpectatorMode, TAB, Vault, VillagerMarket, Votifier, VotingPlugin, WebConsole, WorldEdit
ProGamingDk
ProGamingDk16mo ago
you need to use minecraft:give also uh where is this command?
Mortis
Mortis16mo ago
What plugin are you even using for the CMD anyways
ProGamingDk
ProGamingDk16mo ago
if its in mycmd use placeholders not @ p
Mortis
Mortis16mo ago
^^
Torrent
TorrentOP16mo ago
Ahhh good tip didn’t even think about that, will do Mycommand
ProGamingDk
ProGamingDk16mo ago
^^
Torrent
TorrentOP16mo ago
I’m not entirely sure that’s true I set it up in the essentials config so it doesn’t override commands like that Like for example:
ProGamingDk
ProGamingDk16mo ago
oh you disabled the give command from essentials?
Torrent
TorrentOP16mo ago
No description
Torrent
TorrentOP16mo ago
I believe there’s a config line in essentials that’s like command overrides or something, I set that to false
ProGamingDk
ProGamingDk16mo ago
thats still essentials it looks like well no i know it is
Torrent
TorrentOP16mo ago
It is but you don’t have to type Minecraft:command or essentials:command
ProGamingDk
ProGamingDk16mo ago
vanilla minecraft give command doesnt show prefixes
Torrent
TorrentOP16mo ago
At least with how I’ve had it set up
ProGamingDk
ProGamingDk16mo ago
but it uses essentials version of give :-:
Torrent
TorrentOP16mo ago
Oh well I guess that makes sense I would think whether using essentials or Minecraft in mycommand wouldn’t make a different with the run_command type since it supports other plugin commands But nonetheless I’ll try it with Minecraft:give
ProGamingDk
ProGamingDk16mo ago
you never had to do essentials:command issue is just essentials by default overrides the give command and doesnt support neither @ p nor the same json syntax
Torrent
TorrentOP16mo ago
This kinda went over my head ngl Oh I see Ok that makes perfect sense I’ll change it to Minecraft:give And the placeholder Just to be safe
Mortis
Mortis16mo ago
Imagine this - "give torrent stick 1 named "kB stick" " The last bit is likely to throw an error as it got quotation
Torrent
TorrentOP16mo ago
I give up for now my mental health is suffering from this I just can’t get run_command types to work The docs don’t say very much about it just give examples And the tutorials on YouTube suck Closing for now guys thx for the help !close
Admincraft Meta
Admincraft Meta16mo ago
post closed!
The post/thread has been closed!
Requested by torrentstaff#0

Did you find this page helpful?