writable book and written book have a different data structure in the raw component
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[0].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text"
the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
Environment
windows 11,
java (build 1.8.0_401-b10)
Created Issue:
writable book and written book have a different data structure in the raw component
doing /data get @s Inventory[0].components.minecraft:writable_book_content.pages[0] on a writable book will return {raw: "text"} so using this in something like a macro will give text but using /data get @s Inventory[\{Slot:0b}].components.minecraft:written_book_content.pages[0] on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
Environment
windows 1,
java (build 1.8.0_401-b10)
doing /data get @s Inventory[0].components.minecraft:writable_book_content.pages[0] on a writable book will return {raw: "text"} so using this in something like a macro will give text but using /data get @s Inventory[\{Slot:0b}].components.minecraft:written_book_content.pages[0]
on awrittenbookreturns {raw: '"text"'} so in a macro it will give "text" side by side that'stext , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[
{Slot:0b}].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
windows 11,
java (build 1.8.0_401-b10)
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[
{Slot:0b}
].components.minecraft:written_book_content.pages[0]on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[\{Slot:0b}].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[
\{Slot:0b}].components.minecraft:written_book_content.pages[0]on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[0].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text" the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
doing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[0].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text"the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function namedoing
/data get @s Inventory[0].components.minecraft:writable_book_content.pages[0]
on a writable book will return {raw: "text"} so using this in something like a macro will give text but using
/data get @s Inventory[0].components.minecraft:written_book_content.pages[0]
on a written book returns {raw: '"text"'} so in a macro it will give "text" side by side that's
text , "text"
the written book has extra quotes witch makes it imposable to convert between them or run functions from a written book as you can not use quotes in a function name
This is intended per the 24w09a changelog: