macroEngine (v26.4-snapshot-1)
macroEngine 是用于 Minecraft Java Edition 的宏/模块框架数据包,提供了大量可复用的基于命令的系统库(包括数学、字符串、NBT、地理坐标、权限、UUID 缓存、钩子、速率限制等),以及多源文本/值输入系统(对话框、书本、告示牌、讲台、命名牌、命令方块矿车)。
所有者:runtoolkit
Minecraft:26.4-snapshot-1 (pack_format / min_format–max_format 122)
许可证:Unlicense
命名空间:macroengine
功能特性
- API 层 (
api/) — 稳定的公共入口点:cmd、cb(回调队列)、color、dialog、gamerule、interaction、item、macro、perm、title、toggle、trigger、wand
- 系统层 (
systems/) — 内部工具模块:math、string、nbt、logic、geo、flag、hook、log、rate_limit、sound、uuid、color
- 输入系统 (
input/) — 通过可写书、告示牌、讲台、命名牌、对话框或命令方块矿车捕获玩家提供的值,并共享验证逻辑(input/validate)以支持整数/浮点数/布尔值/标签安全字符串
- 开关系统 — 允许对
cb、perm、geo、wand、interaction、hook 及实验性功能进行按模块运行时启用/禁用
- 速率限制 — 提供全局、按玩家和按通道的请求节流功能
- 钩子系统 — 将函数绑定到特定事件触发,例如方块破坏、维度切换和进度授予
- 物品修饰符 (
item_modifier/) — 可复用的 item_modifier 定义,用于附魔、闪烁效果、描述文本、悬浮提示和重命名操作
- 进度驱动触发器 (
advancement/) — 使用核心、隐藏和系统进度来驱动内部逻辑和钩子
- 实验性命名空间 — 受控于
toggle/experimental,包含尚未被视为稳定的功能
要求
- Minecraft Java Edition 26.4-snapshot-1
- 数据包
min_format/max_format:122
安装
- 将数据包文件夹放入世界目录下的
datapacks/ 文件夹中(或通过服务器端资源包源加载)。
- 运行
/reload 或重启服务器。
- macroEngine 会通过
#macroengine:events/on_load 自动初始化。
如需手动检查加载状态或配置,请参阅 data/macroengine/function/config/ 和 data/macroengine/function/debug/。
用法
大部分功能通过 api/ 命名空间暴露,例如:
function macroengine:api/cmd/actionbar
function macroengine:api/dialog/show
function macroengine:api/perm/grant
function macroengine:api/wand/give
位于 systems/ 下的内部系统由 API 函数使用,不建议终端用户直接调用,但为高级/自定义集成保留了访问权限。
备注
- 这是 macroEngine 的 26.4-snapshot-1 构建版本(文件夹仍保留其原始名称
v26.3),属于 runtoolkit/suite 单体仓库的一部分(路径为 packs/macroEngine-Datapack-v26.3)。
- 实验性功能需通过
api/toggle/experimental/true 主动启用,且不保证在不同版本间保持稳定。
许可证
Unlicense — 详见仓库 LICENSE。(该仓库已归档。)
macroEngine (v26.4-snapshot-1)
macroEngine is a macro/module framework datapack for Minecraft Java Edition, providing a large library of reusable command-based systems (math, string, NBT, geo, permissions, UUID cache, hooks, rate limiting, and more) plus a multi-source text/value input system (dialogs, books, signs, lecterns, name tags, command block minecarts).
Owner: runtoolkit
Minecraft: 26.4-snapshot-1 (pack_format / min_format–max_format 122)
License: Unlicense
Namespace: macroengine
Features
- API layer (
api/) — stable public entry points: cmd, cb (callback queue), color, dialog, gamerule, interaction, item, macro, perm, title, toggle, trigger, wand
- Systems layer (
systems/) — internal utility modules: math, string, nbt, logic, geo, flag, hook, log, rate_limit, sound, uuid, color
- Input system (
input/) — capture player-provided values via writable book, sign, lectern, name tag, dialog, or command block minecart, with shared validation (input/validate) for int/float/bool/tag-safe strings
- Toggle system — per-module runtime enable/disable for
cb, perm, geo, wand, interaction, hook, and experimental features
- Rate limiting — global, per-player, and per-channel request throttling
- Hook system — bind functions to fire on events such as block break, dimension change, and advancement grant
- Item modifiers (
item_modifier/) — reusable item_modifier definitions for enchanting, glint, lore, tooltip, and rename operations
- Advancement-driven triggers (
advancement/) — core, hidden, and system advancements used to drive internal logic and hooks
- Experimental namespace — gated behind
toggle/experimental, for features not yet considered stable
Requirements
- Minecraft Java Edition 26.4-snapshot-1
- Datapack
min_format/max_format: 122
Installation
- Place the datapack folder in your world's
datapacks/ directory (or load it via a server-side pack source).
- Run
/reload or restart the server.
- macroEngine initializes automatically via
#macroengine:events/on_load.
To manually check load state or configuration, see data/macroengine/function/config/ and data/macroengine/function/debug/.
Usage
Most functionality is exposed through the api/ namespace, e.g.:
function macroengine:api/cmd/actionbar
function macroengine:api/dialog/show
function macroengine:api/perm/grant
function macroengine:api/wand/give
Internal systems under systems/ are used by API functions and are not intended to be called directly by end users, though they remain accessible for advanced/custom integrations.
Notes
- This is the 26.4-snapshot-1 build of macroEngine (folder retains its original
v26.3 name), part of the runtoolkit/suite monorepo (packs/macroEngine-Datapack-v26.3).
- Experimental features are opt-in via
api/toggle/experimental/true and are not guaranteed stable between versions.
License
Unlicense — see the repository LICENSE. (This repo is archived.)
评论 0
登录后参与评分
还没有评论,来抢沙发吧