the lecter stands on top of a command
with this command inside
data merge block ~ ~1 ~ {Book:{id:"minecraft:written_book",Count:1b,tag:{pages:["{\"text\":\"papa\"}","{\"score\":\"@p\",\"objective\":\"test\",\"value\":\"\"}"]}}}
scoreboard commands
/scoreboard objectives add test dummy "test"
/scoreboard players add @a test 1
i use a writable book write test in it. signed it and lay it on the lecter.
power the command block and open the lecter.
Hey thanks for respond.
data merge block ~ ~1 ~ {Book:{id:"minecraft:written_book",Count:1b,tag:{pages:["{\"text\":\"swasd\"}"]}}}
with this command u can change alle json types without any problems.
If you want to show a score in the book wich is actually working if you use the give command the game crashes.
data merge block ~ ~1 ~ {Book:{id:"minecraft:written_book",Count:1b,tag:{pages:["{\"text\":\"papa\"}","{\"score\":\"@p\",\"objective\":\"test\",\"value\":\"\"}"]}}}
this command works but it crashs the game. (it isnt 100% correct ik but the game run the command)
data merge block ~ ~1 ~ {Book:{id:"minecraft:written_book",Count:1b,tag:{pages:["{\"text\":\"papa\"}","{\"score\":{\"name\":\"@p\",\"objective\":\"test\",\"value\":\"\"}}"]}}}
this also cause crash (i guess thats the rigth syntax at the moment i do not find the right one)
i can say in any version of the command whne the "score" tag is implemented the game crash's
The problem is that it works via give command cause it reads the actual score. if you change it via data merge command i guess it crash cause it cant get the value. hardcoded problem.
If you have any question i'll answer them. It's hard to describe the circumstances.
I dont know how to remove an bug report. I solved the problem by using an other command.
I´m sry my launch log is to big to get attached on the post so i searched for the crash report inside the launch log. In the crash report didn't exist any new crash reports.
Sometimes the game didn't even crash it get stuck in the loading screen and can only be closed with task manager.