-
Notifications
You must be signed in to change notification settings - Fork 24
Documentation
Tap to Do allows you to easily automate player experience by running command(s) when a block is tapped. You can use variables or behaviour switches to customize commands further.
Commands:
/t <add <command> / del <command> / delall / name / list>
/tr <name> <add <command> / del <command> / delall / name / list>
Variables
If you include one of these in your command it will be replaced by the appropriate value when the command is run, they are case sensitive.
%p - username of the player
%x - x coord of the player
%y - y coord of the player
%z - z coord of the player
%l - name of the level the player is in
%ip - IP of the player
%n - display name of the player
Behaviour Switches
These change the command execution behaviour, more will be coming soon. They can be added anywhere in the command as it will be removed when the command is run.
%pow - Makes the command run as console.
%op - Gives the player running the command OP permissions, these will be revoked after executing the command.
Usage Example: You want to make a block that whenever it is tapped the player who tapped it is killed. You could accomplish this in two ways:
Console with Variable
This way the command will be run as the console with the player’s name added in when it is run.
Code:
/t add kill %p
Run as player
If you want the command to be run as the player (with their permissions), you can add %safe anywhere in the command. If their is a non-OP on your server and they tap a block with the following command attached it won’t execute.
Code:
/t add stop%safe
Run with OP permission
You can add %op anywhere in the command to give the player tapping the block temporary OP and execute the command as them. This allows you to do things like. Warning! This will execute from the player allowing them to see command output.
Code:
/t add gamemode 1%op