本模组需要 Cyclops Core 库和 Integrated Dynamics!
欢迎在 Cyclops Discord 服务器 的 #integratedmods 频道与我们交流!
本模组允许你为 Integrated Dynamics 网络创建脚本,以处理复杂的操作。
通过脚本,一些在原版 Integrated Dynamics 中难以实现的操作变得非常简单,例如:
- 计算中位数、标准差等统计数据。
- 轻松为 Integrated Tunnels 的输出端和输入端创建谓词过滤器。
- 计算与特定标签匹配的所有物品的平均堆叠数量。
- 显示过去一分钟内的平均能耗。
- 获取你当前手持工具对注视方块的破坏速度。
- 通过游戏内外的复制粘贴功能轻松与他人共享你的脚本。
- ...
本模组通过 Integrated Dynamics 中的《整合动力学》书籍提供游戏内的文档和教程。

Scripting Terminal(脚本终端)是本模组的主要新增内容。它允许你用 JavaScript 语言创建脚本,然后可以将这些脚本存储在变量卡中,供你的 Integrated Dynamics 网络其余部分使用。

Scripting Drives(脚本驱动器)是一种可以存储脚本数据的物品。将它们插入到 Scripting Drives(脚本驱动器)插槽后,即可在你的网络中进行访问、使用和编辑。

《脚本终端》提供了一个用于编写脚本的编辑器。脚本成员(如变量和函数)可以绑定到变量上。这些变量可以在已连接的 Integrated Dynamics 网络中的任何位置使用,就像其他任何变量一样。如果你可以直接访问你的世界文件,也可以通过你喜欢的 IDE 在外部编辑脚本文件!

你可以在多次函数执行之间跟踪某些值,例如用于计算总和与平均值。这对于计算一段时间内的平均能耗等场景可能非常有用。

如果你需要调试复杂的操作,可以记录日志以便后续检查。
脚本由高性能的 Graal.JS JavaScript 引擎执行,该引擎运行在 Oracle 的 Graal VM 上。性能和安全是开发此模组时的主要关注点。默认情况下,JavaScript 将以最严格的 Graal 设置执行。如果玩家需要进行 IO 操作(例如读取或写入外部文件),服务器管理员可以将这些严格的安全选项放宽。还可以配置脚本的最大执行大小,以避免性能问题。
通过使用推荐码 cyclops 在 Bisect Hosting 租用 Minecraft 服务器来支持本模组的开发,
并获得 首月立减 25% 的优惠!
通过推荐码 cyclops 租用 Bisect Hosting 服务器 以支持我们,即可享受 8折优惠!
如果你喜欢这个模组,请考虑在 Patreon 上支持我!
This requires the Cyclops Core library and Integrated Dynamics!
Come talk to us in #integratedmods on the Cyclops Discord server!
This mod allows you to create scripts for handling complex operations in Integrated Dynamics networks.
Using scripts, certain operations that are very complicated to achieve in vanilla Integrated Dynamics become very easy with this mod, such as:
- Calculating statistics such as median and standard deviation.
- Easily creating predicate filters for Integrated Tunnels exporters and importers.
- Calculating the average stack size of all items in a chest that match a certain tag.
- Showing the average power consumption during the last minute.
- Getting the break speed of the block you are looking at using the tool you are holding.
- Easily sharing your scripts with others by copy-pasting inside and outside of the game.
- ...
This mod provides in-game documentation and tutorials through the 'On the Dynamics of Integration' book from Integrated Dynamics.

The Scripting Terminal is the main addition of this mod. It allows you to create scripts in the JavaScript language, which then can be stored in Variable Cards for usage in the rest of your Integrated Dynamics network.

Scripting Drives are items that allow script data to be stored on them. These can be inserted into Scripting Drives, which makes them accessible for usage and editing in your network.

The Scripting Terminal offers an editor for writing scripts. Script members (such as variables and functions) can be bound to variables. These variables can be used anywhere in the connected Integrated Dynamics network just like any other variable. If you have direct access to your world files, script files can also edited externally through your favorite IDE!

You can keep track of certain values across multiple function executions, such as for calculating sums and averages. This may be useful for calculating things such as your average energy consumption across a certain period of time.

If you need to debug complex operations, you can log messages for later inspection.
Scripts are executed by the highly performant Graal.JS JavaScript engine, which runs on the Graal VM by Oracle. Performance and security were the primary focus when developing this mod. By default, JavaScript is executed with the strictest Graal settings. These strict security options can be made more loose by server admins, if players for example want to perform IO, for reading from or writing to external files. The maximum execution size of scripts can also be configured to avoid performance issues.
Support the development of this mod by using the referral code cyclops when renting a Minecraft server at Bisect Hosting,
and get 25% off your first month as a bonus!
Support us via the referral code cyclops when renting a Bisect Hosting server, and get 25% off!
If you like this mod, consider supporting me on Patreon!
评论 0
登录后参与评分
还没有评论,来抢沙发吧