chun_yu 发表于 2024-8-7 17:44:29

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

本帖最后由 chun_yu 于 2024-8-7 17:48 编辑


如图所示,我真没检查出什么问题来,请各位大大们指点。
以下是源码
/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\":\"===================\"}]"]}



惯宣-CGX_ 发表于 2024-8-8 10:37:41

本帖最后由 惯宣-CGX_ 于 2024-8-8 10:39 编辑

有没有一种可能1.12的clickEvent只能用在tellraw里

chun_yu 发表于 2024-8-8 14:02:33

惯宣-CGX_ 发表于 2024-8-8 10:37
有没有一种可能1.12的clickEvent只能用在tellraw里

显然不是,原中文书中就有clickEvent,并且能正常使用

惯宣-CGX_ 发表于 2024-8-8 14:35:02

chun_yu 发表于 2024-8-8 14:02
显然不是,原中文书中就有clickEvent,并且能正常使用

既然不是那就建议查看报错然后检查书了,或是看看setblock是不是没有清除,帮不到你了
页: [1]
查看完整版本: 【JE·命令】[1.12.2]为什么这个成书的nbt无法识别啊