Skip to content

Control Blocks

Control Blocks are command blocks, but even better. Do more with less by coding with ControlScript, the mod exclusive Text-Based Coding Language

Forge
Loaders
Forge
Downloads on Modrinth
319
Followers on Modrinth
2
versions
5
Updated
May 8, 2026May 8
Published
in 2026
Script Editor — You can see the script editor empty. · swipe

At a glance

Runs on Forge
For Minecraft 1.20–1.20.6
Needed in the game and on the server
Latest version — 1.1.1 from May 8, 2026
License CC-BY-ND-4.0 — free
Where it's needed
In gamerequiredOn serverrequired

Needed both in the game and on the server

Game versions1.20–1.20.6

Control Blocks Command Blocks You Script

Command blocks are great, and it unlocks so many options, and allows you to make incredible creations, but sometimes, for big projects it either gets much more complicated or too long! That is where this mod comes in, it allows you to code scripts in game that can be triggered in multiple ways such as:

  • Power with redstone;
  • Powers each said tick;
  • Power each said tick on powered with redstone;

You can make minigames, tools, and way more with only one block! With an easy language made just for this mod, with full documentation called Control Script.

Check out our GitBook documentation to learn more in detail about ControlScript at this link.

What version is the mod compatible with?

I'm working to bring this mod to more and more versions/modloaders.

Modloader: Forge
Minecraft Version: 1.20.1 to 1.20.6
Platforms: Curseforge & Modrinth

 

How to get one?

Control Blocks are like Command Blocks, you can only get them via commands.

/give @p controlblocks:control_block

Check the documentation for full info!


DOCUMENTATION

This is not the full documentation, check the GitBook for the complete docs at this link.

Execution Modes

ModeDescription
PulseRuns once when it gets a redstone pulse
RepeatRuns every X ticks on its own
RedstoneRuns every X ticks, but only while powered

ControlScript

ControlScript is a small scripting language written from scratch for this mod — no external libraries, no Lua runtime. Just a clean language that talks directly to Minecraft.

What the language supports

  • Variables (var x = 10)
  • Math (+, -, *, /)
  • String concatenation (..)
  • Conditionals (if / elseif / else / end)
  • Comments (-- and --[[ ]])

Built-in Functions

FunctionDescription
log(message)Sends a message to all players in chat
run(command)Runs a Minecraft command (op level 4)
randint(min, max)Random integer between min and max
round(number)Rounds to nearest integer
abs(number)Absolute value
outpower(level)Sets redstone output of the block (0–15)
outpower(level, ticks)Pulses redstone output for X ticks then drops to 0
inpower()Reads the incoming redstone signal level (0–15)

Quick Example

var player = "@p"
var roll = randint(1, 6)

log("You rolled a " .. roll)
run(give player minecraft:diamond roll)

run() works with any mod's items and commands — not just vanilla.

See more like Custom Function, get() and more in our documentation at this link.


Made by Web Demon

FAQ

How to install Control Blocks?

Install Forge for your Minecraft version, download Control Blocks for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Control Blocks support?

Control Blocks has builds for Minecraft 1.20–1.20.6.

Is Control Blocks needed on the server?

Needed in the game and on the server

License and source
Creative Commons Attribution No Derivatives 4.0 Internationalfree to share with credit to the author and the license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More