Source-checkedAdmin & protection

Blocks To Commands

by ILoveAMac · for Minecraft

Allows player to assign a command to any block in-game | Make any block run a command!

18KDownloads
7 yr agoLast updated
Spigot · PaperLoaders
1.15Latest game version

About Blocks To Commands

From SpigotMC

Allows player to assign a command to any block in-game | Make any block run a command!

Vault is a dependency for this plugin!
can be found here: https://dev.bukkit.org/projects/vault
An economy plugin that hooks into Vault is also needed.

1.8 binary included for older servers

Full documentation here.
​

The plugin allows the player to assign any command to a block. The command will be run when a player right-clicks the block. The command will be run from the console or from the player depending on how you set it up.

HOW TO USE:
- Look at block
- do /btc create <name>
- next do /btc add cmd <name> <runFromConsole: true/false> <command>
- do /btc help for more info.

- Right-click block (command will run that you set.
Players must have btc.use to be able to right-click the block as well as the custom permission that you may have set.

REMOVE A BLOCK COMMAND:
- crouch and break the block (only possible with perm btc.remove)
===OR===
- /btc remove <name>


Do "/btc list" to see a list of the blocks that have been set

PERMISSIONS:
- btc.admin
- btc.use
- and custom permissions too
Custom: /btc set perm <name> <perm>. e.g /btc set perm test my.perm


Vault Support
  • Add Costs to blocks


Commands:
- /btc set cost <name> <amount>
- /btc remove cost <name>

VARIABLES:
Variables are inside a container that looks like this: ${variableName}

- ${name} - gets name of player
- ${displayName} - gets player display name
- ${uuid} - gets UUID of player
- ${ip} - gets player ip
- ${randomPlayer} - gets random name of a player online
- ${x}
- ${y} - X Y Z values of player pos
- ${z}
- ${blockX}
- ${blockY} - X Y Z values of block clicked pos
- ${blockZ}
- ${world} - gets current world name

How to use variables:

/btc add cmd <name> true op ${name}
/btc add msg <name> &aHello ${name}

Variables are case sensitive and must be typed out as shown above!
They use camel casing (first-word first letter lowercase, all following words have an uppercase letter at the beginning of the word)

<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: config.yml</button>
Code (Text):

# ________ _________ ________
# |\ __ \|\___ ___\\ ____\
# \ \ \|\ /\|___ \ \_\ \ \___|
# \ \ __ \ \ \ \ \ \ \
# \ \ \|\ \ \ \ \ \ \ \____
# \ \_______\ \ \__\ \ \_______\
# \|_______| \|__| \|_______|

# BlocksToCommands (V.5.0.0 BETA) 2020
# API: Minecraft 1.8

# By ILoveAMac

# These are the messages non-admin players will receive
# The fundsDeducted and notEnoughFunds message has variables.
# ${cost} -&gt; Value that was deducted from the payer's account.
# ${currency} -&gt; Server currency as set below.
messages:
mayNotPerformCommand: '&amp;cYou do not have permission to perform this command.'
mayNotBreakBlock: '&amp;cYou do not have permission to break this block.'
mayNotUseBlock: '&amp;cYou do not have permission to use this block.'
notEnoughFunds: '&amp;cYou do not have enough ${currency} to use this block.' # e.g You do not have enough dollars to use this block.
fundsDeducted: '&amp;a${cost} ${currency} were deducted from your account.' # e.g 10 dollars were deducted from your account

# Server currency
currency: 'dollars'

# Additional configuration
options:
adminShiftRemove: true # When enabled players with the perm btc.admin ac hold shift and break a BTC block to delete it
interactSounds: true # Play sounds when players interact with BTC blocks # NOT IMPLEMENTED YET
metrics: true # collect anonymous data to help improve plugin?

# Plugin perms
# btc.admin -&gt; Give only to admins on server
# btc.use -&gt; Give to players you want to use BTC blocks
# custom perms can be assigned to blocks too. If a block has a custom perm, a player needs btc.use and the custom set perm in order to use the block
&nbsp;

Example BTC Block
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: op.yml</button>
Code (Text):

&nbsp;
Block:
&nbsp; name: op
&nbsp; location:
&nbsp; &nbsp; world: world
&nbsp; &nbsp; x: -319
&nbsp; &nbsp; y: 144
&nbsp; &nbsp; z: 415
&nbsp; messages:
&nbsp; &nbsp; msg_1:
&nbsp; &nbsp; &nbsp; message: '&amp;aYou are now OP'
&nbsp; commands:
&nbsp; &nbsp; cmd_1:
&nbsp; &nbsp; &nbsp; command: op ${name}
&nbsp; &nbsp; &nbsp; runFromConsole: true
&nbsp; &nbsp; cmd_2:

Read the full description on SpigotMC →

Highlights

From source data

Game versions

Supports 8 Minecraft versions, the newest being 1.15.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

Blocks To Commands on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
v5.0.0-beta.6, released 2020-05-03

Game versions by loader

LoaderGame versionsNewest
Paper1.8 to 1.15 (8 versions)1.15
Spigot1.8 to 1.15 (8 versions)1.15

From 10 recorded builds of Blocks To Commands.

Recent builds

BuildReleasedGame versionsLoaders
v5.0.0-beta.62020-05-031.8 to 1.15 (8 versions)Spigot, Paper
v5.0.0-beta.52020-05-02n/aSpigot, Paper
v5.0.0-beta.42020-05-01n/aSpigot, Paper
v5.0.0-beta.3 + 1.15.22020-05-01n/aSpigot, Paper
v5.0.0-beta.32020-05-01n/aSpigot, Paper
v5.0.0-beta.22020-05-01n/aSpigot, Paper

Run Blocks To Commands on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists Blocks To Commands as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.15 and 7 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorILoveAMac, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

Blocks To Commands, answered

Generated from the mod’s own source data.

Do my players need to install Blocks To Commands?

SpigotMC lists Blocks To Commands as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. Blocks To Commands is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Blocks To Commands on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add Blocks To Commands in one click.