mega12345mega / NBT-Editor

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

Make .nbt file names based off Item Name or Command Args #38

Closed KadTheHunter closed 1 year ago

KadTheHunter commented 1 year ago

The feature of saving items to a .nbt file is absolutely amazing, but with one small annoyance: the file names are just the date and time of when you saved the file, meaning you have to rename the files as you save them, unless you want a jumble of files with no indication as to what is what.

I suggest one or both of the following:

If both were added, then it would default to item name if no arguments are given.

I look forward to seeing this added :)

mega12345mega commented 1 year ago

I've just released v1.11.0, which adds this! When no arguments are added, the exported file is the item name followed by the timestamp. When there is an additional argument, the file name is set to it without any timestamp. The exported files use the same system as world names, so the same characters will be filtered out and duplicate file names will be handled in the same way. To go along with this upgrade, I've also added [Open Folder] and [Delete] buttons to the export message and screenshot message.

KadTheHunter commented 1 year ago

This is amazing!! Thank you so much for adding this (and adding it full featured) :)