Integrated Dynamics - On the Dynamics of Integration

高级运算符

通过学习最近的教程你可能注意到了, 逻辑编程器的功能不仅仅是相加加数字。该教程中, 我们将研究更先进的数据结构和链状运算符。

让我们创建一个静态Integer列表 1, 10100, 并让它在显示面板可视化。

物品也是这个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.

Crafting Table
Crafting Table
  •  
  • Raw Porkchop
  •  
  • Raw Porkchop
  • 变量输入
  • Raw Porkchop
  •  
  • Raw Porkchop
  •  
实体读取器
Operator(运算符)
物品所属Modmod指定物品对应的Mod名称
  • Item(物品)
  • String(字符串)
Global name: itemstackMod(Item(物品)) → String(字符串)Method name: Item(物品).mod() → String(字符串)
检测类型
实体目标位置选定的实体

输出: Entity(实体)

属性:
  • 列出元素
Operator(运算符)
目标方块target_block实体正在看的方块
  • Entity(实体)
  • Block(方块)
Global name: entityTargetBlock(Entity(实体)) → Block(方块)Method name: Entity(实体).targetBlock() → Block(方块)
Advancements
  • 逻辑列表构建。构建一个静态列表§6Integers(整型)§7 1, 10 和 100。
  • 物品初始ID获得一个物品的mod名称。
  • 我在看什么?获取你视线所指向的方块。
Rewards
变量卡64
变量卡64
变量卡箱32