The scripting language defines the syntax and there are already plenty of good ones... but... the rest is specific to the game, the API, the "extensions" I add to the language, etc.. That stuff will certainly be worthy of all kinds of cheat sheets.
For example, here's a current snippet of my tree tools script:
...snip the other action definitions...
action( group:"Trees", name:"Tall Scrub Tree", type:ActionType.Block ) {
console.echo( "Creating tree 3 at:" + it );
if( it.side != Direction.UP ) {
console.echo( "Trees must be placed on a vertical surface." );
return;
}
loc = it.getBlock();
factory = new ScrubTreeFactory2();
factory.addTree( loc.x, loc.y, loc.z + 1, world, new Random() );
}
on( [playerJoined] ) {
type, event ->
println( "Adding tree tools to player:" + player );
def refs = []
ToolActions existing = player[ToolActions.class];
if( playerData != null ) {
if( playerData.get( "grant.trees" ) != null ) {
refs += actions.getRef( "Trees", "Simple Tree 1" );
refs += actions.getRef( "Trees", "Simple Tree 2" );
refs += actions.getRef( "Trees", "Maple Tree" );
refs += actions.getRef( "Trees", "Tall Scrub Tree" );
refs += actions.getRef( "Trees", "Clear Tree" );
}
}
println "Refs:" + refs;
player << new ToolActions(refs, existing)
}
action()? on()? "playerJoined"? ActionType what? What are these things? I'm sure there will be some cheat sheets someday.