tellraw icon indicating copy to clipboard operation
tellraw copied to clipboard

[Suggestion] On export, don't export default settings/blank settings (would help make the message smaller)

Open RandomGgames opened this issue 1 year ago • 0 comments

When exporting a message for safe keeping, especially when the message has many parts, the export is VERY LARGE. This seems due to every aspect that would be able to be added also being exported, even if they default to blank/false.

For example, just the command which only used one text box

/tellraw @p "Hi"

exports to

{"jformat":8,"jobject":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_object":{},"hover_event_children":[],"text":"Hi"}],"command":"/tellraw @p %s","jtemplate":"tellraw"}

which seems just completely unnecessary.

RandomGgames avatar Sep 02 '22 01:09 RandomGgames