promotional bannermobile promotional banner

Cotton Scripting API

JSR-223 compliant scripting in Minecraft 1.14

File Details

1.1.0+1.14

  • R
  • May 11, 2019
  • 247.99 KB
  • 202
  • 1.14

File Name

cotton-scripting-1.1.0+1.14.jar

Supported Versions

  • 1.14
  • 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.