DOMINATOR · LUA API
packet
数据包常量与常用发包动作。
Minecraft 1.1.5.1Lua 5.2138 个接口
packet.types— 包类型常量表,见 PacketType。packet.chat(String text);— 同chat.send(text)。packet.move();— 同player.sendPos()。packet.equipSlot(number slot);— 同inventory.slot(slot)。packet.mobEquip(number slot);— 发送MobEquipment(切换装备槽并同步服务端)。packet.playerAction(String action);— 发送PlayerAction(如jump、start_sprint)。packet.selectedItem();— 读取当前选中物品,返回{id, count, ...}(不发送)。packet.itemStack(number slot);— 读取指定槽位物品,返回{id, count, ...}(不发送)。
Dominator · Lua API 文档 · 脚本放入 Dominator/LuaScript 目录后自动加载