This TS-Node CLI app designed to automatically turn text in Markdown files into Minecraft's item icons, parsing their names or brackets.
Modpack Enigmatica 2: Expert - Extended using this tool for changelogs.
-
Create Markdown file with strings of form
[Item Name] (options)
-
Run
mc-icons
with input file path> npx mc-icons README.md
-
Input file would be changed in place
> npx mc-icons --help
output:
-t, --treshold Levenshtein name mistake treshold [number] [default: 0]
-x, --max Maximum amount of icons in multiple results [number] [default: 64]
-r, --repo Repository to make short links to [string] [default: "https://github.com/Krutoy242/mc-icons/raw/master/i/"]
-m, --modpack Modpack shortand to filter icons, "e2ee" for example [string]
-s, --silent Do not any prompt [boolean]
-o, --short Shorten long links with is.gd [boolean] [default: true]
To generate icons into repo:
- Install mods IconExporter and JEIExporter.
- Run from game
/iconexporter export 64
. Note this issue and the fact that when MC window resized, it could output icons in 32x32 format despite64
in argument. - Export JEI data (default
ctrl+J
hotkey, see controls). - Run
ts-node src/tool/preparse.ts --mc=path/to/modpack --icons=icon-exports-x64 --modpack=modpack_shortand