Open DorkOrc opened 1 week ago
Other examples include places where you can have lists of text components, or other objects and plain text lines. Examples:
set_written_book_pages
https://misode.github.io/item-modifier/?share=pLbe99uqhSset_lore
https://misode.github.io/item-modifier/?share=Fx7buhJc1Vset_writable_book_pages
https://misode.github.io/item-modifier/?share=FFMJO4v3c3
For example, this item modifer outputs:
Which is invalid SNBT because arrays can only contain elements of the same type, but this contains a compound and a string.
In this specific case, the plain string,
" World"
, should be changed to the compound{text:" World"}
as that's how the game naturally would handle it.This seems like something that would need case-by-case solving. You could always just have a little warning sign if it does happen somewhere that isn't solved saying "Warning this isn't actually valid SNBT!".