Veil mod SDK (English)
A mod for 月蝕 (Eklise) is a single wasm file. You write it in Rust, build it for wasm32-unknown-unknown, drop it into the mods folder, and the game runs it in a sandbox. These pages are organised by what you want to do, not by API version.
These are not Java Edition mods. Forge, Fabric, Quilt, Bukkit, Spigot and Paper plugins, Java (
.java) and Gradle are not used and will not run in 月蝕. The only language is Rust (#![no_std],mc189_mod_sdk). If you ask an AI to write a mod, paste this line too so it does not produce Java code.
New here? Start with quickstart.md. Three commands get a mod on screen: mc189 mod new, cd, mc189 mod dev.
Testing your mod on ordinary servers: devkey.md (developer keys).
The Korean docs (../README.md) are the source of truth and cover every topic. The English set covers the parts most people need first: getting started, picking an ABI version, HUD, blocks, items and server mods. Where a page here is shorter than its Korean twin, it says so and links to it.
Names you will see
| Name | What it is |
|---|---|
| 月蝕 (gesshoku, English Eklise) | The project as a whole: the client, the server and the launcher. This is the name on the window title and the launcher |
| mc189 / mc189rs | The repository and the executable. It is a 1:1 Rust port of the Minecraft 1.8.9 client, hence the name. Commands start with mc189 … |
| Veil | The interface (ABI) between a mod and the game or server. It is versioned: mc_abi 1, 2, 3, 4, 5 and 7 (abi.md) |
| Umbra | The 月蝕 server. Inside the repository it is called isrv (server/isrv). Singleplayer runs an embedded Umbra too. Blocks, items, mobs and server code run there |
mc189-mod-sdk | This SDK crate. In code it is mc189_mod_sdk |
veil_mod! | The macro that declares a mod. One macro covers every kind of mod |
mc189_mod! / mc189_mod_v5! | The two older macros. They still work and always will (abi.md, "The old way") |
| gesshoku | Romanised 月蝕. You will see it in plugin channel names such as gesshoku:content |
Find it by task
Everything is declared with veil_mod!. The right-hand column is the field you fill in and the ABI version the macro picks for you.
| I want to… | Read | Field · version |
|---|---|---|
| Draw text, boxes or a card on screen | guides/hud.md | main · 4 |
| Add a new block | guides/blocks.md | content, block_hook · 5 |
| Add an item, tool, food or recipe | guides/items.md | content, item_hook · 5 |
| Add server commands or react to server events | guides/server.md | server_init, event · 5 |
| Put a HUD and a block (or a command) in one mod | abi.md | main + content · 5 |
| Keys, settings, mobs, GUIs, effects, models, camera, networking, storage, mod-to-mod calls | Korean guides in ../guides/ |
For examples, pick from the table in mods-examples/README.md. The three written in the new style, easy_hud, easy_block and easy_server, are the best place to start.
Reference
- ../tools.md: every
mc189 modcommand, templates, hot reload, reading crash notices (Korean). - ../reference.md: every function, module by module. Generated from the SDK source, so the doc comments are in Korean but the signatures are what matter.
- abi.md: ABI versions, how the macro picks one, the old macros.
- ../rules.md: what mods may and may not do, and why (Korean, authoritative).
- ../faq.md: common problems,
no_std, reading error messages (Korean).
About the code on these pages
Every complete mod shown here is marked <!-- snip:… -->, and python3 -I tools/sdk-snips.py builds each one for wasm32-unknown-unknown and runs it through tools/mods-check.sh. Excerpts taken from real examples are marked <!-- src:… -->; tools/sdk-check.sh builds those examples. Anything we could not verify is marked "unverified". If the docs and the source disagree, the source wins.