跳到正文

BlockPrint Link

作者:moxisuki

Browse, download, and upload Minecraft schematics from external clients via WebSocket + UDP.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

BlockPrint Link

Browse, download, and upload Minecraft schematics from any device.

BlockPrint Link is a client-side mod that exposes a local WebSocket bridge
and UDP discovery beacon on the Minecraft client (the player instance, not
the dedicated server). Pair it with the
BlockPrint Cat
mobile app to browse your schematic library, preview files, and push new
blueprints straight into your world — without leaving your phone.

screenshot


✨ Features

  • Schematic library browser — lists all Litematica, vanilla structure exports,
    and WorldEdit schematics on the host.
  • Two-way transfer — download blueprints to your device or upload
    .litematic / .schematic files back into the game.
  • Auto-discovery via UDP — the mod broadcasts its presence on port 18081,
    so the mobile app finds it on the same network automatically. No IP typing
    required.
  • QR-code pairing — press F7 in-game to open a QR-code overlay that the
    mobile app scans to connect instantly.
  • Configurable — token, port, and chat notifications live in
    config/blockprintlink-bridge.toml. Changes reload via /blockprint-reload.
  • Optional mod integrations — auto-detects WorldEdit (for its schematic
    directory) and Building Gadgets 2 (click-to-copy uploaded template JSON in
    chat).
  • Live file watching — schematic list updates in real time when files are
    added or removed.
  • SHA-256 verified uploads — every transfer is checksummed end-to-end.

📦 Schematic Sources

Source Path When enabled
Litematica schematics <gameDir>/schematics/ Always
Vanilla structure exports <gameDir>/saves/*/generated/minecraft/structures/ Always
WorldEdit schematics <gameDir>/config/worldedit/schematics/ When WorldEdit is on the classpath (auto-detected)

WorldEdit integration requires no Gradle dependency — it’s read at runtime
from the default directory, detected via classpath probing.


🚀 Quick Start

  1. Drop the mod jar into your mods/ folder.
  2. Launch Minecraft. The mod’s WebSocket server starts on port 18080;
    UDP beacon on 18081.
  3. Open the BlockPrint Cat app on your phone (same Wi-Fi). It discovers
    the server automatically.
  4. If auto-discovery fails, press F7 in-game to display a QR code, then
    scan it in the app.

⚙️ Configuration

Config file: config/blockprintlink-bridge.toml

[bridge]
token = ""               # Leave empty to auto-generate; persisted to blockprintlink-token.txt
showChatMessages = true  # Show bridge status in chat on join
wsPort = 18080           # WebSocket port
discoveryPort = 18081    # UDP discovery port
  • The token is shown in chat on join. It can be any non-empty string.
  • The persisted token lives in <gameDir>/blockprintlink-token.txt and
    survives restarts.
  • Reload with /blockprint-reload.

📋 Requirements

  • NeoForge / Forge: Kotlin for Forge ([5,)) — bundled as a loader-side
    dependency.
  • Fabric: Fabric Loader >=0.16.9 and Fabric API >=0.116.12+1.21.1 (or
    the version listed in the matching gradle/libs.versions.toml row).
  • Java: 21 (or 17 for Forge 1.20.1).

🧩 Protocol (for app developers)

The bridge speaks a tiny JSON-over-WebSocket protocol on port 18080 with
binary frame support for file transfer. Full specification, message types,
and error codes:

Highlights:

  • list — request schematic list
  • download / upload — two-phase file transfer with SHA-256
  • list/changed — server push when files change on disk
  • error — structured error responses with codes
    (AUTH_FAILED, FILE_TOO_LARGE, SHA_MISMATCH, …)

常见问题

BlockPrint Link 支持哪些 Minecraft 版本?

BlockPrint Link 支持 Minecraft Java 版 1.20.1–26.1.2,共 5 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

BlockPrint Link 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分