Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
脚本可用的注解
@Module(name="Foo", category="COMBAT", description="...", key=-1, defaultEnabled=false) void meta(valueManager) { /* 用 valueManager 注册属性 */ }
name
description
""
category
"PLAYER"
COMBAT
EXPLOIT
MOVE
PLAYER
VISUAL
WORLD
key
-1
defaultEnabled
false
@Module
ValueManager
@Command(name="hi", aliases="hey,hello", description="...") void exec(args) { /* args[0] 是命令名, args[1+] 是参数 */ }
@EventTarget(events="tick", priority="MEDIUM") void onTick(event) { /* 收到 event 对象 */ }
events
+
priority
VERY_LOW
LOW
MEDIUM
HIGH
VERY_HIGH
@OnLoad void onLoad() {} // 脚本加载完 @OnUnload void onUnload() {} // 脚本卸载前 @OnEnable void onEnable() {} // 模块启用(仅 @Module 脚本) @OnDisable void onDisable() {} // 模块禁用
Was this page helpful?