Mineuniverse
Log in Register
Mods

Clojure Command Language

Adds a turing-complete wrapper around the command system with clojure
by Dark_Arcana
Claim this project
4,024 downloads
0 likes
Updated Jun 30, 2026
0 hypes

Clojure Command Language is a simple turing-complete wrapper for the minecraft command system using the Clojure programming language. This means that you are allowed to use things like variables, loops, conditionals, and more to execute templates of commands

 


 

 


There are two basic commands: /ccl and /cclfile

 

First is /ccl which provides access to a clojure command line. I don't recommend using this for executing commands though, as it can get quite messy (see last example in this section). Minecraft doesn't allow any slashes in commands beyond the first character, so please use '|' instead and a slash will be substituted back in before evaluation.

 

/ccl 0
=> 0
/ccl (+ 3 2)
=> 5
/ccl (defn double-it [n] (* 2 n))
=> #'clojure.core/double-it</p>
/ccl (def x 5)
=> #'clojure.core/x</p>
/ccl (double-it x)
=> 10
/ccl (let [y (+ 2 5)] (lib|exec ["say " y]))
=> [playername] 7


The second command is /cclfile which will probably be more useful. Upon first load the mod will create a directory called 'ccl_scripts' in your modpack parent directory (not /config/) where you can put your *.clj scripts. No reloading is required; once you save a file it is ready to use.

 

If you have a file, let's say, at path /my_modpack/ccl_scripts/sayhi.clj

you would call it by using the command /cclfile sayhi


 Here is an example to demonstrate the power of the mod

 

makeline.clj

(dotimes [x 50]
         (let [meta (mod x 15)]
              (lib/exec ["setblock ~" x " ~0 ~1 wool " meta])))

 

 

 


 

I recognize that Clojure isn't everyones cup of tea, but at the present I have no intention of changing the language or supporting additional languages.

 

If you would like help or you just want to hang out and chat about the mod you are welcome to join my discord server

 

No files available for download.

More from Dark_Arcana

Alchemistry (Fabric)
96,071
Quirky Generators
91,652
Volcano Block Tweaks
579,979
Antimatter Chemistry Tweaks
462,808
Speedy Hoppers
4,436,480
Reroll Player
38,732

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579