DOMINATOR · LUA API

chest

容器(箱子、潜影盒)的读取与自动拿取。

Minecraft 1.1.5.1Lua 5.2138 个接口
  • chest.setConfig(String key, value); — 容器相关配置。
  • chest.getMode(); — 当前模式字符串。
  • chest.isOpen(); — 容器界面是否打开。
  • chest.start(); / chest.stop(); — 开始/停止自动拿取。
  • chest.item(number slot); — 容器槽位物品(表或 nil)。
  • chest.autoPlace(boolean on); — 自动放置开关。
  • chest.tpCall(number x, number y, number z); — 远程打开指定坐标的容器。
  • chest.tpItemId(number id, number count); — 按物品 ID 取物品。
  • chest.firstItem(number id, number count); — 找第一个匹配物品的槽位。
  • chest.firstEmpty(number start, number end); — 找第一个空槽。
  • chest.tryExit(); — 尝试关闭界面/退出。
Dominator · Lua API 文档 · 脚本放入 Dominator/LuaScript 目录后自动加载