Customize Block Commands

Commands to be run when player breaks the block

  1. Run the command /regen menu.

  2. Select "Edit Menu."

  3. Select "Region / Global."

  4. Select "Block Menu."

  5. Select the block you want to edit.

  6. Click on "Add Commands" (Command Block icon).

  • Runner: Specify whether the command should be run by the console or the player.

  • Command: Specify the command to be executed.

  • Chance: Set a chance between 0.001 to 0.999 for the command to run.

For example:

Console ; say hi ; 0.5
Player ; spawn ; 0.1

Command Chaining

Example of Command Chaining

To use command chaining, format the command sequence as shown below:

Console ; teleport %player% 100 64 200 > Player ; give %player% diamond_sword ; 0.25

In this example, if the teleport command is successful, there is a 25% chance that the player will receive a diamond sword.

Last updated

Was this helpful?