Command blocks are great, and they unlock so many options and allow 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
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.
I am working hard to bring it to way more versions in the future and keep updating it.
**Modloader:** Forge **Minecraft Version:** 1.20.1 to 1.20.6 **Platforms:** Curseforge & Modrinth
Control Blocks are like Command Blocks, you can only get them via commands.
/give @p controlblocks:control_block
Check the documentation for full info!
I do not yet accept donations, tho, you can share this mod and help it get known if you want! Also, you can support it by creating a BisectHosting server with my affiliate link or even join my Discord server here.
This is not the full documentation; check the GitBook for the complete docs at this link.
| Mode | Description |
|---|---|
| Pulse | Runs once when it gets a redstone pulse |
| Repeat | Runs every X ticks on its own |
| Redstone | Runs every X ticks, but only while powered |
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.
var x = 10)+, -, *, /)..)if / elseif / else / end)-- and --[[ ]])| Function | Description |
|---|---|
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) |
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