- Compatible API Versions
- 1.0.0
A simple plugin for binding a command to a block.
You can bind a command to a block by entering /bindcommand <command_name> <OP|default> in the chat. You must look at the block to which you want to attach the command. After you can edit trgger of this command in config.
Placeholer %player% - player's name
Example configuration file:
You can bind a command to a block by entering /bindcommand <command_name> <OP|default> in the chat. You must look at the block to which you want to attach the command. After you can edit trgger of this command in config.
Placeholer %player% - player's name
Example configuration file:
YAML:
# Configuration of BlockCommandCRX #
# Format: Bound block name, Type:console -> command, Type:player -> command, world -> coordinates #
# %player% - player's name% #
block1:
console_commands:
- say Welcome %player%!
- give %player% diamond 64
player_commands:
- say Hi all
- say I am %player%
block2:
console_commands:
- say %player% wins!
player_commands:
- say I am the first!
- say My name is %player%
world,105:
14
0,101:
15
0,67:
16
'0': example
17
0,63:
18
'0': example2