Integrated Dynamics - On the Dynamics of Integration

Using the Scripting Terminal

In the previous step, we created and placed a Scripting Disk and Scripting Drive. In this tutorial, we will see how we can actually write scripts and bind them to Variable Cards

First, let us craft a Scripting Terminal, place it on a cable connected to the Scripting Drive, and right-click on the Scripting Terminal to open it.

You will see an editor in which you can access all script files stored in the different Scripting Disk that are accessible to the network. You can toggle through the different Scripting Disks by clicking on the arrows on the top-left of the screen.

At this stage, you will not have any script files in your network yet, so let's create a new file by clicking on the "+" button on the bottom-left of the screen. Now click on the new file to open it, and click on the text field at the right-hand side of the screen to edit the file and write JavaScript code.

To keep it simple for now, we will create a constant value. Let's write something like const myVar = 123;

As a final step, let's bind this constant to a Variable Card by inserting an empty Variable Card into slot at the right-hand side of the screen, and select the variable by double-clicking it with your cursor. Your Variable Card will now be bound to the constant value. You can use this Variable Card now anywhere in your network. Let's try showing it in a Display Panel!

Crafting Table
Crafting Table
  • Redstone Dust
  • Mendesite
  • Redstone Dust
  • Output Variable Transformer
  • Display Panel
  • Input Variable Transformer
  • Redstone Dust
  •  
  • Redstone Dust
Scripting Terminal
Advancements
  • The Discovery of the ScriptsOpen the Scripting Terminal GUI.
  • The Rise of the ScriptsCreate a script, and bind it to a Variable Card.
  • The Unleashing of the ScriptsDisplay a scripted value in a Display Panel
Rewards
Scripting Terminal1
Variable Card16