Skip to content

VariableMod

This project adds a variables, what can simplyfing mapmaking

Fabric
Loaders
Fabric
Downloads on Modrinth
262
Followers on Modrinth
0
versions
9
Updated
May 27, 2026May 27
Published
in 2026
Main command · swipe

At a glance

Runs on Fabric
For Minecraft 1.21–1.21.8
Client only — no need to install it on the server
Latest version — 1.0.0 from May 27, 2026
License MIT — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21–1.21.8

Modrinth CurseForge GitHub

О моде / 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:name in any command or chat message — value is substituted automatically
  • Built-in variables v!: — coordinates, health, food, nickname, dimension, time, and more
  • Two variable types: text and number (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 `Создать переменную / Create a variable
`/variable edit `Изменить значение / Edit a variable's value
`/variable delete `Удалить переменную / Delete a variable
`/variable type text|number`Задать тип переменной / Set variable type
`/variable cfg `Показать значение и тип / 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 ]

  1. Создай переменную: /variable new hub 0 64 0
  2. Используй в команде: /tp @s v:hub
  3. Объяви координаты в чате: Я нахожусь на v!:x v!:y v!:z в v!:world
  4. Измени значение: /variable edit hub 100 64 -200
  5. Сделай числовую переменную: /variable type lives number → /variable edit lives 3

[ EN ]

  1. Create a variable: /variable new hub 0 64 0
  2. Use it in a command: /tp @s v:hub
  3. Announce coordinates in chat: I'm at v!:x v!:y v!:z in v!:world
  4. Change the value: /variable edit hub 100 64 -200
  5. 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

FAQ

How to install VariableMod?

Install Fabric for your Minecraft version, download VariableMod for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does VariableMod support?

VariableMod has builds for Minecraft 1.21–1.21.8.

Is VariableMod needed on the server?

Client only — no need to install it on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More