问题描述
我正在尝试自动构建隧道。因为我想让它适应环境,所以它需要是动态的,所以我不能使用静态的原理图。
路径有效,但我不知道如何放置方块。我查看了代码并在 public GameObject thePlayer;
public bool isRunning;
public float horizontalMove;
public float verticalMove;
void Update () {
if (Input.GetButton("Horizontal") || Input.GetButton("Vertical"))
{
thePlayer.GetComponent<Animation>().Play("Run");
horizontalMove = Input.GetAxis("Horizontal") * Time.deltaTime * 150;
verticalMove = Input.GetAxis("Vertical") * Time.deltaTime * 8;
isRunning = true;
transform.Rotate(0,horizontalMove,0);
transform.Translate(0,verticalMove);
}
else
{
thePlayer.GetComponent<Animation>().Play("Idle");
isRunning = false;
}
}
中找到了 placeAt
。
BuilderProcess
坐标位于我正在查看的块上方
但是什么也没发生。我还确保我正在设置
BuilderProcess bproc = (BuilderProcess) BaritoneAPI.getProvider().getPrimaryBaritone().getBuilderProcess();
bproc.placeAt(1,64,Blocks.GRASS_BLOCK.getDefaultState());
我正在使用 fabritone,男中音的织物叉,因为我无法使用 forge 工作并且通常更喜欢织物。如果这是 fabritone 的问题,请告诉我,我一定会切换
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)