MagicalChalk

模组

· 作者 MickDev

结构生成器,构建结构等等

0 本站下载 0 关注 更新于 6 个月前

最新 1.0.0 · 1.21.1 · NeoForge

一键开服(送7天)

MagicalChalk

Minecraft 1.21.1 · NeoForge · Create, import, export and place structures · Magic Chalk Studio (built-in builder) · API for other mods · EN / FR

Author: MickDev


Summary

Create, import and place Minecraft structures with magical chalk. Export .chalk, JSON and datapack .nbt, Litematica/WorldEdit conversion, graphical import manager, build studio with WorldEdit-like tools, biome/structure API for other mods. NeoForge 1.21.1.


Overview

MagicalChalk is a server + client mod for NeoForge 1.21.1 that lets you:

  • Select an in-game area with structure chalk (2 clicks)
  • Save structures to server world storage
  • Place blueprints with Magical Chalk (right-click, replaces obstacles)
  • Import / export .chalk, .json and .nbt files
  • Convert WorldEdit schematics (.schem), Litematica (.litematic) and vanilla structures (.nbt)
  • Build in an advanced creative mode with Magic Chalk Studio (/builder)
  • Expose an API so other mods can register structures and bind them to existing biomes

The mod includes built-in showcase structures (hub, End fortress, etc.) and works on dedicated servers, LAN and single-player.

LuckPerms: compatible and optional (otherwise OP level 2 by default for most admin actions).


Compatibility

Item Details
Minecraft 1.21.1
Loader NeoForge (21.1.x)
Side Server + client (import GUI, preview, studio)
LuckPerms Optional — magicalchalk.* nodes
Third-party mod API JSON in data/<modid>/magicalchalk/structures/ or Java

Quick start

  1. Create a structure
    /chalk → click 2 corners → /chalk magic create my_tower

  2. Place a structure
    /magicalchalk my_tower → magical chalk in hand → right-click to place the blueprint

  3. Import a file
    Drop .chalk or .json in config/magicalchalk/structures/ → /chalk import (GUI) or /chalk import <name>

  4. Builder mode
    /builder or /build → B keybind (configurable) → tools, blocks, undo/redo


Commands — /chalk

Requires OP 2 or magicalchalk.admin / magicalchalk.use permission (see permissions).

Command Description
/chalk Gives Structure Chalk and starts a selection (2 clicks)
/chalk magic create <name> Saves the selection as a structure (magicalchalk.create)
/chalk cancel Cancels the current selection
/chalk remove <name> Removes the structure from server world storage
/chalk remove <name> <true|false> Removes + optional deletion of exported files
/chalk export <name> Exports .chalk → config/magicalchalk/structures/
/chalk legacyexport <name> Exports legacy JSON → config/magicalchalk/structures/
/chalk exportmcstructure <name> Exports vanilla .nbt → config/magicalchalk/mcstructures/ (datapacks / biomes)
/chalk import Opens the graphical manager (list, search, info panel, Import button)
/chalk import <name> Direct import from .chalk or .json
/chalk rename <old> <new> Renames a structure (world + exported files)
/chalk convert <file> Converts an external file into a MagicalChalk structure
/chalk convert <file> <name> Same with a custom structure name
/chalk reload Reloads config, datapacks and API registrations

Formats supported by /chalk convert

Extension Source
.litematic Litematica / Forgematica
.schem WorldEdit / Sponge schematic
.nbt Vanilla Minecraft structure template

Search paths: absolute/relative path, config/magicalchalk/structures/, schematics/ folder at game root.


Commands — /magicalchalk

Permission: magicalchalk.place (or OP 2 / admin).

Command Description
/magicalchalk Lists all loaded structures
/magicalchalk <name> Equips Magical Chalk with the chosen structure
/magicalchalk info <name> Shows metadata (size, blocks, megabuild, etc.)

Structure IDs: use a namespace to avoid conflicts — e.g. mymod:my_tower (no namespace → magicalchalk:my_tower).


Commands — Builder (Magic Chalk Studio)

Permission: magicalchalk.builder (or OP 2 / admin).

