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/
More detailed information can be found in the project wiki.