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

Block Commands | Add Commands to Blocks | 1.21-1.19

⬇ Download on Spigot
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.

[​IMG]

Spoiler: 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"


Spoiler: 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

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Block Commands | Add Commands to Blocks | 1.21-1.19 is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20, 1.21. Downloaded 367 times (via Spigot). Download it and open it directly in the game.

Explore more