高级运算符
通过学习最近的教程你可能注意到了, 逻辑编程器的功能不仅仅是相加加数字。该教程中, 我们将研究更先进的数据结构和链状运算符。
让我们创建一个静态Integer列表 1, 10 和 100, 并让它在显示面板可视化。
物品也是这个mod中数据的类型之一。 让我们做一张静态物品 变量卡,它能自动检索出该物品在mod中的名称,让它在显示面板显示出来吧。
记住你只能用变量卡箱 来储存引用的变量。
For the final part of this tutorial, we’ll combine dynamic variables with operators. Attach an Entity Reader to a network, read the target Entity, retrieve the Block the target Entity is looking at, and visualize that Block in a Display Panel.
Operator(运算符)
物品所属Modmod指定物品对应的Mod名称
- Item(物品)
- String(字符串)
检测类型
实体目标位置选定的实体
输出: Entity(实体)
属性:
- 列出元素
Operator(运算符)
目标方块target_block实体正在看的方块
- Entity(实体)
- Block(方块)