Command Description
/builder Opens the studio and enables builder mode
/build Alias for /builder

Magic Chalk Studio — tools & shortcuts

Available tools

Single place · 3×3 brush · Line · Filled / hollow rectangle · Filled / hollow circle · Filled / hollow ellipse · Filled / hollow sphere · Pyramid · Selection · Paste · Erase

Placement modes

Normal · Bottom-up · Extend

Keybinds (configurable)

Key Action
B Open / toggle Magic Chalk Studio
H Show / hide studio menu
R Pick a tool
N Pick a block (with search bar)
G Activate tool / place
V / U Layer up / Layer down
Z / Y Undo / Redo

The HUD shows the active tool, selected block and current Y layer.


Import manager (/chalk import)

Litematica-style interface:

  • Search bar (filter by name, file, ID)
  • Scrollable list of .json and .chalk files
  • Info panel: name, ID, format, date, dimensions, volume, blocks, file size
  • Import button to load the selected structure

Scanned folder: config/magicalchalk/structures/


Folders & file formats

Path Contents
config/magicalchalk/structures/ .chalk (recommended) and .json (legacy) files
config/magicalchalk/mcstructures/ .nbt exports for datapacks / structure generation
data/<modid>/magicalchalk/structures/ Structures bundled in a mod (loaded on startup)

Formats

  • .chalk — MagicalChalk 原生二进制格式(推荐,体积紧凑)
  • .json — 旧版文本格式 / 兼容工具
  • .nbt — Minecraft 原版结构模板(/chalk exportmcstructure)

模组物品

物品 用途
Structure Chalk 在 /chalk magic create 之前选择区域(点击两次)
Magical Chalk 在游戏中放置结构蓝图(右键点击)

LuckPerms 权限

如果没有安装 LuckPerms,管理员命令默认需要 OP 等级 2。

权限 访问范围
magicalchalk.admin 完整管理员权限(等同于 OP 2)
magicalchalk.use 管理员别名 / 通用使用
magicalchalk.select /chalk — 选择区域
magicalchalk.create /chalk magic create、/chalk remove、/chalk rename
magicalchalk.place /magicalchalk — 列表和装备
magicalchalk.import /chalk export、legacyexport、exportmcstructure、import
magicalchalk.convert /chalk convert
magicalchalk.builder /builder、/build、Magic Chalk Studio

LuckPerms 示例 (YAML)

magicalchalk.admin:
  description: MagicalChalk 管理员
  default: op

magicalchalk.builder:
  description: Magic Chalk Studio
  default: false

magicalchalk.place:
  description: 放置结构
  default: op

面向模组开发者的 API

MagicalChalk 提供了公开 API,用于注册结构并将其绑定到 现有生物群系(原版、Terralith、BOP 等),而 无需创建新的生物群系。

简单方法(无需 Java 代码)

在模组中放置一个 JSON 文件:

src/main/resources/data/<modid>/magicalchalk/structures/my_structure.json

然后在游戏中运行:/magicalchalk <modid:my_structure>

Java 方法

事件 RegisterMagicalChalkStructuresEvent — 类位于 com.mickdev.magicalchalk.api。

完整文档(英文 / 法文):仓库中的 magicalchalk-api-en.txt 和 magicalchalk-api-fr.txt。


语言

用户界面已翻译为 英语 (en_us) 和 法语 (fr_fr)。


模组实际功能

  • 游戏内长方体选择 + 客户端预览
  • 持久化结构存储(服务器 SavedData)
  • 支持方块替换的结构蓝图放置
  • 支持巨型建筑 / 大型结构
  • 多格式导出(chalk、JSON、NBT 数据包)
  • 支持从 Litematica、WorldEdit 和原版 NBT 转换
  • 图形化导入管理器
  • 内置创意建造工作室(工具、剪贴板、撤销/重做、图层)
  • 可拓展的 API,支持结构与生物群系绑定
  • 包含模组自带的展示结构

依赖项

  • NeoForge 21.1.x (Minecraft 1.21.1)
  • LuckPerms:可选

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源