Sueta

Block Commands | Add Commands to Blocks | 1.21-1.19

2.0.0

Execute commands when a player clicks a block

·Plugin

Block Commands

Block Commands allows you to add commands that are executed when a player clicks a block (left, right or both). These can be executed as the player or by console.

Support Discord
For support, please contact me via Discord: https://discord.gg/vG8znkhwET

Placeholder API Support
Use any installed PlaceholderAPI placeholders in block commands for a more unique and adaptable experience.

Commands

The target block is determined by the block you're looking at.

/blockcommand list - Lists all block commands globally
/blockcommand info - List the commands on the target block
/blockcommand add <console/player> <left/right_click> <command> - Add a command to the target block
/blockcommand remove <index> - Remove a command from the target block based on its index (in /blockcommand info)
/blockcommand set cancelinteract <true/false> - Set whether the block should cancel interactions (e.g. sign edit) and block break"

Permissions

blockcommands.command - Needed for any /blockcommand
blockcommands.command.add - /blockcommand add ...
blockcommands.command.list - /blockcommand list ...
blockcommands.command.info - /blockcommand info ...
blockcommands.command.remove - /blockcommand remove ...
blockcommands.set.cancelinteract - /blockcommand set cancelinteract ...

blockcommands.notifybreakinteract - Notify if the player tries to break a block that has interactions blocked

Similar projects

Plugin →