
Modrinth · Minecraft mod
VariableMod
This project adds a variables, what can simplyfing mapmaking
Quick answer
Which VariableMod release matches 1.21.7 Fabric?
VariableMod 1.0.0 targets 1.21.7 with Fabric. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.
Where it goes
Is VariableMod required on the client, server, or both?
It must be installed on the client. Do not install it on the dedicated server.
This file is marked client-only.
What else does VariableMod 1.0.0 need?
1.0.0 on 1.21.7 Fabric. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add VariableMod without breaking your instance.
Built for VariableMod 1.0.0 on 1.21.7 Fabric. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.0. It targets 1.21.7 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.
About this project
What does VariableMod add?

О моде / About the Mod
VariableMod — локальный мод для Fabric, добавляющий систему переменных для команд и чата. Создавай переменные через /variable и подставляй их в любые команды и сообщения через синтаксис v:имя. Встроенные переменные v!: автоматически отдают данные игрока — координаты, здоровье, ник, время и многое другое.
Подходит для: автоматизации команд, динамических объявлений, шаблонов команд для датапаков, серверных хабов и любых сценариев где нужны подстановки.
VariableMod is a local-side Fabric mod that adds a variable system for commands and chat. Define variables via /variable and insert them anywhere using v:name syntax. Built-in variables v!: automatically resolve player data — coordinates, health, nickname, time, and more.
Use cases: command automation, dynamic announcements, datapack command templates, server hubs, and any scenario where text substitution is needed.

Ключевые возможности / Key Features
[ RU ]
- Создавай переменные прямо в игре через команду
/variable new - Используй
v:имяв любой команде или сообщении чата — значение подставляется автоматически - Встроенные переменные
v!:— координаты, здоровье, еда, ник, измерение, время и другие - Два типа переменных:
textиnumber(number проверяет числовое значение) - Переменные сохраняются как JSON-файлы в папке мира — работают между перезапусками
- Автодополнение имён переменных в командах
- Поддержка в
/say, чате и любых перехватываемых командах
[ EN ]
- Create variables in-game via
/variable new - Use
v:namein any command or chat message — value is substituted automatically - Built-in variables
v!:— coordinates, health, food, nickname, dimension, time, and more - Two variable types:
textandnumber(number enforces numeric values) - Variables saved as JSON files in the world folder — persist across restarts
- Tab-completion for variable names in commands
- Works in
/say, chat messages, and any intercepted command

Команды / Commands
Все команды требуют права оператора (уровень 2). / All commands require operator permission (level 2).
| Команда / Command | Описание / Description |
|---|---|
/variable new <name> <value> |
Создать переменную / Create a variable |
/variable edit <name> <value> |
Изменить значение / Edit a variable's value |
/variable delete <name> |
Удалить переменную / Delete a variable |
/variable type <name> text|number |
Задать тип переменной / Set variable type |
/variable cfg <name> |
Показать значение и тип / Show value and type |
/variable list |
Список всех переменных / List all variables |
/variable builtins |
Список встроенных переменных v!: / List built-in variables |

Встроенные переменные / Built-in Variables
| Переменная / Variable | Описание / Description |
|---|---|
v!:nickname |
Отображаемое имя игрока / Player's display name |
v!:name |
Имя игрока без форматирования / Raw username |
v!:gamemode |
Режим игры / Current game mode |
v!:world |
Текущее измерение / Current dimension |
v!:x / v!:y / v!:z |
Координаты блока / Block coordinates |
v!:health |
Здоровье / Current health |
v!:food |
Уровень сытости / Food level |
v!:xp |
Суммарный опыт / Total experience points |
v!:level |
Уровень опыта / Experience level |
v!:time |
Игровое время ЧЧ:мм / In-game time HH:mm |
v!:date |
Реальная дата гггг-ММ-дд / Real-world date yyyy-MM-dd |
v!:day |
Номер игрового дня / In-game day number |
v!:onlinecnt |
Игроков онлайн / Players online |

Пример использования / Example Workflow
[ RU ]
- Создай переменную:
/variable new hub 0 64 0 - Используй в команде:
/tp @s v:hub - Объяви координаты в чате:
Я нахожусь на v!:x v!:y v!:z в v!:world - Измени значение:
/variable edit hub 100 64 -200 - Сделай числовую переменную:
/variable type lives number→/variable edit lives 3
[ EN ]
- Create a variable:
/variable new hub 0 64 0 - Use it in a command:
/tp @s v:hub - Announce coordinates in chat:
I'm at v!:x v!:y v!:z in v!:world - Change the value:
/variable edit hub 100 64 -200 - Make a numeric variable:
/variable type lives number→/variable edit lives 3

Поддерживаемые версии / Supported Versions
| Версия / Version | Поддержка / Support |
|---|---|
| 1.21 — 1.21.8 | ✅ Supported |
Fabric only — Requires Fabric API

Хранение данных / Storage
[ RU ]
Переменные сохраняются как JSON-файлы в папке мира:
<world save>/variable/commands/v/<name>.json
Файлы можно редактировать вручную пока сервер остановлен.
[ EN ]
Variables are saved as JSON files inside the world folder:
<world save>/variable/commands/v/<name>.json
Files can be edited manually while the server is stopped.

Язык / Language
Русский • English
Project description from Modrinth.
Pick your setup
VariableMod by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader build1.21
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
VariableMod versions and loaders
1.0.0
variablemod-1.21.7-v1.0.0.jar
27 May 2026
Looking for an older file? The official Modrinth project page is in Resources.



