CurseForge · Minecraft mod
Variable Commands
Allows use of variables in commands.
Quick answer
Which Variable Commands release should I use?
Variable Commands var-commands-1.0.0.jar targets 1.17.1, 1.17 with Fabric. 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 Variable Commands required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Variable Commands var-commands-1.0.0.jar need?
var-commands-1.0.0.jar. Change the file and its required mods may change too.
Install Fabric API first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add Variable Commands without breaking your instance.
Built for Variable Commands var-commands-1.0.0.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use var-commands-1.0.0.jar. It targets 1.17.1, 1.17 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install Fabric API first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside var-commands-1.0.0.jar. It opens that exact file at the source.
About this project
What does Variable Commands add?
This project is deprecated and will not be maintained or updated. Unless I feel like it. But I probably won't.
This is a server-side Fabric mod that adds variables to commands. You can set a value to a variable and reference it in any command.
To set a value to a variable: /var set <variable name> <value>
The value is always stored as text (a string), as commands are inherently text-based, but converted to a number as needed.
To reference a variable in a command, write $<variable>. e.g., /gamemode $my_mode
Variables can also be used in the 'if' execute subcommand e.g., /execute if var my_num = 5 run kill
You can also operate on variables: e.g., /var operation my_num + 13
FABRIC API REQUIRED
Project description from CurseForge.
Pick your setup
Variable Commands by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.17.1
1 loader build1.17
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Variable Commands versions and loaders
var-commands-1.0.0.jar
18 Nov 2021
Looking for an older file? The official CurseForge project page is in Resources.