Download Cotton Scripting API — Minecraft Mods — MetaMods

Cotton Scripting API

Active

Downloads

3

Last update

6 years ago
Client
Fabric
Quilt
Forge
Neoforge
Libraries
Utils

Cotton Scripting API

This project works exclusively with Fabric.

Cotton Scripting enables the use of scripting languages directly from Minecraft data packs. Now you can utilize JavaScript, Python, Lua, Ruby, and other programming languages to create server-side mechanics that seamlessly integrate with vanilla gameplay.

Important Note: Currently, script execution requires interpreter installation. The mod itself does not include interpreters, but JavaScript support is available "out of the box" thanks to Java's capabilities. For other programming languages, additional extension mods will be required. Several such add-ons are planned for release in the near future.

To add a script, place it in a data pack at the path "data//scripts". After executing the /reload command on the server side, the script will be ready to run. Use the /script command with operator privileges or through a command block to execute scripts.

More detailed information can be found in the project wiki.

Project members
LemmaEOF

LemmaEOF

Created: 12 May 2019

ID: 28782