How jamesonknutson/coincartel-mkb-scripts-hypixel-skyblock works
This repository’s executable product is a Node.js exporter for legacy Minecraft Macro Mod (MKB) scripts. The workflow is: invoke the CLI, scan MKB source files for function definitions and calls, resolve and order dependencies, then write per-function exports and optionally update target production files. The mkbSource/ tree contains the script library being processed; mkbDist/ is the exported library. The README describes a broader collection of SkyBlock scripts, but the sampled runtime implements export and import generation, not those scripts’ in-game behavior. Relationships below are limited to the CLI and sampled source evidence.
Main entry points: index.js Export orchestration · fnDefinition.js Function definitions · directory.js Directory scanner · outFile.js Target-file parser
Components 13
CLI and orchestration
- Export command
bin/index.js - Export orchestration
src/index.js - Source/output paths
src/constants.js
Parsing and dependencies
- Function definitions
src/struct/fn/fnDefinition.js - Function calls
src/struct/fn/fnCall.js - Whitespace formatting
src/util/whitespace.js
File handling
- MKB source library
mkbSource - Exported functions
mkbDist - Production target files
- Directory scanner
src/struct/fileSystem/directory.js - File parser
src/struct/fileSystem/file.js - Target-file parser
src/struct/fileSystem/outFile.js
Other components
- Script maintainer
Connections 14
- Script maintainer → Export command: runs export
bin/index.js - Export command → Export orchestration: calls main
bin/index.js - Export orchestration → Source/output paths: reads paths
src/index.js - Export orchestration → Directory scanner: scans source
src/index.js - Directory scanner → MKB source library: reads files
- Directory scanner → File parser: creates files
src/struct/fileSystem/directory.js - File parser → Function definitions: parses definitions
src/struct/fileSystem/file.js - Function definitions → Function calls: extracts calls
src/struct/fn/fnDefinition.js - Function definitions → Whitespace formatting: formats text
src/struct/fn/fnDefinition.js - Export orchestration → Exported functions: writes exports
src/index.js - Export orchestration → Target-file parser: parses targets
src/index.js - Target-file parser → Production target files: reads target
- Target-file parser → Function definitions: resolves calls
src/struct/fileSystem/outFile.js - Export orchestration → Production target files: updates imports