1.8.3 • Published 9 months ago

mc-icons v1.8.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

img E2E-E Icons

This TS-Node CLI app designed to automatically turn text in Markdown files into Minecraft's item icons, parsing their names or brackets.

Cli program demonstartion

Examples

Modpack Enigmatica 2: Expert - Extended using this tool for changelogs.

DescriptionCaptureResult
Items with exact matchBeaconnpm.io
Item from Minecraft picked firstGlassnpm.io
Add (every) inside get all itemsMossy Wall (every)npm.ionpm.io
Add (any) inside to pick only oneMossy Wall (any)npm.io
Specify mod in parenthGreen wall (Actually Additions)npm.io
You can use mod shortandor abbreviatureGreen wallGreen wallnpm.ionpm.io
Use (fluid) postfix to get fluidEnriched Lavanpm.io
Use numbers (4) as metadataFutura BlockFutura Blocknpm.ionpm.io
Capture by id [<mod:name:meta:{tag}>]<tconstruct:large_plate:0:{Material:"fierymetal"}>npm.io
Output first items if all have same iconAdvanced Pocketnpm.io
With mod defined only subset will be picked (if no exact match)Basalt Sla (every)npm.io
Big lists (not all names available)Molten Bucket (every)
Predefined placeholders<placeholder:pickaxe:3><placeholder:null>

Usage

  1. Install latest NodeJS for Windows or Unix

  2. Create Markdown file with strings of form [Item Name] (options)

  3. Run mc-icons with input file path

    > npx mc-icons README.md
  4. Input file would be changed in place

Options

> 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]

Developing

To generate icons into repo:

  1. Install mods IconExporter and JEIExporter.
  2. Run from game /iconexporter export 64. Note this issue and the fact that when MC window resized, it could output icons in 32x32 format despite 64 in argument.
  3. Export JEI data (default ctrl+J hotkey, see controls).
  4. Run
    ts-node src/tool/preparse.ts --mc=path/to/modpack --icons=icon-exports-x64 --modpack=modpack_shortand

Author

1.8.2

9 months ago

1.8.1

9 months ago

1.8.0

9 months ago

1.7.0

9 months ago

1.8.3

9 months ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.6

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.0.5

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago