The Eval Block



The Eval block is currently the only way to use custom JavaScript code in CodeSpells. It is used to access commands that are otherwise inaccessible through Blockly. The developers plan on making it an optional feature in the future.

Uses
The Eval block has been used extensively already in order to override built-in restrictions, gather information about objects and the environment, and just to execute custom code. Many spells have been posted on The Codespells Forums which use the Eval block. An example of a simple use of the Eval block is Umbris' version of CodeGlitch's Flight spell. This spell uses the Eval block to make set the user's height equal to the height of an orb which the player casts, allowing them to rise up into the air.