Back to Mods

Saro's Interactive Blocks

Bind commands to any block. They fire on right-click, left-click, contact or a redstone signal.

Header

Look at a block, run one command, and from then on that block runs a command of its own when somebody right-clicks it, left-clicks it, walks over it, or feeds it redstone. There is no config file to edit. Each block keeps its actions in world/BlockActions/X_Y_Z.txt, and breaking the block deletes the file with it.

Overview

Trigger types

Trigger Letter Description
Right-Click R Player right-clicks the block
Left-Click L Player left-clicks (not while sneaking)
Touch T Player walks over the block
Redstone S Block receives a redstone signal

Commands

Command Description
/blockaction create <side> <trigger> <command> Create a block action (look at the block first)
/blockaction delete Delete actions from the looked-at block
/blockaction info Show all actions on the looked-at block

Parameters:

  • Side: S runs the command on the server, C on the client
  • Placeholder: <player> is replaced with the triggering player's name

Breaking a block deletes its data file.

Showcase

Note: This wiki is the documentation. Questions and bug reports are faster on the Discord server.

Featured

Need a custom mod?

Tell me what the mod should do and I build it.

Hire me on Fiverr