Clojure Command Language
No reviews yet
Adds a turing-complete wrapper around the command system with clojure
Does not follow a specific thematic focus apart from vanilla Minecraft.
Used for mods with little to no gameplay elements.
Features a method of a programmable language system, ranging from pictographs to real programming languages.
Mechanics and features that improve on the Vanilla redstone system, from QoL to compact circuit substitutes.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources
