Block Commands | Add Commands to Blocks | 1.21-1.19 icon

Block Commands | Add Commands to Blocks | 1.21-1.19 -----

Execute commands when a player clicks a block



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.

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

[​IMG]

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

/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"


blockcommands.command - Needed for any /blockcommand
blockcommands.command.add - /blockcommand add ...
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
Resource Information
Author:
----------
Total Downloads: 85
First Release: Oct 25, 2024
Last Update: Oct 26, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings