documentation/Commands

Here you can find in-depth information for all commands, including usage examples. All commands are given in the ingame form, from console you have to omit the leading slash.

/py

Description
Enters Interactive mode (for more information see Basics)

/py statement

Arguments
statement : any valid python statement
Description
Executes the statement given
Notes
If the statement is followed by three dots ('/py statement...'), multiline mode is activated (for more information see Basics)

/py name

Arguments
name : macro name without spaces
Description
Executes a saved macro

/pymacro name statement

Arguments
name : macro name without spaces
statement : any valid python statement
Description
Similar to '/py statement' except that the statement is not executed, but saved as a named macro
Notes
Three dots following the statement do not enter multiline mode, to save a multiline macro refer to the multiline mode section in Basics

/py bind name

Arguments
name : macro name without spaces
Description
Binds a macro to the currently held item, to be activated by rightclicking on anything
Notes
Exposes the additional variables entity and block to the macro, containing the clicked entity or block

/py reload

Description
Reloads all scripts from the filesystem

/py save name

Arguments
name : macro name without spaces
Description
Saves the given macro to disk as a script. File extension '.py' is added automatically if not already given

Comments

Posts Quoted:
Reply
Clear All Quotes