Better Command Blocks
-Requires World Edit
Video Usage Example:
Commands:
/bcb - plugin info/credits
Displays:
/bcb createdisplay <name> - creates and saves World Edit selected region (Must have already made a World Edit selection)
/bcb removedisplay <name> - removes a display
/bcb displaylist [page] - shows a list of created displays
Variables:
/bcb createvar <string|int|double> <name> <value> - creates a new variable
/bcb variablelist [page] - shows as list of created variables
/bcb varinfo <name> - shows a variable's current value
Command Block Usage Examples (Commands only work in a command block):
Displays:
/showdisplay ~ ~2 ~ <displayname> - displays blocks 2 blocks above the command block
/showdisplay ~ ~yOffset ~ <displayname> - yOffset is as previously defined variable. Displays blocks at the value of yOffset relative to the command block
/showdisplay xOffset yOffset zOffset<displayname> - xOffset, yOffset ,zOffset are all previously defined variables. Displays blocks at the values of xOffset, yOffset, and zOffset
Variables:
/var <varname> <expression> - expression cannot contain spaces
/var yOffset yOffset+10 - sets the value of yOffset to the value of yOffset+10
/var yOffset yOffset-10 - sets the value of yOffset to the value of yOffset-10
/var yOffset yOffset*10 - sets the value of yOffset to the value of yOffset*10
/var yOffset 5 - sets the value of yOffset to 5
/var helloThere hi - sets the value of helloThere to "hi". Note: if the variable is a string, it cannot contain any spaces.
Conditional Statements:
(Note: no spaces in the conditional statement! Ex. if cursorBuffer == Empty would not work!)
-place a regular torch 1 block away from the command block. This will be used to give an output to the conditional statement. Torch turns into redstone torch if the statement is true. Turns to a regular torch if the statement is false.
/if<variablename><==|>|<><value>
/if helloVariable==Hello World - checks to see if the variable 'cursorBuffer' has a value of "Hello World".
/if myNumber>10 - checks to see if the variable is greater than 10
/if myNumber<10 - checks to see if the variable is less than 10
Permissions
bcb*

BetterCommandBlocks 1.0
Command Block variables. Display World Edit selected regions with variables.