CMI Interactive Commands
Interactive command feature allows to create blocks or entities which will perform defined commands on interaction with them.
How to create one:
1. Perform command /cmi ic new [name], like /cmi ic new healer and you will get window like this in chat
2. Click on one of + signs to assign block (first one) or entity (second) you are looking at to this particular interactive command.
3. This will result in confirmation message and after that you can add more blocks or entities to this interactive command or move on by adding commands it self.
4. To add command simply click on ! and you can add new commands in presented list.
5. Click on + sign to add new command, which will wait until you enter new command into chat window. Don't start with / as regular commands, simply write basic command. [playerName] variable can be used to include players who interacted name.
6. Enter new command into chat and press enter
After this you are ready to right click on block or entity and expect some results.
You can add as many blocks or entities as you want.
You can add as many commands as you want and specialised commands can be utilised. Read wiki about them.
Interactive command can be set to Public mode. This means that player with cmi.interactivesign permission node can create sign with the line as [ic:[isName]] to automatically add sign into IC list.
Sign text will be replaced automatically to predefined for that particular IC. Ingame editor is included to manage them.
For "localized" commands run !asconsole, such as a PvP countdown, a World Area must be defined so the the Server "knows" where to run the command. Here is an Example that defines a counter where the Player clicks on the Interactive Command Block/Sign as defined in the Commands Section of the IC.
c:world is the world map name, and the coordinates are the world coordinates of the block/sign.Code (interactivecommandsyml (Unknown Language)):
- ==: org.bukkit.Location
- asConsole! cmi counter start c:world:-1204:90:1120 t:5 -f r:100 msg:PvP_Start!
- ' '
- ' '
- ' '