0

我托管了一个服务器,我想知道:有没有办法通过 ComputerCraft 运行聊天命令?我希望能够/tps通过 ComputerCraft 终端运行,然后让它打印出 TPS。帮助将不胜感激。

谢谢。

4

2 回答 2

2

在新的 Computercraft 1.7 中有一种新型计算机,即命令计算机。它允许用户以与shell.run("mkdir", "foo"). 只能通过ops获取,也只能通过ops直接控制(我们说的是不用rednet之类的)

  • commands.exec(string command) -- Runs and outputs command output in chat.
  • commands.execAsync(string command) -- Quietly runs command without output.

这是维基页面:

命令 (API)

但是,如果我们谈论的是 1.6.4(几乎所有 modpacks 都使用它),那么没有“库存”版本可以做到这一点。

希望它有帮助/Tyrerexus

于 2015-06-29T15:20:08.050 回答
0

我相信你可以使用这个叫做聊天框的东西。

http://ftbwiki.org/Chat_Box

但是,它不是默认 Computercraft 的一部分。我相信它是 Misc Peripherals mod 的一部分。

于 2015-02-19T07:47:15.337 回答