Slicer is a Rust port of Mojang's slicer program written in Java.
- Open Terminal/Command Prompt and cd to the project directory. (outside the src folder)
- Type
cargo build --release - Go into the generated target folder then into the release folder.
- The compiled executable file should be in here called
slicer. Feel free to copy the file anywhere else to use.
If using compiled executable file, cd to the directory with the slicer executable
and replace all cargo run --release -- with ./slicer when running the commands
If any of the folder/file paths contain space's make sure to put the paths in double quotes
like this "./path/to my/cool pack"
cargo run --release -- <input dir or zip> <output dir> [<leftover dir>] (leftover dir is optional location that will be filled with copies of source images with added highlights for no longer needed areas).
cargo run --release -- ./My-Cool-Pack ./output
cargo run --release -- ./My-Cool-Pack ./output ./leftovers
cargo run --release -- ./My-Cool-Pack ./My-Cool-Pack
cargo run --release -- ./My-Cool-Pack ./My-Cool-Pack ./leftovers
Output directory can't be the same as the input if the input is a zip.
cargo run --release -- ./My-Cool-Pack.zip ./output ./leftovers