New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

msch

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msch

A library to parse Mindustry schematic files.

latest
Source
npmnpm
Version
2.2.2
Version published
Weekly downloads
9
-92.24%
Maintainers
1
Weekly downloads
 
Created
Source

msch

A library for TypeScript code to interact with Mindustry schematic binaries.

Can serialize and deserialize schematics, decoding config values (extracts processor byteconfig to code and links). Uses NodeJS buffers.

import { Schematic, BlockConfig, BlockConfigType, ContentType, Unit } from "msch";
import fs from "node:fs/promises";

const code = [`print "Hello 😀"`, `printflush message1`];
const schem = new Schematic(10, 12, 1, {}, [], [
	new Tile("micro-processor", 0, 0, code),
	new Tile("bridge-conveyor", 0, 9, new BlockConfig(BlockConfigType.point, new Point2(-2, 0))),
	new Tile("message", 11, 9, new BlockConfig(BlockConfigType.string, "hello 😀 world")),
	new Tile("air-factory", 7, 1, new BlockConfig(BlockConfigType.content, [ContentType.unit, Unit.flare])),
]);
const buf = schem.write().toBuffer();
await fs.writeFile("out.msch", buf);
const schem2 = Schematic.read(buf);

If you are looking for a user interface, see msch-generate

Keywords

mindustry

FAQs

Package last updated on 21 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts