⚒️
Ultimate BlockRegen
DiscordDonate
  • 👋Welcome to Ultimate BlockRegen Wiki
  • Overview
    • ⬇️Installation
    • ❓FAQ
      • How to add custom drops?
      • How to enable per regeneration?
      • Does it Support ItemsAdder?
      • Does it Support Oraxen?
      • Does it Support Nexo?
      • Where can i get support?
      • Alternative Payment Options??
      • What is Command Chaining?
      • How to setup world gaurd subregion?
  • Fundamentals
    • 🛠️Basic Settings
      • Creating A Region
      • General Commands
      • Permission Nodes
      • Reloading The Plugin
      • Add More Blocks
      • Edit Block Menu
      • Deleting A Region
      • Placeholders
    • ⚙️GUI Settings
      • Main Menu
        • Change Prefix
      • Toggle Menu
        • Disabling Regeneration
        • Regen As Seed
        • Drop To Inventory
        • Allow Block Placements
        • Update Checker
        • Messages
        • Crop Animation
      • Region Menu
        • Per Region Regeneration
        • Per Region Permission
        • Per Region Allow Block Place
        • Region Status
      • Edit Menu
        • Disable Specific Block
        • Customize Block Xp Drop
        • Customize Block Regen Delay
        • Customize Replace Block
        • Customize Delay Block
        • Customize Money Reward
        • Customize Block Permission Requirement
        • Customize Cost Required
        • Customize Tool Damage
        • Customize Block Drops
        • Customize Block Commands
        • Customize Required Tools
        • Customize Block Sounds
    • 🪝Hooks
      • ItemsAdder
      • Oraxen
      • Nexo
      • Vault + Any Economy Plugin
  • Defualt Files
    • 🔌Default Ymls
      • Materials.yml
      • Config.yml
Powered by GitBook
On this page

Was this helpful?

  1. Fundamentals
  2. GUI Settings
  3. Edit Menu

Customize Block Commands

Commands to be run when player breaks the block

PreviousCustomize Block DropsNextCustomize Required Tools

Last updated 2 months ago

Was this helpful?

  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.

Supported Placeholders: %player% : Replaces with player name %x% : Replaces with block's x co-ordinate %y% : Replaces with block's y co-ordinate %z% : Replaces with block's z co-ordinate %world% : Replaces with block's world

⚙️