放置一个带有男中音的方块

问题描述

我正在尝试自动构建隧道。因为我想让它适应环境,所以它需要是动态的,所以我不能使用静态的原理图。

路径有效,但我不知道如何放置方块。我查看了代码并在 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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...