Integrated Scripting

Integrated Scripting

Mod

Create scripts for handling complex operations in Integrated Dynamics

Client and server Technology

2,383 downloads
2 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
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.

 

 

Bisect Hosting
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!

 

  If you like this mod, consider supporting me on Patreon!

Project members

rubensworks

Owner

Details

Licensed MIT
Published 9 months ago
Updated 19 days ago