promotional bannermobile promotional banner

Cotton Scripting API

JSR-223 compliant scripting in Minecraft 1.14
Back to Files
File namecotton-scripting-1.1.0+1.14.jar
Uploader
LemmaEOFLemmaEOF
Uploaded
May 11, 2019
Downloads
208
Size
248.0 KB
File ID
2709563
Type
R
Release
Supported game versions
  • 1.14

What's new

  • Reorganize classes into API and Impl packages.
  • Add a command to list all currently available scripting engines or check if a file extension has an available engine.
  • Create a new argument type for /script commands for future script tag support (command syntax has not changed)
  • Convert ScriptContext#getCommandPosition() to an int[] array to prevent the need to call obfuscated code from scripts.
  • Add ScriptContext#getCallerUuid() and ScriptContext#getCommandDimension() so scripts can know more about the circumstances under which they were called.
  • Add Javadocs to all ScriptContext methods, including emphasis on which methods are only usable for passthrough.
  • Add a new ScriptTools class for more efficient methods of common uses. Included:
    • Methods to get localized text and localized names of registered objects.
    • Methods to perform raytraces from either an etity's look vector or an arbitrary position/pitch/yaw.
    • Methods to obtain command executors for other entities based on either UUID or vanilla entity target selector arguments.

This mod has no additional files