问题 【JE·命令】[1.12.2]为什么这个成书的nbt无法识别啊

chun_yu

【Lv:1】

正式会员
注册
2024/07/29
消息
2
金粒
441.00金粒
2024-08-07_17.28.07.png2024-08-07_17.28.33.png
如图所示,我真没检查出什么问题来,请各位大大们指点。
以下是源码

/give @p minecraft:written_book 1 0 {display:{Name:"Thank you for downloading the map",Lore:["This is a reference book... (Don't you think so?)"]},HideFlags:32,title:"Thank you for downloading the map",author:"***",generation:1,pages:["[{\"text\":\"Welcome to *** ***! I'm ***, the map maker. I hope you enjoy this map; Please complete settings according to the map requirements to ensure the best gaming experience for you. If you're ready, please click on the blue font on next page to start\"}]","[{\"text\":\"the game. Wishing you a pleasant experience!\\n===================\\n\"},{\"text\":\"Test resourcepack\\n\",\"color\":\"light_purple\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock -463 4 -1185 redstone_block\"}},{\"text\":\"Contact infomation\\n\",\"color\":\"green\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock -465 4 -1185 redstone_block\"}},{\"text\":\"Game rules\\n\",\"color\":\"yellow\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock -467 4 -1185 redstone_block\"}},{\"text\":\"Start Game\\n\",\"color\":\"aqua\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock -465 4 -1184 redstone_block\"}},{\"text\":\"===================\"}]"]}
 
emmm,我只能给以下建议,你看看好使不好使:
1、所有 ' 换成 \',文本内的引号加上转义符
2、所有 \" 换成 ",文本外的引号去掉转义符
3、内层或外层 " 换成 '
4、pages结构 换成: pages:["{'text':'abcdefg'}"] 去掉中间的 [ ]
nbt真的是个折磨人的玩意,可读性简直低的可怕...!
 

在线会员

  • 未雨屏
  • Mqtzzn
  • The_bird
  • 手动滑稽
  • 小叶
  • Jeremy_888
  • 1581043730
  • shako2333
  • Yimodo
  • 酚酞
  • Coquettishpig
  • wenjing
  • 没烦恼
  • calman2022
  • Whyousmile
  • !!!!!!1
  • benner
  • 晚霞与你
  • 萧瑟
后退
顶部 底部