macroEngine (v26.4-snapshot-1)
macroEngine 是用于 Minecraft Java Edition 的宏/模块框架数据包,提供了大量可复用的基于命令的系统库(包括数学、字符串、NBT、地理坐标、权限、UUID 缓存、钩子、速率限制等),以及多源文本/值输入系统(对话框、书本、告示牌、讲台、命名牌、命令方块矿车)。
所有者:runtoolkit Minecraft:26.4-snapshot-1 (
pack_format/min_format–max_format122) 许可证: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_format122) 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, andexperimentalfeatures - 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/) — reusableitem_modifierdefinitions 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
/reloador 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.3name), part of theruntoolkit/suitemonorepo (packs/macroEngine-Datapack-v26.3). - Experimental features are opt-in via
api/toggle/experimental/trueand are not guaranteed stable between versions.
License
Unlicense — see the repository LICENSE. (This repo is archived.)
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
下载 macroEngine
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
为你的 Minecraft 世界添加了超过 900 个新的进度
数据包
我的“NRG”整合包的核心数据包。这个整合包的主要更新就在这里。
评论 0
登录后参与评分
还没有评论,来抢沙发吧