ezfe/tellraw

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

Closed this issue · 1 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.

ezfe commented

I'm working on importing Minecraft commands, which will remove this as an issue since you can just save that (see #339)