mega12345mega / NBT-Editor

Edit items, blocks, and entities in-game.
MIT License
31 stars 9 forks source link

Display of item size in game #77

Closed Xantrisse closed 5 months ago

Xantrisse commented 6 months ago

Display of item size in game (Can be set to Bytes, KiloBytes or MegaBytes) ugeij2sgdit31

mega12345mega commented 6 months ago

This seems interesting! There are a couple of config options that I could implement. What do you think I should bother making configurable, what should the defaults be, and if not configurable what should it be set to?

Xantrisse commented 6 months ago

Ideally it would show the uncompressed size of the item. If there is a string of, for example, 20 characters, the description will say "NBT Size: 20B" or something like that. Possibility to include real size or compressed size. Display types: Bytes, Kilobytes, Megabytes, AUTO

Suggested Default Settings:

*The AUTO display type will automatically change the display depending on the size of the item.

mega12345mega commented 5 months ago

I've now released this v1.13.0! It is off by default, but can be enabled in /nbt config.

Warning: If anyone does what I obviously immediately did, which is attempting to create absurdly large items with recursive containers, keep in mind: