Spellscript IDE

From Hack/Mine Wiki
Revision as of 20:19, 24 February 2013 by Frizzil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Spellscript IDE (i.e. Interactive Development Environment) is a code editor for Spellscript introduced in H/M version 0.6.4. It features syntax-highlighting and an increasing number of keyboard shortcuts to make script creation much easier than it would be in a normal text editor.

When an object in Minecraft is capable of being scripted via the Spellscript IDE, we refer to that object as a scriptable. For now, this includes Spellscript-Blocks and scripts schedulable on the server (by default, schedulable server scripts can be created by pressing tilde).

Important Commands

Key Binding Description
esc Compiles the script, then exits the screen on success (otherwise the resulting error message is displayed to the user.)
ctrl+enter Compiles the script and displays the result to the user.
ctrl+/ Pulls up the Info Screen, which contains information specific to the current scriptable. This includes which variables are in scope, what type of return value is expected (if any), and an explanation of the scriptable, its variables, etc.
ctrl+m Pulls up the Methods Screen, which contains all of the methods available in the current environment.
ctrl+g Pulls up the Globals Screen, which contains a list of the global variables available in the current environment.

Customization

The color scheme for syntax highlighting is specified in .minecraft/syntaxHighlight.txt. Each color is in hex format with optional alpha at the beginning (so either RRGGBB or AARRGGBB).

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox