Back to mods
Commander project artwork

CurseForge · Minecraft mod

Commander

Advanced commands supporting loops and variable parsing

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Commander release matches 1.10.2?

Updated 5 years ago
Best match for your filters Commander 1.0.1 (for 1.10.2)
Game version 1.10.2
Loader Not required

Commander 1.0.1 (for 1.10.2) targets 1.10.2. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Commander required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release No loader listed
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Commander 1.0.1 (for 1.10.2) need?

Commander 1.0.1 (for 1.10.2) on 1.10.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install McHorse's McLib first. We found matching files for this game-version and loader setup.

McHorse's McLib Needed by Commander 1.0.1 (for 1.10.2)
required
Matching file found Matched file: McLib 1.0.4 (for 1.10.2)

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Commander without breaking your instance.

Built for Commander 1.0.1 (for 1.10.2) on 1.10.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Commander 1.0.1 (for 1.10.2). It targets 1.10.2; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install McHorse's McLib first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Commander 1.0.1 (for 1.10.2). It opens that exact file at the source.

About this project

What does Commander add?

ATTENTION: This mod is no longer being maintained by McHorse. However there are still going to be official updates by others and there have been task forces that are investigating on porting it. If you also want to contribute to official updates, or to the porting effort, please join the official McHorse's Discord server, so we can communicate with you. Check out the source code.

Commander

Planet Minecraft page – CurseForge page – GitHub

Commander is a Minecraft mod which allows enhances command usage experience.

I don't recommend using this mod on a server, since it's very easy to get the server lag, freeze or crash with the loop command. If you're going to use it on the public server, use it at your own risk.

Install

Install Minecraft Forge, download the latest stable version of jar file for available Minecraft version. Also install following mods: McLib. Put it in minecraft's mods folder, and launch the game.

After that, Commander mod should be installed and will appear in Minecraft's mods menu. If Commander didn't appear in the mods menu, then something went wrong.

How to use

At the moment, commander provides /forin command which allows executing commands in a loop. /forin command's syntax is following:

/forin <start> <end> <command>

Where <start> is first index, and <end> is the value that you want /forin to iterate between. Both of those arguments must be integers, and the step value is 1. Also, you can nest /forin command only three times.

<command> argument can be any valid commands, however, besides that, <command> accepts variables through @{...} construction. For example, if you want to spawn 5 creepers in a row across X axis, you can use this /forin like this:

/forin 0 4 summon minecraft:creeper ~@{i} ~ ~

This command will evaluate into this:

/summon Creeper ~0 ~ ~
/summon Creeper ~1 ~ ~
/summon Creeper ~2 ~ ~
/summon Creeper ~3 ~ ~
/summon Creeper ~4 ~ ~

As you can see, @{i} construction was replaced with the index. Within @{...} following variables are present when using /forin command:

Name Description
i Index of the /forin loop
j Index of the /forin loop (second nesting)
k Index of the /forin loop (third nesting)
i_c, j_c and k_c Count of iteration for given iteration
i_s, j_s and k_s <start> index you passed into /forin command for given iteration
x X coordinate of command sender in the world
y Y coordinate of command sender in the world
z Z coordinate of command sender in the world

Besides supporting variables, you can also use mathematical expressions within @{...} construct. For example, if you want to spawn 10 creepers around you in the circle (within 10 block radius), you can use this command:

/forin 0 9 summon Creeper ~@{cos(i/i_c*PI*2)*10} ~ ~@{sin(i/i_c*PI*2)*10}

See this page for more information.

And finally, Commander mod supports multiple commands executed in one line by separating commands using || (mind the spaces) symbols:

/particle explode ~ ~ ~ 0.1 0.1 0.1 0.1 10 || setblock ~ ~ ~ minecraft:stone

The spaces between || are required. Command like this:

/particle explode ~ ~ ~ 0.1 0.1 0.1 0.1 10||setblock ~ ~ ~ minecraft:stone

Won't be treated as multiple!

Video

Here is also a short showcase video of some of the usages of this mod:

Bug reports

If you found a bug, or this mod crashed your game, make sure to check this compatibility table and incompatible mod list page. The most frequent issue people encounter is that they didn't install the compatible versions of my mods. Or updated only one mod while using older version of my other mods.

If the versions of the mod are correct, then you can report a bug or a crash to me either on issue tracker, or on my Discord server. Please, make sure to attach a crash log (pastebin please) and description of a bug or crash, and the way to reproduce it. Thanks!

Project description from CurseForge.

Pick your setup

Commander by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

3 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Commander versions and loaders

2 of 8 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.