BlockCommand - Run commands during block interactions


This is a discussion topic for the Ore project, BlockCommand. View the full project on Ore for downloads and more information.



BlockCommand is a plugin similiar to the ServerSigns bukkit plugin which allows to add commands to blocks which get executed when the player interacts with the block.


  • Run any command as player or server
  • Send or broadcast a message
  • Supports all blocks and pressure plates (Configurable, default is signs)


  • /bcmd add <command> - Adds a command to the block you are looking at
  • /bcmd list - Lists the commands of the block you are looking at


  • blockcommand.command.use - Allows command usage
  • blockcommand.admin - Allows breaking blocks with commands


Placeholder Description
<player|name> Name of the interacting player
<uuid> UUID of the interacting player
<server|srv|s> Defines the command to be run as server/console
<message|msg|m> Defines it to be a message send to the player
<broadcast|bcast|b> Defines it to be a message send to all players


/bcmd add <srv> give <player> stone
Runs the give command as server and replaces <player> with the name of the interacting player.

/bcmd add help
Runs the help command as player.

/bcmd add <msg> Hello <player>
Sends a message to the interacting player.


How many commands can I add to a block?


There is no limit atm.


/bcmd add
[21:12:43] [Server thread/INFO] [nucleus]: Server 执行指令: /bcmd add
[21:12:43] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Error occurred while executing command: No value present
[21:12:43] [Server thread/ERROR] [Sponge]: Error occurred while executing command ‘bcmd add’ for source DedicatedServer: No value present
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Unknown Source) ~[?:1.8.0_172]
at net.mineyourmind.blockcommand.commands.AddCommand.execute( ~[AddCommand.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute( ~[ChildCommandElementExecutor.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.api.command.spec.CommandSpec.process( ~[CommandSpec.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process( ~[SimpleDispatcher.class:1.12.2-2705-7.1.0-BETA-3206]
at org.spongepowered.common.command.SpongeCommandManager.process( [SpongeCommandManager.class:1.12.2-2705-7.1.0-BETA-3206]
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) [dh.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah( [nz.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q( [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p( [MinecraftServer.class:?]
at [MinecraftServer.class:?]
at Source) [?:1.8.0_172]
/bcmd add


You didn’t specific any command.


/bcmd add
I am using this


Did you read the examples above? You have to write a command behind add.


[BlockCommand] The block White wool is not listed in the config!


Add the block to the config.


The plugin works fine.
Good job, seriously sponge deserve more plugin like this.